Skip to content

Commit b030c45

Browse files
ebiggersherbertx
authored andcommitted
crypto: testmgr - move pkcs1pad(rsa,sha3-*) to correct place
alg_test_descs[] needs to be in sorted order, since it is used for binary search. This fixes the following boot-time warning: testmgr: alg_test_descs entries in wrong order: 'pkcs1pad(rsa,sha512)' before 'pkcs1pad(rsa,sha3-256)' Fixes: ee62afb ("crypto: rsa-pkcs1pad - Add FIPS 202 SHA-3 support") Signed-off-by: Eric Biggers <[email protected]> Reviewed-by: Dimitri John Ledkov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f2b88ba commit b030c45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crypto/testmgr.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5457,23 +5457,23 @@ static const struct alg_test_desc alg_test_descs[] = {
54575457
.akcipher = __VECS(pkcs1pad_rsa_tv_template)
54585458
}
54595459
}, {
5460-
.alg = "pkcs1pad(rsa,sha384)",
5460+
.alg = "pkcs1pad(rsa,sha3-256)",
54615461
.test = alg_test_null,
54625462
.fips_allowed = 1,
54635463
}, {
5464-
.alg = "pkcs1pad(rsa,sha512)",
5464+
.alg = "pkcs1pad(rsa,sha3-384)",
54655465
.test = alg_test_null,
54665466
.fips_allowed = 1,
54675467
}, {
5468-
.alg = "pkcs1pad(rsa,sha3-256)",
5468+
.alg = "pkcs1pad(rsa,sha3-512)",
54695469
.test = alg_test_null,
54705470
.fips_allowed = 1,
54715471
}, {
5472-
.alg = "pkcs1pad(rsa,sha3-384)",
5472+
.alg = "pkcs1pad(rsa,sha384)",
54735473
.test = alg_test_null,
54745474
.fips_allowed = 1,
54755475
}, {
5476-
.alg = "pkcs1pad(rsa,sha3-512)",
5476+
.alg = "pkcs1pad(rsa,sha512)",
54775477
.test = alg_test_null,
54785478
.fips_allowed = 1,
54795479
}, {

0 commit comments

Comments
 (0)