linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config
@ 2023-02-02  8:38 Zhang Yiqun
  2023-02-07  5:20 ` Eric Biggers
  2023-02-10  9:48 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Zhang Yiqun @ 2023-02-02  8:38 UTC (permalink / raw)
  To: herbert, davem; +Cc: linux-crypto, linux-kernel, Zhang Yiqun

This type of request is often happened in AF_ALG cases.
So add this vector in default cipher config array.

Signed-off-by: Zhang Yiqun <zhangyiqun@phytium.com.cn>
---
 crypto/testmgr.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 4476ac97baa5..6e8d08999104 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -356,6 +356,14 @@ static const struct testvec_config default_cipher_testvec_configs[] = {
 			{ .proportion_of_total = 5000 },
 			{ .proportion_of_total = 5000 },
 		},
+	}, {
+		.name = "one src, two even splits dst",
+		.inplace_mode = OUT_OF_PLACE,
+		.src_divs = { { .proportion_of_total = 10000 } },
+		.dst_divs = {
+			{ .proportion_of_total = 5000 },
+			{ .proportion_of_total = 5000 },
+		 },
 	}, {
 		.name = "uneven misaligned splits, may sleep",
 		.req_flags = CRYPTO_TFM_REQ_MAY_SLEEP,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config
  2023-02-02  8:38 [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config Zhang Yiqun
@ 2023-02-07  5:20 ` Eric Biggers
  2023-02-10  9:48 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Biggers @ 2023-02-07  5:20 UTC (permalink / raw)
  To: Zhang Yiqun; +Cc: herbert, davem, linux-crypto, linux-kernel

On Thu, Feb 02, 2023 at 04:38:05PM +0800, Zhang Yiqun wrote:
> This type of request is often happened in AF_ALG cases.
> So add this vector in default cipher config array.
> 
> Signed-off-by: Zhang Yiqun <zhangyiqun@phytium.com.cn>
> ---
>  crypto/testmgr.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/crypto/testmgr.c b/crypto/testmgr.c
> index 4476ac97baa5..6e8d08999104 100644
> --- a/crypto/testmgr.c
> +++ b/crypto/testmgr.c
> @@ -356,6 +356,14 @@ static const struct testvec_config default_cipher_testvec_configs[] = {
>  			{ .proportion_of_total = 5000 },
>  			{ .proportion_of_total = 5000 },
>  		},
> +	}, {
> +		.name = "one src, two even splits dst",
> +		.inplace_mode = OUT_OF_PLACE,
> +		.src_divs = { { .proportion_of_total = 10000 } },
> +		.dst_divs = {
> +			{ .proportion_of_total = 5000 },
> +			{ .proportion_of_total = 5000 },
> +		 },
>  	}, {
>  		.name = "uneven misaligned splits, may sleep",
>  		.req_flags = CRYPTO_TFM_REQ_MAY_SLEEP,
> -- 

Reviewed-by: Eric Biggers <ebiggers@google.com>

- Eric

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config
  2023-02-02  8:38 [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config Zhang Yiqun
  2023-02-07  5:20 ` Eric Biggers
@ 2023-02-10  9:48 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2023-02-10  9:48 UTC (permalink / raw)
  To: Zhang Yiqun; +Cc: davem, linux-crypto, linux-kernel

On Thu, Feb 02, 2023 at 04:38:05PM +0800, Zhang Yiqun wrote:
> This type of request is often happened in AF_ALG cases.
> So add this vector in default cipher config array.
> 
> Signed-off-by: Zhang Yiqun <zhangyiqun@phytium.com.cn>
> ---
>  crypto/testmgr.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-10  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02  8:38 [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config Zhang Yiqun
2023-02-07  5:20 ` Eric Biggers
2023-02-10  9:48 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).