From: Lars Persson Subject: Re: [PATCH 3/4] crypto: axis: add ARTPEC-6/7 crypto accelerator driver Date: Fri, 21 Jul 2017 08:29:27 +0200 Message-ID: <9a3e69da-bfa2-e47a-49a0-aeb50837308b@axis.com> References: <9168085.KJckqYBggK@tauon.chronox.de> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <9168085.KJckqYBggK@tauon.chronox.de> Sender: linux-crypto-owner@vger.kernel.org To: =?UTF-8?Q?Stephan_M=c3=bcller?= , Lars Persson Cc: herbert@gondor.apana.org.au, davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org On 07/20/2017 04:51 PM, Stephan Müller wrote: > Am Donnerstag, 20. Juli 2017, 15:44:31 CEST schrieb Lars Persson: > > Hi Lars, > >> +static int >> +artpec6_crypto_cipher_set_key(struct crypto_skcipher *cipher, const u8 >> *key, + unsigned int keylen) >> +{ >> + struct artpec6_cryptotfm_context *ctx = >> + crypto_skcipher_ctx(cipher); >> + >> + if (ctx->crypto_type == ARTPEC6_CRYPTO_CIPHER_NULL) >> + return 0; >> + >> + switch (keylen) { >> + case 16: >> + case 24: >> + case 32: >> + break; >> + case 48: >> + case 64: >> + if (ctx->crypto_type == ARTPEC6_CRYPTO_CIPHER_AES_XTS) > > Could you please add xts_check_key for XTS keys? > Sure, I will add this in v2. Thanks, Lars