From 1da3c721da3d980b90e9dab05e708c89e52b399c Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Thu, 5 Jan 2017 17:50:37 +0100 Subject: [PATCH] Update test vectors for HalfSipHash PR #6 fixed an issue that requires generating new test vectors. --- vectors.h | 96 +++++++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/vectors.h b/vectors.h index 4b2fd27..a6d7561 100644 --- a/vectors.h +++ b/vectors.h @@ -469,13 +469,13 @@ const uint8_t vectors_hsip32[64][4] = { 0x2a, 0x6e, 0x46, 0x89, }, { - 0x96, 0x6b, 0x93, 0xe7, + 0xc5, 0xfa, 0xb6, 0x69, }, { - 0x43, 0x4b, 0x6d, 0x41, + 0x58, 0x63, 0xfc, 0x23, }, { - 0x28, 0xb5, 0x0d, 0x07, + 0x8b, 0xcf, 0x63, 0xc5, }, { 0xd0, 0xb8, 0x84, 0x8f, @@ -493,13 +493,13 @@ const uint8_t vectors_hsip32[64][4] = { 0x57, 0xf0, 0x87, 0x2f, }, { - 0xa1, 0x0f, 0x73, 0x9f, + 0x77, 0xe6, 0x63, 0xff, }, { - 0x38, 0x48, 0x0e, 0x12, + 0xd6, 0xff, 0xf8, 0x7c, }, { - 0xf5, 0x57, 0xcd, 0x5e, + 0x74, 0xfe, 0x2b, 0x97, }, { 0xd9, 0xb5, 0xac, 0x84, @@ -517,13 +517,13 @@ const uint8_t vectors_hsip32[64][4] = { 0xe3, 0x4d, 0x10, 0x45, }, { - 0x95, 0xba, 0x05, 0xfe, + 0x61, 0x3f, 0x62, 0xb3, }, { - 0x9d, 0x7c, 0x9a, 0x07, + 0x70, 0xf3, 0x67, 0xfe, }, { - 0xcd, 0x96, 0x37, 0xbe, + 0xe6, 0xad, 0xb8, 0xbd, }, { 0x27, 0x40, 0x0c, 0x63, @@ -541,13 +541,13 @@ const uint8_t vectors_hsip32[64][4] = { 0xb0, 0x64, 0x40, 0x00, }, { - 0xad, 0x29, 0x2c, 0x76, + 0xff, 0x67, 0x0f, 0xb4, }, { - 0x42, 0x05, 0x54, 0x3e, + 0x50, 0x9e, 0x33, 0x8b, }, { - 0xc1, 0xda, 0x40, 0x4b, + 0x5d, 0x58, 0x9f, 0x1a, }, { 0xfe, 0xe7, 0x21, 0x12, @@ -565,13 +565,13 @@ const uint8_t vectors_hsip32[64][4] = { 0xe7, 0x5c, 0xc6, 0xec, }, { - 0x88, 0x25, 0x34, 0x1c, + 0x69, 0x7e, 0x8d, 0x54, }, { - 0x90, 0x4c, 0xc5, 0x8a, + 0x63, 0x68, 0x8b, 0x0f, }, { - 0xf9, 0xe9, 0x16, 0x41, + 0x65, 0x0b, 0x62, 0xb4, }, { 0xb6, 0xbc, 0x18, 0x40, @@ -589,13 +589,13 @@ const uint8_t vectors_hsip32[64][4] = { 0x77, 0x05, 0xd5, 0x48, }, { - 0x5b, 0x5a, 0xb7, 0x0f, + 0xd7, 0x52, 0x08, 0xb1, }, { - 0x5e, 0xc0, 0x6e, 0x74, + 0xb6, 0xd4, 0x99, 0xc8, }, { - 0xca, 0x87, 0x82, 0x24, + 0x08, 0x92, 0x20, 0x2e, }, { 0x69, 0xe1, 0x2c, 0xe3, @@ -613,13 +613,13 @@ const uint8_t vectors_hsip32[64][4] = { 0x3b, 0x85, 0xf3, 0xd4, }, { - 0xc8, 0xc5, 0x57, 0x61, + 0xfe, 0xdb, 0x66, 0xbe, }, { - 0xf3, 0x91, 0x27, 0xc1, + 0x1e, 0x69, 0x2a, 0x3a, }, { - 0x78, 0xbb, 0xb1, 0x05, + 0xc6, 0x89, 0x84, 0xc0, }, { 0xa5, 0xc5, 0xb9, 0x40, @@ -637,13 +637,13 @@ const uint8_t vectors_hsip32[64][4] = { 0xd4, 0xe7, 0x6c, 0x73, }, { - 0xb4, 0xca, 0xe1, 0x2a, + 0x42, 0x8f, 0xcb, 0xb9, }, { - 0xed, 0x5d, 0x0a, 0x4f, + 0xbd, 0x83, 0x99, 0x7a, }, { - 0x3b, 0x29, 0xe1, 0x55, + 0x59, 0xea, 0x4a, 0x74, }, }; const uint8_t vectors_hsip64[64][8] = { @@ -663,13 +663,13 @@ const uint8_t vectors_hsip64[64][8] = { 0xd5, 0xe7, 0x8a, 0x17, 0x5b, 0xe5, 0x2e, 0xa1, }, { - 0x8b, 0x61, 0x44, 0x6b, 0x69, 0x65, 0x45, 0x3f, + 0xcb, 0x9d, 0x7c, 0x3f, 0x2f, 0x3d, 0xb5, 0x80, }, { - 0x43, 0xb6, 0xd1, 0x2c, 0x12, 0xe6, 0xa4, 0x83, + 0xce, 0x3e, 0x91, 0x35, 0x8a, 0xa2, 0xbc, 0x25, }, { - 0xa1, 0x97, 0xbf, 0x56, 0x20, 0x9e, 0x3f, 0xb5, + 0xff, 0x20, 0x27, 0x28, 0xb0, 0x7b, 0xc6, 0x84, }, { 0xed, 0xfe, 0xe8, 0x20, 0xbc, 0xe4, 0x85, 0x8c, @@ -687,13 +687,13 @@ const uint8_t vectors_hsip64[64][8] = { 0x7b, 0xc7, 0x1f, 0x9f, 0xae, 0xf5, 0xc7, 0x99, }, { - 0xbb, 0x2f, 0x5b, 0xb8, 0x24, 0x5d, 0x05, 0x6b, + 0x5a, 0x23, 0x52, 0xd7, 0x5a, 0x0c, 0x37, 0x44, }, { - 0x2f, 0x7b, 0xb0, 0xc8, 0xfd, 0x90, 0x99, 0xb9, + 0x3b, 0xb1, 0xa8, 0x70, 0xea, 0xe8, 0xe6, 0x58, }, { - 0x52, 0x7a, 0x26, 0x11, 0x58, 0xbf, 0x5d, 0xd7, + 0x21, 0x7d, 0x0b, 0xcb, 0x4e, 0x81, 0xc9, 0x02, }, { 0x73, 0x36, 0xaa, 0xd2, 0x5f, 0x7b, 0xf3, 0xb5, @@ -711,13 +711,13 @@ const uint8_t vectors_hsip64[64][8] = { 0x1b, 0xf5, 0x2b, 0x0a, 0x6f, 0xee, 0xa7, 0xdb, }, { - 0x58, 0x74, 0xd9, 0x26, 0x7b, 0x8e, 0xb7, 0xd2, + 0x00, 0x74, 0x1d, 0xc2, 0x69, 0xe8, 0xb3, 0xef, }, { - 0x5b, 0x82, 0x73, 0x21, 0xf7, 0xef, 0xa8, 0x08, + 0xe2, 0x01, 0x03, 0xfa, 0x1b, 0xa7, 0x76, 0xef, }, { - 0x61, 0x8e, 0x73, 0xc7, 0x7e, 0x26, 0xa6, 0xad, + 0x4c, 0x22, 0x10, 0xe5, 0x4b, 0x68, 0x1d, 0x73, }, { 0x70, 0x74, 0x10, 0x45, 0xae, 0x3f, 0xa6, 0xf1, @@ -735,13 +735,13 @@ const uint8_t vectors_hsip64[64][8] = { 0x2d, 0x92, 0x5f, 0xfb, 0x1e, 0x00, 0x16, 0xb5, }, { - 0x05, 0x1c, 0xb8, 0x28, 0xc2, 0xd3, 0xbb, 0x5d, + 0x36, 0x19, 0x58, 0xd5, 0x2c, 0xee, 0x10, 0xf1, }, { - 0xc0, 0xb9, 0xf9, 0x13, 0x5f, 0xdf, 0x47, 0x38, + 0x29, 0x1a, 0xaf, 0x86, 0x48, 0x98, 0x17, 0x9d, }, { - 0x63, 0x08, 0x23, 0x13, 0xd7, 0x8a, 0x9d, 0xe5, + 0x86, 0x3c, 0x7f, 0x15, 0x5c, 0x34, 0x11, 0x7c, }, { 0x28, 0x70, 0x9d, 0x46, 0xd8, 0x11, 0x62, 0x6c, @@ -759,13 +759,13 @@ const uint8_t vectors_hsip64[64][8] = { 0x86, 0xd6, 0x7a, 0x40, 0xec, 0x42, 0x76, 0xdc, }, { - 0x63, 0x28, 0x0a, 0x25, 0x56, 0xc8, 0x2e, 0x39, + 0x3f, 0x62, 0x92, 0xec, 0xcc, 0xa9, 0x7e, 0x35, }, { - 0x01, 0xd3, 0xcd, 0xb4, 0xe5, 0xb0, 0x5c, 0x93, + 0xcb, 0xd9, 0x2e, 0xe7, 0x24, 0xd4, 0x21, 0x09, }, { - 0x7a, 0x7d, 0x1c, 0x15, 0x8c, 0xc3, 0x12, 0x86, + 0x36, 0x8d, 0xf6, 0x80, 0x8d, 0x40, 0x3d, 0x79, }, { 0x5b, 0x38, 0xc8, 0x1c, 0x67, 0xc8, 0xae, 0x4c, @@ -783,13 +783,13 @@ const uint8_t vectors_hsip64[64][8] = { 0x1e, 0x30, 0xf3, 0xad, 0x27, 0xdc, 0xb1, 0x5a, }, { - 0xd4, 0xf7, 0x64, 0x16, 0x36, 0xe4, 0x1e, 0xf8, + 0x69, 0x7f, 0x5c, 0x9a, 0x90, 0x32, 0x4e, 0xd4, }, { - 0x53, 0x50, 0x4e, 0x3e, 0x26, 0xa9, 0x0c, 0x10, + 0x49, 0x5c, 0x0f, 0x99, 0x55, 0x57, 0xdc, 0x38, }, { - 0x86, 0xc4, 0xfa, 0xe9, 0x82, 0xd9, 0x28, 0xac, + 0x94, 0x27, 0x20, 0x2a, 0x3c, 0x29, 0xf9, 0x4d, }, { 0xa9, 0xea, 0xa8, 0xc0, 0x4b, 0xa9, 0x3e, 0x3e, @@ -807,13 +807,13 @@ const uint8_t vectors_hsip64[64][8] = { 0x02, 0x44, 0x5a, 0x79, 0x98, 0xf5, 0x50, 0xe1, }, { - 0x46, 0x9d, 0x24, 0xfd, 0x2c, 0xa1, 0x17, 0x84, + 0x86, 0xec, 0x46, 0x6c, 0xe7, 0x1d, 0x1f, 0xb2, }, { - 0xd0, 0x0f, 0x8e, 0x6f, 0xad, 0x4b, 0xdc, 0x9a, + 0x35, 0x95, 0x69, 0xe7, 0xd2, 0x89, 0xe3, 0xbc, }, { - 0x8e, 0x3f, 0x4f, 0x1c, 0x9c, 0x67, 0xaf, 0x49, + 0x87, 0x1b, 0x05, 0xca, 0x62, 0xbb, 0x7c, 0x96, }, { 0xa1, 0xa4, 0x92, 0xf9, 0x42, 0xf1, 0x5f, 0x1d, @@ -831,12 +831,12 @@ const uint8_t vectors_hsip64[64][8] = { 0xd6, 0x76, 0x28, 0x90, 0xbf, 0x26, 0xe4, 0x60, }, { - 0xb0, 0x66, 0x86, 0x1e, 0xf2, 0x44, 0x1d, 0x2a, + 0x31, 0x35, 0x63, 0xa4, 0xb7, 0xed, 0x5c, 0xf3, }, { - 0xd6, 0x15, 0xa6, 0xbb, 0xab, 0xf8, 0xff, 0x78, + 0xf9, 0x0b, 0x3a, 0xb5, 0x72, 0xd4, 0x66, 0x93, }, { - 0x7c, 0x70, 0x85, 0x9a, 0xcd, 0x70, 0x16, 0xce, + 0x2e, 0xa6, 0x3c, 0x71, 0xbf, 0x32, 0x60, 0x87, }, };