diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2015-06-05 05:39:22 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-09 10:22:00 -0400 |
commit | a7eed15627795b60c57da48051826ecca5e9fa93 (patch) | |
tree | 936d63b27465c742a140a6bac1c7f5a137646e9e /crypto | |
parent | 12f7c14aa602f15ad60e5a9da459271f63b92917 (diff) |
crypto: testmgr - Document struct cipher_testvec
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/testmgr.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 4d98e401852a..4c2b3e57defa 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h | |||
@@ -46,6 +46,24 @@ struct hash_testvec { | |||
46 | unsigned char ksize; | 46 | unsigned char ksize; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | /* | ||
50 | * cipher_testvec: structure to describe a cipher test | ||
51 | * @key: A pointer to a key used by the test | ||
52 | * @klen: The length of @key | ||
53 | * @iv: A pointer to the IV used by the test | ||
54 | * @input: A pointer to data used as input | ||
55 | * @ilen The length of data in @input | ||
56 | * @result: A pointer to what the test need to produce | ||
57 | * @rlen: The length of data in @result | ||
58 | * @fail: If set to one, the test need to fail | ||
59 | * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY | ||
60 | * ( e.g. test needs to fail due to a weak key ) | ||
61 | * @np: numbers of SG to distribute data in (from 1 to MAX_TAP) | ||
62 | * @tap: How to distribute data in @np SGs | ||
63 | * @also_non_np: if set to 1, the test will be also done without | ||
64 | * splitting data in @np SGs | ||
65 | */ | ||
66 | |||
49 | struct cipher_testvec { | 67 | struct cipher_testvec { |
50 | char *key; | 68 | char *key; |
51 | char *iv; | 69 | char *iv; |