Lines Matching defs:state
26 struct siphash state = {};
33 /* verify the internal state as given in the above paper */
34 siphash24_init(&state, key);
35 assert_se(state.v0 == 0x7469686173716475);
36 assert_se(state.v1 == 0x6b617f6d656e6665);
37 assert_se(state.v2 == 0x6b7f62616d677361);
38 assert_se(state.v3 == 0x7b6b696e727e6c7b);
39 siphash24_compress(in, len, &state);
40 assert_se(state.v0 == 0x4a017198de0a59e0);
41 assert_se(state.v1 == 0x0d52f6f62a4f59a4);
42 assert_se(state.v2 == 0x634cb3577b01fd3d);
43 assert_se(state.v3 == 0xa5224d6f55c7d9c8);
44 out = siphash24_finalize(&state);
46 assert_se(state.v0 == 0xf6bcd53893fecff1);
47 assert_se(state.v1 == 0x54b9964c7ea0d937);
48 assert_se(state.v2 == 0x1b38329c099bb55a);
49 assert_se(state.v3 == 0x1814bb89ad7be679);
55 siphash24_init(&state, key);
56 siphash24_compress(in, i, &state);
57 siphash24_compress(&in[i], j - i, &state);
58 siphash24_compress(&in[j], len - j, &state);
59 out = siphash24_finalize(&state);