mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
crypto: keywrap - add testmgr support
The testmanager code for symmetric ciphers is extended to allow verification of the IV after a cipher operation. In addition, test vectors for kw(aes) for encryption and decryption are added. Signed-off-by: Stephan Mueller <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
1c49678e8a
commit
353519887c
2 changed files with 56 additions and 0 deletions
|
|
@ -3286,6 +3286,22 @@ static const struct alg_test_desc alg_test_descs[] = {
|
|||
.alg = "jitterentropy_rng",
|
||||
.fips_allowed = 1,
|
||||
.test = alg_test_null,
|
||||
}, {
|
||||
.alg = "kw(aes)",
|
||||
.test = alg_test_skcipher,
|
||||
.fips_allowed = 1,
|
||||
.suite = {
|
||||
.cipher = {
|
||||
.enc = {
|
||||
.vecs = aes_kw_enc_tv_template,
|
||||
.count = ARRAY_SIZE(aes_kw_enc_tv_template)
|
||||
},
|
||||
.dec = {
|
||||
.vecs = aes_kw_dec_tv_template,
|
||||
.count = ARRAY_SIZE(aes_kw_dec_tv_template)
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.alg = "lrw(aes)",
|
||||
.test = alg_test_skcipher,
|
||||
|
|
|
|||
Loading…
Reference in a new issue