updated unittests

This commit is contained in:
TLINDEN
2014-02-13 00:06:36 +01:00
parent 621cece568
commit bf2500b335
14 changed files with 141 additions and 239 deletions

View File

@@ -1,33 +1,33 @@
size_t secret_a_len = 32;
unsigned char secret_a[32] = {
0x18, 0x6e, 0xa4, 0xc4, 0x57, 0x0b, 0xdf, 0x21,
0x46, 0xcf, 0x75, 0xd1, 0xad, 0x44, 0xe9, 0xa2,
0x98, 0x06, 0xa3, 0xe5, 0xfe, 0x51, 0x02, 0xcd,
0xe6, 0x8f, 0x08, 0xa0, 0xb3, 0x25, 0xb7, 0x65
0x88, 0xaf, 0xfc, 0x29, 0xa7, 0xee, 0x89, 0xe4,
0xb0, 0xf1, 0x80, 0x85, 0x24, 0x78, 0x2a, 0x11,
0x3a, 0x30, 0xd9, 0x99, 0x14, 0x21, 0x62, 0xb9,
0x5f, 0xf1, 0xbf, 0x26, 0x3c, 0xad, 0x5b, 0x43
};
size_t public_a_len = 32;
unsigned char public_a[32] = {
0x7c, 0xad, 0x50, 0xbc, 0x22, 0x47, 0x13, 0x40,
0xb9, 0xb0, 0xf4, 0x95, 0xad, 0xa4, 0x5c, 0x5f,
0xb9, 0x94, 0x4f, 0x93, 0xae, 0xf0, 0x08, 0x5e,
0xda, 0x9f, 0x32, 0x4e, 0xed, 0x11, 0x67, 0x5e
0x9a, 0x70, 0x21, 0xd8, 0x9a, 0xd7, 0xef, 0x7d,
0xcb, 0xc5, 0xe4, 0x1b, 0xe9, 0x05, 0x4b, 0xcd,
0xe8, 0xc9, 0x6c, 0xe2, 0x8e, 0x18, 0x66, 0xb7,
0x17, 0x1b, 0xa1, 0xc4, 0xe1, 0x3c, 0xfc, 0x33
};
size_t secret_b_len = 32;
unsigned char secret_b[32] = {
0x78, 0x6a, 0xe1, 0xea, 0x51, 0x9f, 0xfc, 0xfb,
0xaa, 0xaf, 0xca, 0x46, 0xc2, 0x5d, 0x78, 0x8e,
0x8b, 0x1a, 0x6e, 0xd5, 0xe4, 0xdf, 0x5f, 0xba,
0x13, 0xc4, 0xc4, 0xc4, 0x3d, 0xb5, 0xb7, 0x66
0x98, 0xd9, 0x2a, 0xf4, 0x91, 0x21, 0xe5, 0x22,
0xcb, 0xc1, 0x28, 0xd5, 0x5b, 0xb2, 0xbe, 0x25,
0x6b, 0x62, 0xfe, 0x19, 0x16, 0x12, 0x90, 0x7c,
0xdd, 0xb0, 0xbe, 0x97, 0x13, 0xa2, 0x21, 0x4c
};
size_t public_b_len = 32;
unsigned char public_b[32] = {
0x2d, 0xf3, 0xfc, 0x59, 0x65, 0xf8, 0xd9, 0xc4,
0x50, 0x65, 0x68, 0x24, 0x5e, 0x64, 0x4d, 0xa5,
0x3b, 0x23, 0x77, 0x3e, 0x00, 0xde, 0xe6, 0x7a,
0x27, 0x53, 0x28, 0x7e, 0x96, 0x31, 0xe4, 0x3c
0xe4, 0xa2, 0x2e, 0x3c, 0xaa, 0xd8, 0x58, 0x81,
0x49, 0xaf, 0x3d, 0x08, 0x16, 0xc9, 0x87, 0x41,
0xf4, 0x98, 0xe0, 0x6a, 0x3f, 0x96, 0x88, 0x9e,
0xc4, 0x66, 0x2b, 0xa7, 0x60, 0x57, 0xb0, 0x7f
};
size_t message_len = 12;
@@ -38,16 +38,16 @@ unsigned char message[12] = {
size_t nonce_len = 24;
unsigned char nonce[24] = {
0xc4, 0x20, 0x58, 0x86, 0x7d, 0x01, 0x26, 0xc4,
0x8e, 0xe5, 0xfe, 0xdb, 0x4a, 0xcc, 0x86, 0x27,
0x8b, 0xf9, 0x32, 0x7e, 0x2d, 0x4d, 0xbb, 0x52
0x31, 0x59, 0xca, 0x38, 0x5d, 0xfd, 0x83, 0xac,
0x81, 0xdc, 0xcb, 0x21, 0x94, 0x1f, 0x7c, 0x51,
0x83, 0xe4, 0x60, 0xcf, 0x27, 0x81, 0x46, 0x48
};
size_t cipher_len = 28;
unsigned char cipher[28] = {
0xc9, 0x4f, 0x63, 0xb0, 0x1b, 0xbe, 0x94, 0x71,
0xda, 0x35, 0x4e, 0xd7, 0x0d, 0xd7, 0x83, 0x8a,
0x07, 0x92, 0xb0, 0x8f, 0x9b, 0xa6, 0x69, 0x94,
0xeb, 0xd9, 0x4e, 0x0a
0x65, 0xe0, 0xcd, 0x58, 0x92, 0xd7, 0x2d, 0xfd,
0x32, 0xaa, 0xa4, 0x03, 0x85, 0x02, 0xea, 0x83,
0x90, 0x16, 0x45, 0x55, 0xe7, 0x41, 0x84, 0xfc,
0xcf, 0x86, 0x55, 0x5d
};