Linux Test Project
 help / color / mirror / Atom feed
* [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

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox