From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02E26C4360C for ; Sun, 13 Oct 2019 04:40:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C70472086A for ; Sun, 13 Oct 2019 04:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570941631; bh=ZVhkIrmxXnrRsJcnZxoqY4+X6GfigGDjV27s6D0emN0=; h=From:To:Cc:Subject:Date:List-ID:From; b=dy44yg9mFlt8nAsIRm0yERsFrZn9af8jzblGze74QxP7qtODzDCOchamTTvi9z2gV ebH0O3fygSwVxZ6j/K2q5NIN4EidtMcZwlOs6DINHxWpcbG9LYtaDCxOaa3cMLtqEK zQY9aWaFulSL3ty9aSgQp9sB0trFm5lFijYXfyGw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbfJMEka (ORCPT ); Sun, 13 Oct 2019 00:40:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:51684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbfJMEka (ORCPT ); Sun, 13 Oct 2019 00:40:30 -0400 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A4786206B7; Sun, 13 Oct 2019 04:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570941629; bh=ZVhkIrmxXnrRsJcnZxoqY4+X6GfigGDjV27s6D0emN0=; h=From:To:Cc:Subject:Date:From; b=CrcL2S8DNCDtIoFVClM52IGRgZRSm7iZphRBFlwM7T3Sn7veeq/8mGY/dm006V4Td paA0dxVOuQzwYpQ4prFUP08KzqKo5CqOKhn73/hEaZOrSVV7B36EkiOvFI5F2k2Y5i jOqTQDqQV0XUwdfokljNPhz3bUEERRlTw0AOg1dw= From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Cc: linuxppc-dev@lists.ozlabs.org, =?UTF-8?q?Breno=20Leit=C3=A3o?= , Nayna Jain , Paulo Flabiano Smorigo Subject: [PATCH 0/4] crypto: nx - convert to skcipher API Date: Sat, 12 Oct 2019 21:39:14 -0700 Message-Id: <20191013043918.337113-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This series converts the PowerPC Nest (NX) implementations of AES modes from the deprecated "blkcipher" API to the "skcipher" API. This is needed in order for the blkcipher API to be removed. This patchset is compile-tested only, as I don't have this hardware. If anyone has this hardware, please test this patchset with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y. Eric Biggers (4): crypto: nx - don't abuse blkcipher_desc to pass iv around crypto: nx - convert AES-ECB to skcipher API crypto: nx - convert AES-CBC to skcipher API crypto: nx - convert AES-CTR to skcipher API drivers/crypto/nx/nx-aes-cbc.c | 81 ++++++++++++++----------------- drivers/crypto/nx/nx-aes-ccm.c | 40 ++++++---------- drivers/crypto/nx/nx-aes-ctr.c | 87 +++++++++++++++------------------- drivers/crypto/nx/nx-aes-ecb.c | 76 +++++++++++++---------------- drivers/crypto/nx/nx-aes-gcm.c | 24 ++++------ drivers/crypto/nx/nx.c | 64 ++++++++++++++----------- drivers/crypto/nx/nx.h | 19 ++++---- 7 files changed, 176 insertions(+), 215 deletions(-) -- 2.23.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD094C4360C for ; Sun, 13 Oct 2019 04:45:27 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69309206B7 for ; Sun, 13 Oct 2019 04:45:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="CrcL2S8D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69309206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46rTdc6DbVzDqhN for ; Sun, 13 Oct 2019 15:45:24 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=ebiggers@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="CrcL2S8D"; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46rTX12vVvzDqTk for ; Sun, 13 Oct 2019 15:40:33 +1100 (AEDT) Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A4786206B7; Sun, 13 Oct 2019 04:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570941629; bh=ZVhkIrmxXnrRsJcnZxoqY4+X6GfigGDjV27s6D0emN0=; h=From:To:Cc:Subject:Date:From; b=CrcL2S8DNCDtIoFVClM52IGRgZRSm7iZphRBFlwM7T3Sn7veeq/8mGY/dm006V4Td paA0dxVOuQzwYpQ4prFUP08KzqKo5CqOKhn73/hEaZOrSVV7B36EkiOvFI5F2k2Y5i jOqTQDqQV0XUwdfokljNPhz3bUEERRlTw0AOg1dw= From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Subject: [PATCH 0/4] crypto: nx - convert to skcipher API Date: Sat, 12 Oct 2019 21:39:14 -0700 Message-Id: <20191013043918.337113-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Breno=20Leit=C3=A3o?= , Paulo Flabiano Smorigo , Nayna Jain , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" This series converts the PowerPC Nest (NX) implementations of AES modes from the deprecated "blkcipher" API to the "skcipher" API. This is needed in order for the blkcipher API to be removed. This patchset is compile-tested only, as I don't have this hardware. If anyone has this hardware, please test this patchset with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y. Eric Biggers (4): crypto: nx - don't abuse blkcipher_desc to pass iv around crypto: nx - convert AES-ECB to skcipher API crypto: nx - convert AES-CBC to skcipher API crypto: nx - convert AES-CTR to skcipher API drivers/crypto/nx/nx-aes-cbc.c | 81 ++++++++++++++----------------- drivers/crypto/nx/nx-aes-ccm.c | 40 ++++++---------- drivers/crypto/nx/nx-aes-ctr.c | 87 +++++++++++++++------------------- drivers/crypto/nx/nx-aes-ecb.c | 76 +++++++++++++---------------- drivers/crypto/nx/nx-aes-gcm.c | 24 ++++------ drivers/crypto/nx/nx.c | 64 ++++++++++++++----------- drivers/crypto/nx/nx.h | 19 ++++---- 7 files changed, 176 insertions(+), 215 deletions(-) -- 2.23.0