Skip to content

Commit

Permalink
crypto: testmgr - Document struct cipher_testvec
Browse files Browse the repository at this point in the history
Signed-off-by: LABBE Corentin <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed Jun 9, 2015
1 parent 12f7c14 commit a7eed15
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crypto/testmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@ struct hash_testvec {
unsigned char ksize;
};

/*
* cipher_testvec: structure to describe a cipher test
* @key: A pointer to a key used by the test
* @klen: The length of @key
* @iv: A pointer to the IV used by the test
* @input: A pointer to data used as input
* @ilen The length of data in @input
* @result: A pointer to what the test need to produce
* @rlen: The length of data in @result
* @fail: If set to one, the test need to fail
* @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY
* ( e.g. test needs to fail due to a weak key )
* @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
* @tap: How to distribute data in @np SGs
* @also_non_np: if set to 1, the test will be also done without
* splitting data in @np SGs
*/

struct cipher_testvec {
char *key;
char *iv;
Expand Down

0 comments on commit a7eed15

Please sign in to comment.