testmgr.h (a0d608ee5ebfa9a9da0e69784e7aa0f86644a02e) testmgr.h (231baecdef7a906579925ccf1bd45aa734f32320)
1/*
2 * Algorithm testing framework and tests.
3 *
4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
6 * Copyright (c) 2007 Nokia Siemens Networks
7 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
8 *

--- 36 unchanged lines hidden (view full) ---

45 * cipher_testvec: structure to describe a symmetric cipher test
46 * @key: Pointer to key
47 * @klen: Length of @key in bytes
48 * @iv: Pointer to IV (optional for some ciphers)
49 * @ptext: Pointer to plaintext
50 * @ctext: Pointer to ciphertext
51 * @len: Length of @ptext and @ctext in bytes
52 * @fail: If set to one, the test need to fail
1/*
2 * Algorithm testing framework and tests.
3 *
4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
6 * Copyright (c) 2007 Nokia Siemens Networks
7 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
8 *

--- 36 unchanged lines hidden (view full) ---

45 * cipher_testvec: structure to describe a symmetric cipher test
46 * @key: Pointer to key
47 * @klen: Length of @key in bytes
48 * @iv: Pointer to IV (optional for some ciphers)
49 * @ptext: Pointer to plaintext
50 * @ctext: Pointer to ciphertext
51 * @len: Length of @ptext and @ctext in bytes
52 * @fail: If set to one, the test need to fail
53 * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY
53 * @wk: Does the test need CRYPTO_TFM_REQ_FORBID_WEAK_KEYS?
54 * ( e.g. test needs to fail due to a weak key )
55 * @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
56 * @tap: How to distribute data in @np SGs
57 * @also_non_np: if set to 1, the test will be also done without
58 * splitting data in @np SGs
59 * @fips_skip: Skip the test vector in FIPS mode
60 * @generates_iv: Encryption should ignore the given IV, and output @iv.
61 * Decryption takes @iv. Needed for AES Keywrap ("kw(aes)").

--- 24 unchanged lines hidden (view full) ---

86 * produce a separate "ciphertext" and "authentication tag", these
87 * two parts are concatenated: ciphertext || tag.
88 * @tap: How to distribute ptext data in @np SGs
89 * @atap: How to distribute assoc data in @anp SGs
90 * @np: Numbers of SG to distribute ptext data in
91 * @anp: Numbers of SG to distribute assoc data in
92 * @fail: setkey() failure expected?
93 * @novrfy: Decryption verification failure expected?
54 * ( e.g. test needs to fail due to a weak key )
55 * @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
56 * @tap: How to distribute data in @np SGs
57 * @also_non_np: if set to 1, the test will be also done without
58 * splitting data in @np SGs
59 * @fips_skip: Skip the test vector in FIPS mode
60 * @generates_iv: Encryption should ignore the given IV, and output @iv.
61 * Decryption takes @iv. Needed for AES Keywrap ("kw(aes)").

--- 24 unchanged lines hidden (view full) ---

86 * produce a separate "ciphertext" and "authentication tag", these
87 * two parts are concatenated: ciphertext || tag.
88 * @tap: How to distribute ptext data in @np SGs
89 * @atap: How to distribute assoc data in @anp SGs
90 * @np: Numbers of SG to distribute ptext data in
91 * @anp: Numbers of SG to distribute assoc data in
92 * @fail: setkey() failure expected?
93 * @novrfy: Decryption verification failure expected?
94 * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY?
94 * @wk: Does the test need CRYPTO_TFM_REQ_FORBID_WEAK_KEYS?
95 * (e.g. setkey() needs to fail due to a weak key)
96 * @klen: Length of @key in bytes
97 * @plen: Length of @ptext in bytes
98 * @alen: Length of @assoc in bytes
99 * @clen: Length of @ctext in bytes
100 */
101struct aead_testvec {
102 const char *key;

--- 30562 unchanged lines hidden ---
95 * (e.g. setkey() needs to fail due to a weak key)
96 * @klen: Length of @key in bytes
97 * @plen: Length of @ptext in bytes
98 * @alen: Length of @assoc in bytes
99 * @clen: Length of @ctext in bytes
100 */
101struct aead_testvec {
102 const char *key;

--- 30562 unchanged lines hidden ---