aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-09-19 02:42:54 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-09-27 01:32:16 -0400
commit9cac3a297d8d7a46a2d430913187547b8441a0b5 (patch)
tree0e8ccabed5cdd7a2ac8313deb8d2d262ae4aad5a /crypto/testmgr.h
parentf44d83d19d8fde77bc499131bc9c0bc8583785c8 (diff)
crypto: testmgr - add test vectors for partial ctr(cast5) and ctr(cast6)
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r--crypto/testmgr.h66
1 files changed, 62 insertions, 4 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 70984f5341e2..2257157da66b 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -6979,8 +6979,8 @@ static struct cipher_testvec serpent_xts_dec_tv_template[] = {
6979#define CAST6_DEC_TEST_VECTORS 4 6979#define CAST6_DEC_TEST_VECTORS 4
6980#define CAST6_CBC_ENC_TEST_VECTORS 1 6980#define CAST6_CBC_ENC_TEST_VECTORS 1
6981#define CAST6_CBC_DEC_TEST_VECTORS 1 6981#define CAST6_CBC_DEC_TEST_VECTORS 1
6982#define CAST6_CTR_ENC_TEST_VECTORS 1 6982#define CAST6_CTR_ENC_TEST_VECTORS 2
6983#define CAST6_CTR_DEC_TEST_VECTORS 1 6983#define CAST6_CTR_DEC_TEST_VECTORS 2
6984#define CAST6_LRW_ENC_TEST_VECTORS 1 6984#define CAST6_LRW_ENC_TEST_VECTORS 1
6985#define CAST6_LRW_DEC_TEST_VECTORS 1 6985#define CAST6_LRW_DEC_TEST_VECTORS 1
6986#define CAST6_XTS_ENC_TEST_VECTORS 1 6986#define CAST6_XTS_ENC_TEST_VECTORS 1
@@ -7621,6 +7621,22 @@ static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
7621 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", 7621 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7622 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" 7622 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7623 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" 7623 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7624 "\x3A",
7625 .ilen = 17,
7626 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
7627 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
7628 "\x57",
7629 .rlen = 17,
7630 }, { /* Generated from TF test vectors */
7631 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7632 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7633 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7634 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7635 .klen = 32,
7636 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7637 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7638 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7639 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7624 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" 7640 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7625 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" 7641 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7626 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 7642 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
@@ -7762,6 +7778,22 @@ static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
7762 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", 7778 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7763 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" 7779 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
7764 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" 7780 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
7781 "\x57",
7782 .ilen = 17,
7783 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7784 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7785 "\x3A",
7786 .rlen = 17,
7787 }, { /* Generated from TF test vectors */
7788 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7789 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7790 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7791 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7792 .klen = 32,
7793 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7794 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7795 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
7796 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
7765 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" 7797 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
7766 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" 7798 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
7767 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" 7799 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
@@ -13657,8 +13689,8 @@ static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
13657#define CAST5_DEC_TEST_VECTORS 4 13689#define CAST5_DEC_TEST_VECTORS 4
13658#define CAST5_CBC_ENC_TEST_VECTORS 1 13690#define CAST5_CBC_ENC_TEST_VECTORS 1
13659#define CAST5_CBC_DEC_TEST_VECTORS 1 13691#define CAST5_CBC_DEC_TEST_VECTORS 1
13660#define CAST5_CTR_ENC_TEST_VECTORS 1 13692#define CAST5_CTR_ENC_TEST_VECTORS 2
13661#define CAST5_CTR_DEC_TEST_VECTORS 1 13693#define CAST5_CTR_DEC_TEST_VECTORS 2
13662 13694
13663static struct cipher_testvec cast5_enc_tv_template[] = { 13695static struct cipher_testvec cast5_enc_tv_template[] = {
13664 { 13696 {
@@ -14266,6 +14298,19 @@ static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
14266 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", 14298 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
14267 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" 14299 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14268 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" 14300 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14301 "\x3A",
14302 .ilen = 17,
14303 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
14304 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
14305 "\x0C",
14306 .rlen = 17,
14307 }, { /* Generated from TF test vectors */
14308 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14309 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
14310 .klen = 16,
14311 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
14312 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14313 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14269 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" 14314 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14270 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" 14315 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14271 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 14316 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
@@ -14404,6 +14449,19 @@ static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
14404 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", 14449 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
14405 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" 14450 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
14406 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" 14451 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
14452 "\x0C",
14453 .ilen = 17,
14454 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14455 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14456 "\x3A",
14457 .rlen = 17,
14458 }, { /* Generated from TF test vectors */
14459 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14460 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
14461 .klen = 16,
14462 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
14463 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
14464 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
14407 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" 14465 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
14408 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" 14466 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
14409 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" 14467 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"