crypto: testmgr: add support for aes ofb mode
Subsystems (3)
PATCH v2 1/1 crypto: testmgr: add support for aes ofb mode
From: puneet saxena <[email protected]>
the fix add testcase for testing aes ofb mode.
Signed-off-by Puneet Saxena <[email protected]>
---
v2: added linux-tegra mailing list
crypto/testmgr.c | 16 ++++++++++++++ crypto/testmgr.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 1 deletions(-)
crypto/testmgr.c +16 -0
@@ -2219,6 +2219,22 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "ofb(aes)", + .test = alg_test_skcipher, + .fips_allowed = 1, + .suite = { + .cipher = { + .enc = { + .vecs = aes_ofb_enc_tv_template, + .count = AES_OFB_ENC_TEST_VECTORS + }, + .dec = { + .vecs = aes_ofb_dec_tv_template, + .count = AES_OFB_DEC_TEST_VECTORS + } + } + } + }, { .alg = "pcbc(fcrypt)", .test = alg_test_skcipher, .suite = {
crypto/testmgr.h +60 -1
79 lines not on this page · raw message
Signature · 1 line
1.7.1.1
A message that is not in the archive (sent off-list or not yet received): 1303734686-2082-1-git-send-email-puneets-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
crypto/testmgr.h static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = { · line 5549
Quoted 12 lines · On Mon, Apr 25, 2011 at 06:01:26PM +0530…
crypto/testmgr.h +11
-0+static struct cipher_testvec aes_ofb_dec_tv_template[] = { +/* From NIST Special Publication 800-38A, Appendix F.5 */ + { + .key ="\x2b\x7e\x15\x16\x28\xae\xd2\xa6" +"\xab\xf7\x15\x88\x09\xcf\x4f\x3c" , + .klen =16 , + .iv ="\x00\x01\x02\x03\x04\x05\x06\x07\x08" +"\x09\x0a\x0b\x0c\x0d\x0e\x0f" , + .input ="\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" +"\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" +"\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
What's with the indentation changes? Please reformat it so that everything lines up properly.
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt