1*362f9228SEric Biggers /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*362f9228SEric Biggers /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py blake2s */ 3*362f9228SEric Biggers 4*362f9228SEric Biggers static const struct { 5*362f9228SEric Biggers size_t data_len; 6*362f9228SEric Biggers u8 digest[BLAKE2S_HASH_SIZE]; 7*362f9228SEric Biggers } hash_testvecs[] = { 8*362f9228SEric Biggers { 9*362f9228SEric Biggers .data_len = 0, 10*362f9228SEric Biggers .digest = { 11*362f9228SEric Biggers 0x69, 0x21, 0x7a, 0x30, 0x79, 0x90, 0x80, 0x94, 12*362f9228SEric Biggers 0xe1, 0x11, 0x21, 0xd0, 0x42, 0x35, 0x4a, 0x7c, 13*362f9228SEric Biggers 0x1f, 0x55, 0xb6, 0x48, 0x2c, 0xa1, 0xa5, 0x1e, 14*362f9228SEric Biggers 0x1b, 0x25, 0x0d, 0xfd, 0x1e, 0xd0, 0xee, 0xf9, 15*362f9228SEric Biggers }, 16*362f9228SEric Biggers }, 17*362f9228SEric Biggers { 18*362f9228SEric Biggers .data_len = 1, 19*362f9228SEric Biggers .digest = { 20*362f9228SEric Biggers 0x7c, 0xab, 0x53, 0xe2, 0x48, 0x87, 0xdf, 0x64, 21*362f9228SEric Biggers 0x98, 0x6a, 0xc1, 0x7e, 0xf0, 0x01, 0x4d, 0xc9, 22*362f9228SEric Biggers 0x07, 0x4f, 0xb8, 0x2f, 0x46, 0xd7, 0xee, 0xa9, 23*362f9228SEric Biggers 0xad, 0xe5, 0xf8, 0x21, 0xac, 0xfe, 0x17, 0x58, 24*362f9228SEric Biggers }, 25*362f9228SEric Biggers }, 26*362f9228SEric Biggers { 27*362f9228SEric Biggers .data_len = 2, 28*362f9228SEric Biggers .digest = { 29*362f9228SEric Biggers 0x5e, 0x63, 0x2c, 0xd0, 0xf8, 0x7b, 0xf5, 0xae, 30*362f9228SEric Biggers 0x61, 0x97, 0x94, 0x57, 0xc8, 0x76, 0x22, 0xd9, 31*362f9228SEric Biggers 0x8b, 0x04, 0x5e, 0xf1, 0x5d, 0xd0, 0xfc, 0xd9, 32*362f9228SEric Biggers 0x0c, 0x19, 0x2e, 0xe2, 0xc5, 0xd9, 0x73, 0x51, 33*362f9228SEric Biggers }, 34*362f9228SEric Biggers }, 35*362f9228SEric Biggers { 36*362f9228SEric Biggers .data_len = 3, 37*362f9228SEric Biggers .digest = { 38*362f9228SEric Biggers 0x33, 0x65, 0xa6, 0x37, 0xbf, 0xf8, 0x4f, 0x15, 39*362f9228SEric Biggers 0x4c, 0xac, 0x9e, 0xa4, 0x3b, 0x02, 0x07, 0x0c, 40*362f9228SEric Biggers 0x80, 0x86, 0x0d, 0x6c, 0xe4, 0xaf, 0x1c, 0xbc, 41*362f9228SEric Biggers 0x0b, 0x9c, 0x0a, 0x98, 0xc2, 0x99, 0x71, 0xcd, 42*362f9228SEric Biggers }, 43*362f9228SEric Biggers }, 44*362f9228SEric Biggers { 45*362f9228SEric Biggers .data_len = 16, 46*362f9228SEric Biggers .digest = { 47*362f9228SEric Biggers 0x59, 0xd2, 0x10, 0xd3, 0x75, 0xac, 0x48, 0x32, 48*362f9228SEric Biggers 0xb1, 0xea, 0xee, 0xcf, 0x0a, 0xd2, 0x8b, 0x15, 49*362f9228SEric Biggers 0x5d, 0x72, 0x71, 0x4c, 0xa7, 0x29, 0xb0, 0x7a, 50*362f9228SEric Biggers 0x44, 0x48, 0x8a, 0x54, 0x54, 0x54, 0x41, 0xf5, 51*362f9228SEric Biggers }, 52*362f9228SEric Biggers }, 53*362f9228SEric Biggers { 54*362f9228SEric Biggers .data_len = 32, 55*362f9228SEric Biggers .digest = { 56*362f9228SEric Biggers 0xdc, 0xfc, 0x46, 0x81, 0xc6, 0x1b, 0x2b, 0x47, 57*362f9228SEric Biggers 0x8b, 0xed, 0xe0, 0x73, 0x34, 0x38, 0x53, 0x92, 58*362f9228SEric Biggers 0x97, 0x2f, 0xfb, 0x51, 0xab, 0x4f, 0x2d, 0x9d, 59*362f9228SEric Biggers 0x69, 0x04, 0xa9, 0x5d, 0x33, 0xef, 0xcb, 0x1c, 60*362f9228SEric Biggers }, 61*362f9228SEric Biggers }, 62*362f9228SEric Biggers { 63*362f9228SEric Biggers .data_len = 48, 64*362f9228SEric Biggers .digest = { 65*362f9228SEric Biggers 0xd6, 0x2a, 0x7f, 0x96, 0x04, 0x4d, 0x16, 0xc8, 66*362f9228SEric Biggers 0x49, 0xe0, 0x37, 0x33, 0xe3, 0x7b, 0x34, 0x56, 67*362f9228SEric Biggers 0x99, 0xc5, 0x78, 0x57, 0x06, 0x02, 0xb4, 0xea, 68*362f9228SEric Biggers 0x80, 0xc4, 0xf8, 0x8f, 0x8d, 0x2b, 0xe4, 0x05, 69*362f9228SEric Biggers }, 70*362f9228SEric Biggers }, 71*362f9228SEric Biggers { 72*362f9228SEric Biggers .data_len = 49, 73*362f9228SEric Biggers .digest = { 74*362f9228SEric Biggers 0x8b, 0x58, 0x62, 0xb5, 0x85, 0xf6, 0x83, 0x36, 75*362f9228SEric Biggers 0xf5, 0x34, 0xb8, 0xd4, 0xbc, 0x5c, 0x8b, 0x38, 76*362f9228SEric Biggers 0xfd, 0x15, 0xcd, 0x44, 0x83, 0x25, 0x71, 0xe1, 77*362f9228SEric Biggers 0xd5, 0xe8, 0xa1, 0xa4, 0x36, 0x98, 0x7e, 0x68, 78*362f9228SEric Biggers }, 79*362f9228SEric Biggers }, 80*362f9228SEric Biggers { 81*362f9228SEric Biggers .data_len = 63, 82*362f9228SEric Biggers .digest = { 83*362f9228SEric Biggers 0x7e, 0xeb, 0x06, 0x87, 0xdf, 0x1a, 0xdc, 0xe5, 84*362f9228SEric Biggers 0xfb, 0x64, 0xd4, 0xd1, 0x5d, 0x9e, 0x75, 0xc0, 85*362f9228SEric Biggers 0xb9, 0xad, 0x55, 0x6c, 0xe6, 0xba, 0x4d, 0x98, 86*362f9228SEric Biggers 0x2f, 0xbf, 0x72, 0xad, 0x61, 0x37, 0xf6, 0x11, 87*362f9228SEric Biggers }, 88*362f9228SEric Biggers }, 89*362f9228SEric Biggers { 90*362f9228SEric Biggers .data_len = 64, 91*362f9228SEric Biggers .digest = { 92*362f9228SEric Biggers 0x72, 0xdb, 0x43, 0x16, 0x57, 0x8e, 0x3a, 0x96, 93*362f9228SEric Biggers 0xf3, 0x98, 0x19, 0x24, 0x17, 0x3b, 0xe8, 0xad, 94*362f9228SEric Biggers 0xa1, 0x9b, 0xa4, 0x1b, 0x74, 0x85, 0x2e, 0x24, 95*362f9228SEric Biggers 0x70, 0xea, 0x31, 0x5a, 0x1c, 0xbe, 0x43, 0xb5, 96*362f9228SEric Biggers }, 97*362f9228SEric Biggers }, 98*362f9228SEric Biggers { 99*362f9228SEric Biggers .data_len = 65, 100*362f9228SEric Biggers .digest = { 101*362f9228SEric Biggers 0x32, 0x48, 0xb0, 0xf0, 0x3f, 0xbb, 0xd2, 0xa3, 102*362f9228SEric Biggers 0xfd, 0xf6, 0x28, 0x4a, 0x2a, 0xc5, 0xbe, 0x4b, 103*362f9228SEric Biggers 0x73, 0x50, 0x63, 0xd6, 0x16, 0x00, 0xef, 0xed, 104*362f9228SEric Biggers 0xfe, 0x97, 0x41, 0x29, 0xb2, 0x84, 0xc4, 0xa3, 105*362f9228SEric Biggers }, 106*362f9228SEric Biggers }, 107*362f9228SEric Biggers { 108*362f9228SEric Biggers .data_len = 127, 109*362f9228SEric Biggers .digest = { 110*362f9228SEric Biggers 0x17, 0xda, 0x6b, 0x96, 0x6a, 0xa6, 0xa4, 0xa6, 111*362f9228SEric Biggers 0xa6, 0xf3, 0x9d, 0x18, 0x19, 0x8d, 0x98, 0x7c, 112*362f9228SEric Biggers 0x66, 0x38, 0xe8, 0x99, 0xe7, 0x0a, 0x50, 0x92, 113*362f9228SEric Biggers 0xaf, 0x11, 0x80, 0x05, 0x66, 0xed, 0xab, 0x74, 114*362f9228SEric Biggers }, 115*362f9228SEric Biggers }, 116*362f9228SEric Biggers { 117*362f9228SEric Biggers .data_len = 128, 118*362f9228SEric Biggers .digest = { 119*362f9228SEric Biggers 0x13, 0xd5, 0x8b, 0x22, 0xae, 0x90, 0x7b, 0x67, 120*362f9228SEric Biggers 0x87, 0x4e, 0x3c, 0x35, 0x4e, 0x01, 0xf0, 0xb1, 121*362f9228SEric Biggers 0xd3, 0xd1, 0x67, 0xbb, 0x43, 0xdb, 0x7c, 0x75, 122*362f9228SEric Biggers 0xa4, 0xc7, 0x64, 0x83, 0x1e, 0x9b, 0x98, 0xad, 123*362f9228SEric Biggers }, 124*362f9228SEric Biggers }, 125*362f9228SEric Biggers { 126*362f9228SEric Biggers .data_len = 129, 127*362f9228SEric Biggers .digest = { 128*362f9228SEric Biggers 0x6f, 0xe0, 0x5d, 0x9d, 0xd5, 0x78, 0x29, 0xfb, 129*362f9228SEric Biggers 0xd0, 0x77, 0xd1, 0x8a, 0xf0, 0x80, 0xcb, 0x81, 130*362f9228SEric Biggers 0x71, 0x9e, 0x4d, 0x49, 0xde, 0x74, 0x2a, 0x37, 131*362f9228SEric Biggers 0xc0, 0xd5, 0xf0, 0xfa, 0x50, 0xe6, 0x23, 0xfe, 132*362f9228SEric Biggers }, 133*362f9228SEric Biggers }, 134*362f9228SEric Biggers { 135*362f9228SEric Biggers .data_len = 256, 136*362f9228SEric Biggers .digest = { 137*362f9228SEric Biggers 0x89, 0xac, 0xf6, 0xe7, 0x5e, 0xba, 0x53, 0xf4, 138*362f9228SEric Biggers 0x92, 0x32, 0xd5, 0x64, 0xfb, 0xc4, 0x08, 0xac, 139*362f9228SEric Biggers 0x2c, 0x19, 0x6e, 0x63, 0x13, 0x75, 0xd0, 0x60, 140*362f9228SEric Biggers 0x54, 0x35, 0x82, 0xc4, 0x6d, 0x03, 0x1a, 0x05, 141*362f9228SEric Biggers }, 142*362f9228SEric Biggers }, 143*362f9228SEric Biggers { 144*362f9228SEric Biggers .data_len = 511, 145*362f9228SEric Biggers .digest = { 146*362f9228SEric Biggers 0x1c, 0xaf, 0x94, 0x7d, 0x9c, 0xce, 0x57, 0x64, 147*362f9228SEric Biggers 0xf8, 0xa8, 0x25, 0x45, 0x32, 0x86, 0x2b, 0x04, 148*362f9228SEric Biggers 0xb3, 0x2e, 0x67, 0xca, 0x73, 0x04, 0x2f, 0xab, 149*362f9228SEric Biggers 0xcc, 0xda, 0x9e, 0x42, 0xa1, 0xaf, 0x83, 0x5a, 150*362f9228SEric Biggers }, 151*362f9228SEric Biggers }, 152*362f9228SEric Biggers { 153*362f9228SEric Biggers .data_len = 513, 154*362f9228SEric Biggers .digest = { 155*362f9228SEric Biggers 0x21, 0xdf, 0xdc, 0x29, 0xd9, 0xfc, 0x7b, 0xe7, 156*362f9228SEric Biggers 0x3a, 0xc4, 0xe1, 0x61, 0xc5, 0xb5, 0xe1, 0xee, 157*362f9228SEric Biggers 0x7a, 0x9d, 0x0c, 0x66, 0x36, 0x63, 0xe4, 0x12, 158*362f9228SEric Biggers 0x62, 0xe2, 0xf5, 0x68, 0x72, 0xfc, 0x1e, 0x18, 159*362f9228SEric Biggers }, 160*362f9228SEric Biggers }, 161*362f9228SEric Biggers { 162*362f9228SEric Biggers .data_len = 1000, 163*362f9228SEric Biggers .digest = { 164*362f9228SEric Biggers 0x6e, 0xc7, 0x2e, 0xac, 0xd0, 0xbb, 0x22, 0xe0, 165*362f9228SEric Biggers 0xc2, 0x40, 0xb2, 0xfe, 0x8c, 0xaf, 0x9e, 0xcf, 166*362f9228SEric Biggers 0x32, 0x06, 0xc6, 0x45, 0x29, 0xbd, 0xe0, 0x7f, 167*362f9228SEric Biggers 0x53, 0x32, 0xc3, 0x2b, 0x2f, 0x68, 0x12, 0xcd, 168*362f9228SEric Biggers }, 169*362f9228SEric Biggers }, 170*362f9228SEric Biggers { 171*362f9228SEric Biggers .data_len = 3333, 172*362f9228SEric Biggers .digest = { 173*362f9228SEric Biggers 0x76, 0xba, 0x52, 0xb5, 0x09, 0xf5, 0x19, 0x09, 174*362f9228SEric Biggers 0x70, 0x1c, 0x09, 0x28, 0xb4, 0xaa, 0x98, 0x6a, 175*362f9228SEric Biggers 0x79, 0xe7, 0x5e, 0xcd, 0xe8, 0xa4, 0x73, 0x69, 176*362f9228SEric Biggers 0x1f, 0xf8, 0x05, 0x0a, 0xb4, 0xfe, 0xf9, 0x63, 177*362f9228SEric Biggers }, 178*362f9228SEric Biggers }, 179*362f9228SEric Biggers { 180*362f9228SEric Biggers .data_len = 4096, 181*362f9228SEric Biggers .digest = { 182*362f9228SEric Biggers 0xf7, 0xad, 0xf9, 0xc8, 0x0e, 0x04, 0x2f, 0xdf, 183*362f9228SEric Biggers 0xbe, 0x39, 0x79, 0x07, 0x0d, 0xd8, 0x1b, 0x06, 184*362f9228SEric Biggers 0x42, 0x3a, 0x43, 0x93, 0xf6, 0x7c, 0xc4, 0xe5, 185*362f9228SEric Biggers 0xc2, 0xd5, 0xd0, 0xa6, 0x35, 0x6c, 0xbd, 0x17, 186*362f9228SEric Biggers }, 187*362f9228SEric Biggers }, 188*362f9228SEric Biggers { 189*362f9228SEric Biggers .data_len = 4128, 190*362f9228SEric Biggers .digest = { 191*362f9228SEric Biggers 0x38, 0xd7, 0xab, 0x7e, 0x08, 0xdc, 0x1e, 0xab, 192*362f9228SEric Biggers 0x55, 0xbb, 0x3b, 0x7b, 0x6a, 0x17, 0xcc, 0x79, 193*362f9228SEric Biggers 0xa7, 0x02, 0x62, 0x66, 0x9b, 0xca, 0xee, 0xc0, 194*362f9228SEric Biggers 0x3d, 0x75, 0x34, 0x2e, 0x55, 0x82, 0x26, 0x3c, 195*362f9228SEric Biggers }, 196*362f9228SEric Biggers }, 197*362f9228SEric Biggers { 198*362f9228SEric Biggers .data_len = 4160, 199*362f9228SEric Biggers .digest = { 200*362f9228SEric Biggers 0xf7, 0xeb, 0x2f, 0x24, 0x98, 0x54, 0x04, 0x5a, 201*362f9228SEric Biggers 0x19, 0xe4, 0x12, 0x9d, 0x97, 0xbc, 0x87, 0xa5, 202*362f9228SEric Biggers 0x0b, 0x85, 0x29, 0xa1, 0x36, 0x89, 0xc9, 0xba, 203*362f9228SEric Biggers 0xa0, 0xe0, 0xac, 0x99, 0x7d, 0xa4, 0x51, 0x9f, 204*362f9228SEric Biggers }, 205*362f9228SEric Biggers }, 206*362f9228SEric Biggers { 207*362f9228SEric Biggers .data_len = 4224, 208*362f9228SEric Biggers .digest = { 209*362f9228SEric Biggers 0x8f, 0xe8, 0xa7, 0x79, 0x02, 0xbb, 0x4a, 0x56, 210*362f9228SEric Biggers 0x66, 0x91, 0xef, 0x22, 0xd1, 0x09, 0x26, 0x6c, 211*362f9228SEric Biggers 0xa9, 0x13, 0xd7, 0x44, 0xc7, 0x19, 0x9c, 0x0b, 212*362f9228SEric Biggers 0xfb, 0x4f, 0xca, 0x72, 0x8f, 0x34, 0xf7, 0x82, 213*362f9228SEric Biggers }, 214*362f9228SEric Biggers }, 215*362f9228SEric Biggers { 216*362f9228SEric Biggers .data_len = 16384, 217*362f9228SEric Biggers .digest = { 218*362f9228SEric Biggers 0xaa, 0x21, 0xbb, 0x25, 0x4b, 0x66, 0x6e, 0x29, 219*362f9228SEric Biggers 0x71, 0xc1, 0x44, 0x67, 0x19, 0xed, 0xe6, 0xe6, 220*362f9228SEric Biggers 0x61, 0x13, 0xf4, 0xb7, 0x02, 0x94, 0x81, 0x0f, 221*362f9228SEric Biggers 0xa7, 0x4d, 0xbb, 0x2c, 0xb8, 0xeb, 0x41, 0x0e, 222*362f9228SEric Biggers }, 223*362f9228SEric Biggers }, 224*362f9228SEric Biggers }; 225*362f9228SEric Biggers 226*362f9228SEric Biggers static const u8 hash_testvec_consolidated[BLAKE2S_HASH_SIZE] = { 227*362f9228SEric Biggers 0x84, 0x21, 0xbb, 0x73, 0x64, 0x47, 0x45, 0xe0, 228*362f9228SEric Biggers 0xc1, 0x83, 0x78, 0xf1, 0xea, 0xe5, 0xfd, 0xdb, 229*362f9228SEric Biggers 0x01, 0xda, 0xb7, 0x86, 0x70, 0x3b, 0x83, 0xb3, 230*362f9228SEric Biggers 0xbc, 0xd9, 0xfd, 0x96, 0xbd, 0x50, 0x06, 0x67, 231*362f9228SEric Biggers }; 232*362f9228SEric Biggers 233*362f9228SEric Biggers static const u8 blake2s_keyed_testvec_consolidated[BLAKE2S_HASH_SIZE] = { 234*362f9228SEric Biggers 0xa6, 0xad, 0xcd, 0xb8, 0xd9, 0xdd, 0xc7, 0x70, 235*362f9228SEric Biggers 0x07, 0x09, 0x7f, 0x9f, 0x41, 0xa9, 0x70, 0xa4, 236*362f9228SEric Biggers 0x1c, 0xca, 0x61, 0xbb, 0x58, 0xb5, 0xb2, 0x1d, 237*362f9228SEric Biggers 0xd1, 0x71, 0x16, 0xb0, 0x49, 0x4f, 0x9e, 0x1b, 238*362f9228SEric Biggers }; 239