Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4003445imm; Mon, 17 Sep 2018 06:46:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmQPiT3PmSqx6IJ8XkGiVVWZKmojmh6p/y+70TNlwt0cgaIlxR4sCK22529pgSULtteyQT X-Received: by 2002:a63:6385:: with SMTP id x127-v6mr23844735pgb.413.1537191988201; Mon, 17 Sep 2018 06:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537191988; cv=none; d=google.com; s=arc-20160816; b=sYsSxzEe2cEGuxIoKlkZC4FHLgDWKxx1sRQ4VVU84ebxfP0bIE3x/d48Z5hKvUnCgL lxUVxrT1z+dDqK8ZIBH0W3NCowr00YkIDq2SFMM/Gk5f7BeHm4U6r7dK3IAtladmJQiw e2WnYhxziR4frqonVyquPyKAEJN3Am912C9yx/0i+WFtrxEScZ/KIeAdXOT/wDGhdggd PG1vyBEj2m53EmUGHrx+dLCePHWACKBUrFCBcKGNOQzqfSAZt2Ce6OJjxwjLI8vXzJfK fNEvuZC8O6i0AqGjTa9NtwVFpZ2B4UBRutSyMROa5SQ+4wkX6405DhtNXblb4ydSzEKt IWIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sra46JtXpxoq99VdgiQCIak3Uq73UE71c93oeioT8eQ=; b=mD008Sh/B76CUarT8m8GDxtZhbAw3LjPvlmKmCanwDIK6Z4YJkLPrf4lL+DnapnPcR H4YO1VPEzyoWglL7AaWgn2dcG3UnnuXSOXjMkgzSQa+CWvWEqryoPJSXMZWqXp55x1EY 3FcK7o7K14hoehZ0Zb7HWKR0dnWs18w8qupChpFksFuiC5uHO7cJI8Q/e+ac/d1OWRQe aB2hfDI+OS3eazmmFmV5ByCrcyFYF62qajs3QxhwhtiNeH9KXXBoGM2sqbRQHKWpH1XA EeNNFbrTsVh3mwhm+wMfvMsG7x/OscGDlSJpXKJBQ+T/qZLpb1o/mJO9CM6IjwwdbWo6 msjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vfeAdzx8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h20-v6si15787948pgh.573.2018.09.17.06.46.10; Mon, 17 Sep 2018 06:46:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vfeAdzx8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbeIQTMv (ORCPT + 99 others); Mon, 17 Sep 2018 15:12:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:49044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728085AbeIQTMu (ORCPT ); Mon, 17 Sep 2018 15:12:50 -0400 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 98E42214D5; Mon, 17 Sep 2018 13:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537191925; bh=M8GXuPUawIrSiHck5sp02hlOOIFO5mS+/NElx8RjSbg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vfeAdzx8/O8PvvV9mteugkyc8A6JOHred42tXB8BNyjHx93mxG0+VGh3pf2Kga8bM x8LN34Qw71/kgbffJxgC8EjE32dUqzq5eeoEXUiNWChoKHetv4+4nT66LNCxHDswAT ksFsZDfwMKCdhg3N933TVjwILhArBxFZzKK/nvx8= Received: by mail-wm1-f41.google.com with SMTP id n11-v6so9665375wmc.2; Mon, 17 Sep 2018 06:45:25 -0700 (PDT) X-Gm-Message-State: APzg51DH4fdZlBz4gSiv8JlXR7kiuqY0idSCje8tZu+aOl/qJ4dvVgaI kn+THfvtOV5juHybgnVsh8IrTWu5Ls84FweHSMI= X-Received: by 2002:a1c:7f93:: with SMTP id a141-v6mr11809229wmd.45.1537191924009; Mon, 17 Sep 2018 06:45:24 -0700 (PDT) MIME-Version: 1.0 References: <1536825522-6027-1-git-send-email-c.manszewski@samsung.com> <20180913075901eucas1p2dfb1900b71d70ee64a9d51eb4c8b61fd~T5q-ljNj41220012200eucas1p2N@eucas1p2.samsung.com> In-Reply-To: <20180913075901eucas1p2dfb1900b71d70ee64a9d51eb4c8b61fd~T5q-ljNj41220012200eucas1p2N@eucas1p2.samsung.com> From: Krzysztof Kozlowski Date: Mon, 17 Sep 2018 15:45:12 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] crypto: s5p-sss: Add aes-ctr support To: c.manszewski@samsung.com Cc: linux-crypto@vger.kernel.org, vz@mleia.com, k.konieczny@partner.samsung.com, herbert@gondor.apana.org.au, davem@davemloft.net, "linux-samsung-soc@vger.kernel.org" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Sep 2018 at 09:59, Christoph Manszewski wrote: > > Add support for aes counter(ctr) block cipher mode of operation for > Exynos Hardware. In contrast to ecb and cbc modes, aes-ctr allows > encyption/decryption for request sizes not being a multiple of 16(bytes). > > Hardware requires block sizes being a multiple of 16(bytes). In order to > achieve this, copy request source and destination memory, and align it's size > to 16. That way hardware processes additional bytes, that are omitted > when copying the result back to its original destination. > > Tested on Odroid-U3 with Exynos 4412 CPU, kernel 4.19-rc2 with crypto > run-time self test testmgr and with tcrypt module: > insmod tcrypt.ko sec=1 mode=500. > > Signed-off-by: Christoph Manszewski > --- > drivers/crypto/s5p-sss.c | 45 ++++++++++++++++++++++++++++++++++++++++----- > 1 file changed, 40 insertions(+), 5 deletions(-) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof