Skip to content

Commit c027ddb

Browse files
committed
zfs-tests: Minor changes to crypto_test
Add ARMv8 cipher options for testing. Stop core when NULL is passed to strcmp(). Signed-off-by: Jorgen Lundman <lundman@lundman.net>
1 parent 65b25f5 commit c027ddb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/zfs-tests/cmd/crypto_test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ static const char *aes_impl[] = {
518518
"generic",
519519
"x86_64",
520520
"aesni",
521+
"aesv8",
521522
};
522523

523524
static const char *aes_gcm_impl[][2] = {
@@ -529,6 +530,8 @@ static const char *aes_gcm_impl[][2] = {
529530
{ "aesni", "pclmulqdq" },
530531
{ "x86_64", "avx" },
531532
{ "aesni", "avx" },
533+
{ "aesv8", "generic" },
534+
{ "aesv8", "ghashv8" },
532535
};
533536

534537
/* signature of function to call after setting implementation params */
@@ -1136,6 +1139,9 @@ perf_main(const char *algname, crypto_test_outmode_t outmode)
11361139
{
11371140
perf_alg_args_t args;
11381141

1142+
if (!algname)
1143+
return (1);
1144+
11391145
if (strcmp(algname, "AES-CCM") == 0)
11401146
args.alg = ALG_AES_CCM;
11411147
else if (strcmp(algname, "AES-GCM") == 0)

0 commit comments

Comments
 (0)