diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2019-04-18 09:38:36 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-25 03:38:13 -0400 |
commit | f0372c00afea759710ddc1f6f3a0717f9bcc18ac (patch) | |
tree | 9725558536f629135ec720488822442f3be56ac2 /crypto/testmgr.c | |
parent | 0ae1f46c55f87e864c14fc46bd6cf0496fd391d7 (diff) |
crypto: testmgr - add missing self test entries for protected keys
Mark sm4 and missing aes using protected keys which are indetical to
same algs with no HW protected keys as tested.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 2bd89a65e9e7..c9e67c2bd725 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -3795,6 +3795,12 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
3795 | .test = alg_test_null, | 3795 | .test = alg_test_null, |
3796 | .fips_allowed = 1, | 3796 | .fips_allowed = 1, |
3797 | }, { | 3797 | }, { |
3798 | /* Same as cbc(sm4) except the key is stored in | ||
3799 | * hardware secure memory which we reference by index | ||
3800 | */ | ||
3801 | .alg = "cbc(psm4)", | ||
3802 | .test = alg_test_null, | ||
3803 | }, { | ||
3798 | .alg = "cbc(serpent)", | 3804 | .alg = "cbc(serpent)", |
3799 | .test = alg_test_skcipher, | 3805 | .test = alg_test_skcipher, |
3800 | .suite = { | 3806 | .suite = { |
@@ -3930,6 +3936,13 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
3930 | .test = alg_test_null, | 3936 | .test = alg_test_null, |
3931 | .fips_allowed = 1, | 3937 | .fips_allowed = 1, |
3932 | }, { | 3938 | }, { |
3939 | |||
3940 | /* Same as ctr(sm4) except the key is stored in | ||
3941 | * hardware secure memory which we reference by index | ||
3942 | */ | ||
3943 | .alg = "ctr(psm4)", | ||
3944 | .test = alg_test_null, | ||
3945 | }, { | ||
3933 | .alg = "ctr(serpent)", | 3946 | .alg = "ctr(serpent)", |
3934 | .test = alg_test_skcipher, | 3947 | .test = alg_test_skcipher, |
3935 | .suite = { | 3948 | .suite = { |
@@ -3955,6 +3968,13 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
3955 | .cipher = __VECS(cts_mode_tv_template) | 3968 | .cipher = __VECS(cts_mode_tv_template) |
3956 | } | 3969 | } |
3957 | }, { | 3970 | }, { |
3971 | /* Same as cts(cbc((aes)) except the key is stored in | ||
3972 | * hardware secure memory which we reference by index | ||
3973 | */ | ||
3974 | .alg = "cts(cbc(paes))", | ||
3975 | .test = alg_test_null, | ||
3976 | .fips_allowed = 1, | ||
3977 | }, { | ||
3958 | .alg = "deflate", | 3978 | .alg = "deflate", |
3959 | .test = alg_test_comp, | 3979 | .test = alg_test_comp, |
3960 | .fips_allowed = 1, | 3980 | .fips_allowed = 1, |