Commit 960d898c authored by Olaf Bergmann's avatar Olaf Bergmann

unit tests: additional test vectors for AEAD test suite

parent 056e8236
......@@ -387,5 +387,65 @@ struct test_vector rfc3610_data[] = {
0xa6, 0xc7, 0x46, 0x3d, 0x5a, 0xc3, 0x0a, 0x73,
0x14, 0x96, 0xa4, 0x84, 0x7f, 0x37, 0x55, 0x42,
0xce, 0x7e, 0xf9, 0x3b, 0xe5 } /* result */
},
/* #33 */
/* Cipher: AES-128 M=8 L=3 K_LEN=16 N_LEN=12 K=0xc0c1c2c3c4c5c6c7c8c9cacbcccdcecf N=0xabcdef030201a0a1a200a4a5 */
{ 8, 3, 22, 8,
{ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf
}, /* AES key */
{ 0xab, 0xcd, 0xef, 0x03, 0x02, 0x01, 0xa0, 0xa1,
0xa2, 0x00, 0xa4, 0xa5 }, /* Nonce */
{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x61, 0x62, 0x63, 0x44, 0x45, 0x46, 0x78, 0x79,
0x7a, 0x31, 0x32, 0x33, 0x34, 0x35 }, /* msg */
30, /* length of result */
{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0xad, 0xf3, 0xfc, 0x3a, 0xd8, 0xf2, 0x4f, 0xfe,
0x2b, 0xc2, 0x77, 0x21, 0x85, 0x1a, 0xa6, 0x13,
0x87, 0xe6, 0x31, 0xc4, 0xed, 0xd7
} /* result */
},
/* #34 */
/* Cipher: AES-128 M=8 L=3 K_LEN=16 N_LEN=12 K=0xc0c1c2c3c4c5c6c7c8c9cacbcccdcecf N=0xabcdef030201a0a1a200a4a5 */
{ 8, 3, 14, 0,
{ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf
}, /* AES key */
{ 0xab, 0xcd, 0xef, 0x03, 0x02, 0x01, 0xa0, 0xa1,
0xa2, 0x00, 0xa4, 0xa5
}, /* Nonce */
{ 0x61, 0x62, 0x63, 0x44, 0x45, 0x46, 0x78, 0x79,
0x7a, 0x31, 0x32, 0x33, 0x34, 0x35
}, /* msg */
22, /* length of result */
{ 0xad, 0xf3, 0xfc, 0x3a, 0xd8, 0xf2, 0x4f, 0xfe,
0x2b, 0xc2, 0x77, 0x21, 0x85, 0x1a, 0xdb, 0x21,
0x61, 0xde, 0x8f, 0x24, 0x1e, 0x91
} /* result */
},
/* #35 */
/* Cipher: AES-128 M=16 L=3 K_LEN=16 N_LEN=12 K=0xc0c1c2c3c4c5c6c7c8c9cacbcccdcecf N=0xabcdef030201a0a1a200a4a5 */
{ 16, 3, 19, 3,
{ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf
}, /* AES key */
{ 0xab, 0xcd, 0xef, 0x03, 0x02, 0x01, 0xa0, 0xa1,
0xa2, 0x00, 0xa4, 0xa5 }, /* Nonce */
{ 0xaa, 0xbb, 0xcc, 0x31, 0x36, 0x20, 0x42, 0x79,
0x74, 0x65, 0x73, 0x20, 0x4d, 0x41, 0x43, 0x20,
0x74, 0x61, 0x67
}, /* msg */
35, /* length of result */
{ 0xaa, 0xbb, 0xcc, 0xfd, 0xa7, 0xbf, 0x3c, 0xe4,
0xc0, 0x52, 0xf4, 0x71, 0xbe, 0x04, 0x51, 0x91,
0x5b, 0x21, 0x84, 0x77, 0x05, 0xa0, 0xb7, 0x02,
0xce, 0xd1, 0xac, 0xd3, 0x27, 0x60, 0xb1, 0x4a,
0x15, 0xc7, 0xe6
} /* result */
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment