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