D | test-siphash24.c | 9 static void test_alignment_one(const uint8_t *in, size_t len, const uint8_t *key) { in test_alignment_one() argument 14 out = siphash24(in, len, key); in test_alignment_one() 23 siphash24_compress(in, len, &state); in test_alignment_one() 40 siphash24_compress(in, i, &state); in test_alignment_one() 41 siphash24_compress(&in[i], j - i, &state); in test_alignment_one() 42 siphash24_compress(&in[j], len - j, &state); in test_alignment_one() 50 const uint8_t in[15] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in TEST() local 57 memcpy(in_buf, in, sizeof(in)); in TEST() 58 test_alignment_one(in_buf, sizeof(in), key); in TEST() 59 memcpy(in_buf + 1, in, sizeof(in)); in TEST() [all …]
|