* [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c
@ 2022-01-11 7:36 wenyehai via ltp
2022-01-11 18:40 ` Eric Biggers
2022-01-12 9:57 ` Cyril Hrubis
0 siblings, 2 replies; 4+ messages in thread
From: wenyehai via ltp @ 2022-01-11 7:36 UTC (permalink / raw)
To: ltp; +Cc: wenyehai
crypto/crypto_user02.c: In some cases, only a certain algorithm is
supported(e.g. only enable sha3 algorithm). In order to make crypto_user02 to run in more
cases, we compare with the latest linux kernel crypto/tcrypt.c, add
several hash algorithms which not list in crypto_user02(just list
possible algorithms, but not exhaustive).
Signed-off-by: Yehai Wen <wenyehai@huawei.com>
---
v1->v2: add commit message to introduce why to modify crypto_user02
testcases/kernel/crypto/crypto_user02.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/crypto/crypto_user02.c b/testcases/kernel/crypto/crypto_user02.c
index 717b297..afaff5d 100644
--- a/testcases/kernel/crypto/crypto_user02.c
+++ b/testcases/kernel/crypto/crypto_user02.c
@@ -40,7 +40,15 @@ static const char * const ALGORITHM_CANDIDATES[] = {
"hmac(sha256-generic)",
"hmac(sha384-generic)",
"hmac(md5-generic)",
- "hmac(sm3-generic)"
+ "hmac(sm3-generic)",
+ "hmac(sha512-generic)",
+ "hmac(rmd160-generic)",
+ "hmac(sha3-224-generic)",
+ "hmac(sha3-256-generic)",
+ "hmac(sha3-384-generic)",
+ "hmac(sha3-512-generic)",
+ "hmac(streebog256-generic)",
+ "hmac(streebog512-generic)"
};
static const char* algorithm = NULL;
--
2.7.4
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c
2022-01-11 7:36 [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c wenyehai via ltp
@ 2022-01-11 18:40 ` Eric Biggers
2022-01-12 9:57 ` Cyril Hrubis
1 sibling, 0 replies; 4+ messages in thread
From: Eric Biggers @ 2022-01-11 18:40 UTC (permalink / raw)
To: wenyehai; +Cc: ltp
On Tue, Jan 11, 2022 at 03:36:39PM +0800, wenyehai via ltp wrote:
> crypto/crypto_user02.c: In some cases, only a certain algorithm is
> supported(e.g. only enable sha3 algorithm). In order to make crypto_user02 to run in more
> cases, we compare with the latest linux kernel crypto/tcrypt.c, add
> several hash algorithms which not list in crypto_user02(just list
> possible algorithms, but not exhaustive).
>
> Signed-off-by: Yehai Wen <wenyehai@huawei.com>
> ---
> v1->v2: add commit message to introduce why to modify crypto_user02
> testcases/kernel/crypto/crypto_user02.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
Reviewed-by: Eric Biggers <ebiggers@google.com>
- Eric
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c
2022-01-11 7:36 [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c wenyehai via ltp
2022-01-11 18:40 ` Eric Biggers
@ 2022-01-12 9:57 ` Cyril Hrubis
2022-01-13 2:02 ` [LTP] 答复: " wenyehai via ltp
1 sibling, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2022-01-12 9:57 UTC (permalink / raw)
To: wenyehai; +Cc: ltp
Hi!
Applied, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] 答复: [PATCH v2] add several hash algorithms for crypto/crypto_user02.c
2022-01-12 9:57 ` Cyril Hrubis
@ 2022-01-13 2:02 ` wenyehai via ltp
0 siblings, 0 replies; 4+ messages in thread
From: wenyehai via ltp @ 2022-01-13 2:02 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
Hi, Cyril Hrubis:
Thanks.
Best Regards
Yehai Wen
-----邮件原件-----
发件人: Cyril Hrubis [mailto:chrubis@suse.cz]
发送时间: 2022年1月12日 17:58
收件人: wenyehai <wenyehai@huawei.com>
抄送: ltp@lists.linux.it
主题: Re: [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c
Hi!
Applied, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-13 2:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 7:36 [LTP] [PATCH v2] add several hash algorithms for crypto/crypto_user02.c wenyehai via ltp
2022-01-11 18:40 ` Eric Biggers
2022-01-12 9:57 ` Cyril Hrubis
2022-01-13 2:02 ` [LTP] 答复: " wenyehai via ltp
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.