mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
crypto: essiv - add tests for essiv in cbc(aes)+sha256 mode
Add a test vector for the ESSIV mode that is the most widely used, i.e., using cbc(aes) and sha256, in both skcipher and AEAD modes (the latter is used by tcrypt to encapsulate the authenc template or h/w instantiations of the same) Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
389139b34f
commit
f975abb23c
3 changed files with 520 additions and 0 deletions
|
|
@ -2327,6 +2327,15 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb)
|
|||
0, speed_template_32);
|
||||
break;
|
||||
|
||||
case 220:
|
||||
test_acipher_speed("essiv(cbc(aes),sha256)",
|
||||
ENCRYPT, sec, NULL, 0,
|
||||
speed_template_16_24_32);
|
||||
test_acipher_speed("essiv(cbc(aes),sha256)",
|
||||
DECRYPT, sec, NULL, 0,
|
||||
speed_template_16_24_32);
|
||||
break;
|
||||
|
||||
case 221:
|
||||
test_aead_speed("aegis128", ENCRYPT, sec,
|
||||
NULL, 0, 16, 8, speed_template_16);
|
||||
|
|
|
|||
Loading…
Reference in a new issue