Re: [PATCH v2 2/3] crypto: aria-avx: add AES-NI/AVX/x86_64 assembler implementation of aria cipher

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

 



On Fri, Aug 26, 2022 at 05:31:30AM +0000, Taehee Yoo wrote:
> +static struct skcipher_alg aria_algs[] = {
> +	{
> +		.base.cra_name		= "__ecb(aria)",
> +		.base.cra_driver_name	= "__ecb-aria-avx",
> +		.base.cra_priority	= 400,
> +		.base.cra_flags		= CRYPTO_ALG_INTERNAL,
> +		.base.cra_blocksize	= ARIA_BLOCK_SIZE,
> +		.base.cra_ctxsize	= sizeof(struct aria_ctx),
> +		.base.cra_module	= THIS_MODULE,
> +		.min_keysize		= ARIA_MIN_KEY_SIZE,
> +		.max_keysize		= ARIA_MAX_KEY_SIZE,
> +		.setkey			= aria_avx_set_key,
> +		.encrypt		= aria_avx_ecb_encrypt,
> +		.decrypt		= aria_avx_ecb_decrypt,
> +	}
> +};

Why do you want ECB mode and nothing else?  At
https://lore.kernel.org/r/51ce6519-9f03-81b6-78b0-43c313705e74@xxxxxxxxx
you claimed that the use case for ARIA support in the kernel is kTLS.

So you are using ECB mode in TLS?

- Eric



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