提交 15f47ce5 编写于 作者: G Gilad Ben-Yossef 提交者: Herbert Xu

crypto: testmgr - reorder paes test lexicographically

Due to a snafu "paes" testmgr tests were not ordered
lexicographically, which led to boot time warnings.
Reorder the tests as needed.

Fixes: a794d8d8 ("crypto: ccree - enable support for hardware keys")
Reported-by: NAbdul Haleem <abdhalee@linux.vnet.ibm.com>
Signed-off-by: NGilad Ben-Yossef <gilad@benyossef.com>
Tested-by: NAbdul Haleem <abdhalee@linux.vnet.ibm.com>
Tested-by: NCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 4c826fed
...@@ -3011,13 +3011,6 @@ static const struct alg_test_desc alg_test_descs[] = { ...@@ -3011,13 +3011,6 @@ static const struct alg_test_desc alg_test_descs[] = {
} }
} }
} }
}, {
/* Same as ecb(aes) except the key is stored in
* hardware secure memory which we reference by index
*/
.alg = "ecb(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, { }, {
.alg = "ecb(khazad)", .alg = "ecb(khazad)",
.test = alg_test_skcipher, .test = alg_test_skcipher,
...@@ -3027,6 +3020,13 @@ static const struct alg_test_desc alg_test_descs[] = { ...@@ -3027,6 +3020,13 @@ static const struct alg_test_desc alg_test_descs[] = {
.dec = __VECS(khazad_dec_tv_template) .dec = __VECS(khazad_dec_tv_template)
} }
} }
}, {
/* Same as ecb(aes) except the key is stored in
* hardware secure memory which we reference by index
*/
.alg = "ecb(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, { }, {
.alg = "ecb(seed)", .alg = "ecb(seed)",
.test = alg_test_skcipher, .test = alg_test_skcipher,
...@@ -3609,21 +3609,6 @@ static const struct alg_test_desc alg_test_descs[] = { ...@@ -3609,21 +3609,6 @@ static const struct alg_test_desc alg_test_descs[] = {
.dec = __VECS(aes_xts_dec_tv_template) .dec = __VECS(aes_xts_dec_tv_template)
} }
} }
}, {
/* Same as xts(aes) except the key is stored in
* hardware secure memory which we reference by index
*/
.alg = "xts(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, {
.alg = "xts4096(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, {
.alg = "xts512(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, { }, {
.alg = "xts(camellia)", .alg = "xts(camellia)",
.test = alg_test_skcipher, .test = alg_test_skcipher,
...@@ -3642,6 +3627,13 @@ static const struct alg_test_desc alg_test_descs[] = { ...@@ -3642,6 +3627,13 @@ static const struct alg_test_desc alg_test_descs[] = {
.dec = __VECS(cast6_xts_dec_tv_template) .dec = __VECS(cast6_xts_dec_tv_template)
} }
} }
}, {
/* Same as xts(aes) except the key is stored in
* hardware secure memory which we reference by index
*/
.alg = "xts(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, { }, {
.alg = "xts(serpent)", .alg = "xts(serpent)",
.test = alg_test_skcipher, .test = alg_test_skcipher,
...@@ -3678,6 +3670,14 @@ static const struct alg_test_desc alg_test_descs[] = { ...@@ -3678,6 +3670,14 @@ static const struct alg_test_desc alg_test_descs[] = {
.dec = __VECS(tf_xts_dec_tv_template) .dec = __VECS(tf_xts_dec_tv_template)
} }
} }
}, {
.alg = "xts4096(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, {
.alg = "xts512(paes)",
.test = alg_test_null,
.fips_allowed = 1,
}, { }, {
.alg = "zlib-deflate", .alg = "zlib-deflate",
.test = alg_test_comp, .test = alg_test_comp,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册