Re: [PATCH 3/4] crypto: axis: add ARTPEC-6/7 crypto accelerator driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux