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]

 




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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux