mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
crypto: testmgr - fuzz skciphers against their generic implementation
When the extra crypto self-tests are enabled, test each skcipher algorithm against its generic implementation when one is available. This involves: checking the algorithm properties for consistency, then randomly generating test vectors using the generic implementation and running them against the implementation under test. Both good and bad inputs are tested. This has already detected a bug in the skcipher_walk API, a bug in the LRW template, and an inconsistency in the cts implementations. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
9a8a6b3f09
commit
d435e10e67
2 changed files with 198 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ struct cipher_testvec {
|
|||
const char *ptext;
|
||||
const char *ctext;
|
||||
unsigned char wk; /* weak key flag */
|
||||
unsigned char klen;
|
||||
unsigned short klen;
|
||||
unsigned short len;
|
||||
bool fips_skip;
|
||||
bool generates_iv;
|
||||
|
|
|
|||
Loading…
Reference in a new issue