changed key derivation function, using scrypt (from tarsnap) now instead of my own derivation function

This commit is contained in:
git@daemon.de
2014-01-16 15:25:09 +01:00
parent ce0ec4d5ec
commit 691786cc68
66 changed files with 5449 additions and 1042 deletions

View File

@@ -1,33 +1,33 @@
size_t secret_a_len = 32;
unsigned char secret_a[32] = {
0xe0, 0x75, 0x2c, 0xb7, 0xeb, 0x7d, 0x73, 0x7a,
0x5b, 0x1c, 0x45, 0xf8, 0x9e, 0x8c, 0xc5, 0xfe,
0xb7, 0x30, 0x9e, 0xac, 0x03, 0x7c, 0x57, 0x0f,
0x0b, 0x76, 0x49, 0x2d, 0xa1, 0x33, 0x43, 0x53
0x90, 0x14, 0xe7, 0xb5, 0x90, 0x04, 0x4f, 0xc0,
0xc6, 0xdf, 0x87, 0xe6, 0xbd, 0x87, 0xc8, 0x56,
0x64, 0x07, 0xfb, 0xb3, 0x3a, 0x25, 0x7c, 0xb9,
0x3f, 0xbc, 0x04, 0xd1, 0xd2, 0x2a, 0x56, 0x4e
};
size_t public_a_len = 32;
unsigned char public_a[32] = {
0x2f, 0xb4, 0xaa, 0x49, 0x06, 0xf1, 0x8f, 0xa1,
0x22, 0xa0, 0x44, 0xf3, 0xd1, 0x3d, 0x0b, 0xca,
0xe3, 0x5f, 0x7c, 0x3b, 0x23, 0x05, 0xf0, 0xb2,
0x51, 0x11, 0xe8, 0x7f, 0x32, 0xc8, 0xec, 0x17
0x55, 0xfd, 0x89, 0xe6, 0xbd, 0x57, 0x49, 0x4b,
0x24, 0xaf, 0x07, 0x07, 0x81, 0xd7, 0x82, 0x8b,
0x33, 0x80, 0x60, 0x08, 0xf9, 0x56, 0xe2, 0x04,
0xe3, 0x1c, 0xf7, 0x5b, 0x1e, 0x1c, 0x74, 0x3d
};
size_t secret_b_len = 32;
unsigned char secret_b[32] = {
0xc0, 0xb6, 0xfb, 0xa5, 0x3b, 0xd2, 0x10, 0x76,
0x40, 0xf4, 0xbf, 0xda, 0x99, 0xdc, 0x6b, 0xf0,
0xf5, 0xbd, 0xcc, 0x2e, 0xaa, 0x85, 0x6a, 0x62,
0x64, 0xf4, 0xa0, 0xc8, 0xad, 0x82, 0x43, 0x56
0x30, 0x4c, 0xaf, 0xb4, 0x6f, 0x09, 0x17, 0xa7,
0x9a, 0x2d, 0xe3, 0xa8, 0x56, 0xff, 0x13, 0xac,
0xbc, 0xc7, 0xa2, 0x56, 0x5d, 0xfd, 0x39, 0x88,
0x1b, 0xe0, 0xaa, 0x85, 0xfe, 0x15, 0xba, 0x40
};
size_t public_b_len = 32;
unsigned char public_b[32] = {
0x47, 0xaa, 0x98, 0xad, 0xcd, 0x76, 0x6d, 0x8d,
0x7a, 0x1a, 0x4f, 0x5e, 0x24, 0xac, 0x98, 0xb9,
0x07, 0x3d, 0x48, 0xeb, 0x29, 0x41, 0x4c, 0x82,
0x06, 0x92, 0x58, 0xa4, 0x7d, 0xd8, 0x53, 0x7d
0xcb, 0x8b, 0x3e, 0x3f, 0xca, 0xff, 0x0d, 0xdd,
0x6c, 0xe3, 0xc9, 0x28, 0x2c, 0xe8, 0x06, 0x94,
0xc5, 0x63, 0x63, 0xa0, 0x66, 0x85, 0x28, 0x72,
0x5a, 0x5b, 0xff, 0x5f, 0x06, 0xa1, 0xa4, 0x69
};
size_t message_len = 12;
@@ -38,16 +38,16 @@ unsigned char message[12] = {
size_t nonce_len = 24;
unsigned char nonce[24] = {
0x24, 0x64, 0x0e, 0xd3, 0x8a, 0xbf, 0x98, 0x52,
0x1e, 0xd9, 0xa4, 0xdd, 0x93, 0x27, 0x11, 0xee,
0x63, 0x7e, 0x49, 0x2e, 0x97, 0x3b, 0x78, 0xee
0xa9, 0x22, 0x83, 0x39, 0x47, 0x80, 0x30, 0x04,
0x37, 0x38, 0xd0, 0x34, 0x97, 0x6c, 0x52, 0x8e,
0x6a, 0xe3, 0xcd, 0x4c, 0x8d, 0xdd, 0x74, 0x5a
};
size_t cipher_len = 28;
unsigned char cipher[28] = {
0x5f, 0x55, 0xeb, 0x71, 0x24, 0x84, 0x81, 0xdd,
0x17, 0x74, 0x89, 0xe2, 0x15, 0xbe, 0x3d, 0xc7,
0xd8, 0xce, 0x68, 0xc6, 0x6c, 0x2b, 0x45, 0xc7,
0x61, 0x43, 0xe7, 0x6d
0x2a, 0x93, 0x39, 0x8d, 0x84, 0x69, 0x99, 0x5d,
0x61, 0x9c, 0x19, 0x80, 0x2f, 0x18, 0x16, 0x38,
0x5c, 0x1d, 0x08, 0x5e, 0xcc, 0xed, 0xed, 0x48,
0xe8, 0x0d, 0x47, 0x92
};