All of lore.kernel.org
 help / color / mirror / Atom feed
From: Taehee Yoo <ap420073@gmail.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au,
	davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com,
	bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org,
	hpa@zytor.com, elliott@hpe.com
Subject: Re: [PATCH v2 2/3] crypto: aria-avx: add AES-NI/AVX/x86_64 assembler implementation of aria cipher
Date: Sat, 27 Aug 2022 15:30:55 +0900	[thread overview]
Message-ID: <d19470f9-7aa7-e4e2-5a45-bd8e2839e109@gmail.com> (raw)
In-Reply-To: <YwmFouIyIlOMqKb4@sol.localdomain>

Hi Eric,
Thanks for your review!

2022. 8. 27. 오전 11:46에 Eric Biggers 이(가) 쓴 글:
 > 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@gmail.com
 > you claimed that the use case for ARIA support in the kernel is kTLS.
 >
 > So you are using ECB mode in TLS?
 >

aria-ktls only uses GCM mode.
So, ECB will not be used by ktls.

My plan is to implement the GCM aria-avx eventually.
ECB implementation will be a basic block of aria-avx.
I think it can be used by gcm(aria).
So, I will implement gcm mode of aria with this implementation.

If this plan is not good, please let me know.
If so, I will change my plan :)

Thanks a lot!
Taehee Yoo

 > - Eric

  reply	other threads:[~2022-08-27  6:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  5:31 [PATCH v2 0/3] crypto: aria: add ARIA AES-NI/AVX/x86_64 implementation Taehee Yoo
2022-08-26  5:31 ` [PATCH v2 1/3] crypto: aria: prepare generic module for optimized implementations Taehee Yoo
2022-08-26  5:31 ` [PATCH v2 2/3] crypto: aria-avx: add AES-NI/AVX/x86_64 assembler implementation of aria cipher Taehee Yoo
2022-08-26 15:12   ` Elliott, Robert (Servers)
2022-08-27  6:18     ` Taehee Yoo
2022-08-27  2:46   ` Eric Biggers
2022-08-27  6:30     ` Taehee Yoo [this message]
2022-08-27  6:35       ` Eric Biggers
2022-08-27  6:50         ` Taehee Yoo
2022-09-01 19:51   ` Jussi Kivilinna
2022-09-02  8:31     ` Taehee Yoo
2022-08-26  5:31 ` [PATCH v2 3/3] crypto: tcrypt: add async speed test for " Taehee Yoo
2022-09-01 20:09 ` [PATCH v2 0/3] crypto: aria: add ARIA AES-NI/AVX/x86_64 implementation Jussi Kivilinna
2022-09-02  9:39   ` Taehee Yoo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d19470f9-7aa7-e4e2-5a45-bd8e2839e109@gmail.com \
    --to=ap420073@gmail.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=davem@davemloft.net \
    --cc=ebiggers@kernel.org \
    --cc=elliott@hpe.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=hpa@zytor.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.