From patchwork Mon Sep 17 15:09:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Manszewski X-Patchwork-Id: 10602891 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5AC8A112B for ; Mon, 17 Sep 2018 15:10:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B03F2A087 for ; Mon, 17 Sep 2018 15:10:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F3ED2A091; Mon, 17 Sep 2018 15:10:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 712F02A087 for ; Mon, 17 Sep 2018 15:10:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729124AbeIQUhu (ORCPT ); Mon, 17 Sep 2018 16:37:50 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54792 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728437AbeIQUhu (ORCPT ); Mon, 17 Sep 2018 16:37:50 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180917151004euoutp01014b0c56b6cec7d6cb2b5637a14f1c28~VOIffE3xX2530725307euoutp01I for ; Mon, 17 Sep 2018 15:10:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180917151004euoutp01014b0c56b6cec7d6cb2b5637a14f1c28~VOIffE3xX2530725307euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1537197004; bh=u0fOrNBAhzxLln+0luypVqlDhZp6633mF0mVbbx2fiI=; h=From:To:Cc:Subject:Date:References:From; b=tQZTqfHO6Wpq8eSV3LYw9gzzvjs2C7wKzRAboBspndB/lz3CK5n4bM/WkUun6/PPE oTxB3QG6q85aoKnuORNmHP0PCRTGuAj1e0yCc0hvxoXPXw5Fx5cnHgitIhUmo/LHaF jRwvg6yG1Ot8ylQfTgSRmQXG6+CxfloG3IaTC7Jg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180917151003eucas1p1e5afbf73e5aef6d48897a162bf7327fd~VOIe7KFuU1197111971eucas1p1U; Mon, 17 Sep 2018 15:10:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id C7.34.04294.AC3CF9B5; Mon, 17 Sep 2018 16:10:03 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd~VOId3-CTL2961529615eucas1p2I; Mon, 17 Sep 2018 15:10:02 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180917151001eusmtrp28a29a5c41b9adaad5cd7ac777c422da0~VOIdl2M462674126741eusmtrp2n; Mon, 17 Sep 2018 15:10:01 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-b2-5b9fc3ca52a2 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CF.36.04128.9C3CF9B5; Mon, 17 Sep 2018 16:10:01 +0100 (BST) Received: from AMDC2034.DIGITAL.local (unknown [106.120.51.41]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180917151001eusmtip22c3ee9f4ee7974a56063a04df497f004~VOIdF1MhZ2369023690eusmtip2i; Mon, 17 Sep 2018 15:10:01 +0000 (GMT) From: Christoph Manszewski To: linux-crypto@vger.kernel.org Cc: Christoph Manszewski , Krzysztof Kozlowski , Vladimir Zapolskiy , Kamil Konieczny , Herbert Xu , "David S. Miller" , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz Subject: [PATCH v2 0/4] crypto: s5p-sss: Fix and add aes-ctr support Date: Mon, 17 Sep 2018 17:09:26 +0200 X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42LZduzned3Th+dHG/zZymixccZ6Vovju5cy Wsw538Ji0f1KxqJv339Gi/PnN7Bb3L/3k8ni8q45bBYzzu9jsvj/q5nZgctjy8qbTB7bDqh6 bFrVyebxb+EUFo+D7/YwefRtWcXo8XmTXAB7FJdNSmpOZllqkb5dAlfG528zmQrOsFd8XHuV vYFxIlsXIyeHhICJxMWXl9m7GLk4hARWMEp8WL2IBcL5wihxdXMzE4TzmVGi++FnVpiWlnNX 2SASyxkl7k3/wQbX8m5tFxNIFZuAqcTtu5+AEhwcIgIKEvO+6oCEmQVamCV+reYEsYUFXCR2 9G9lB7FZBFQlLny6wQSxQE7i5rlOZgj7M5vEgqvpIDavQJnE8vW3oe52kZj04TmULSzx6vgW dghbRuL/zvlgV0sINDNK3PpyjRXCmcAocXB1FwtElbXEphuvmECOYxbQlFi/Sx8i7Cjx++5G ZpCwhACfxI23ghA380lM2jYdKswr0dEmBFGtJvF6yxY2mLUvPn9lhCjxkNj3SRXEFBKIlXjw wHsCo9wshE0LGBlXMYqnlhbnpqcWG+WllusVJ+YW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syh 5abrlNfUXmezL2110Fvw7+6EV7c3vNDedPJ0QL9KQcaqb8cMzbvvnvv0eH5gbFB4MDeH3rJQ /8SXCTa3lViKMxINtZiLihMBD5xQgG8CAAA= Message-Id: <20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd~VOId3-CTL2961529615eucas1p2I@eucas1p2.samsung.com> X-CMS-MailID: 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd X-Msg-Generator: CA X-RootMTR: 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd References: Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This patch series adds aes-ctr support in s5p-sss.c driver. Additionally it it provides a fix, and a minor code cleanup. Patch 1 contains a simple fix, of a possible race condition. Patches 2-3 are code cleanup patches. Patch 4 adds support for aes-ctr block cipher mode of operation. Regards, Chris Changes in v2: - pass dev->req directly to s5p_aes_complete in s5p_aes_interrupt non-error path, - move req asignment in s5p_aes_interrupt before if statement, - change commit message and subject for patch 2/4, - remove empty lines and add rationale in commit message for patch 3/4, Christoph Manszewski (4): crypto: s5p-sss: Fix race in error handling crypto: s5p-sss: Fix Fix argument list alignment crypto: s5p-sss: Minor code cleanup crypto: s5p-sss: Add aes-ctr support drivers/crypto/s5p-sss.c | 113 +++++++++++++++++++++++++++-------------------- 1 file changed, 65 insertions(+), 48 deletions(-)