Thread (2 messages) 2 messages, 2 authors, 2017-07-21

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

From: Stephan Müller <hidden>
Date: 2017-07-20 14:51:17
Also in: linux-devicetree

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?


Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help