Home
last modified time | relevance | path

Searched refs:h1 (Results 1 – 3 of 3) sorted by relevance

/lib/crypto/
Dpoly1305-donna64.c42 u64 h0, h1, h2; in poly1305_core_blocks() local
56 h1 = state->h64[1]; in poly1305_core_blocks()
70 h1 += ((t0 >> 44) | (t1 << 20)) & 0xfffffffffffULL; in poly1305_core_blocks()
75 d = (u128)h1 * s2; in poly1305_core_blocks()
80 d = (u128)h1 * r0; in poly1305_core_blocks()
85 d = (u128)h1 * r1; in poly1305_core_blocks()
95 h1 = (u64)d1 & 0xfffffffffffULL; in poly1305_core_blocks()
102 h1 += c; in poly1305_core_blocks()
108 state->h64[1] = h1; in poly1305_core_blocks()
117 u64 h0, h1, h2, c; in poly1305_core_emit() local
[all …]
Dpoly1305-donna32.c38 u32 h0, h1, h2, h3, h4; in poly1305_core_blocks() local
59 h1 = state->h[1]; in poly1305_core_blocks()
67 h1 += (get_unaligned_le32(&input[3]) >> 2) & 0x3ffffff; in poly1305_core_blocks()
73 d0 = ((u64)h0 * r0) + ((u64)h1 * s4) + in poly1305_core_blocks()
76 d1 = ((u64)h0 * r1) + ((u64)h1 * r0) + in poly1305_core_blocks()
79 d2 = ((u64)h0 * r2) + ((u64)h1 * r1) + in poly1305_core_blocks()
82 d3 = ((u64)h0 * r3) + ((u64)h1 * r2) + in poly1305_core_blocks()
85 d4 = ((u64)h0 * r4) + ((u64)h1 * r3) + in poly1305_core_blocks()
94 h1 = (u32)d1 & 0x3ffffff; in poly1305_core_blocks()
107 h1 += c; in poly1305_core_blocks()
[all …]
/lib/
Dtest_hash.c72 u32 h0 = (u32)h64, h1, h2; in test_int_hash() local
75 hash_or[0][0] |= h1 = __hash_32(h0); in test_int_hash()
79 if (h1 != h2) { in test_int_hash()
81 h0, h1, h2); in test_int_hash()
92 hash_or[0][k] |= h1 = hash_32(h0, k); in test_int_hash()
93 if (h1 > m) { in test_int_hash()
94 pr_err("hash_32(%#x, %d) = %#x > %#x", h0, k, h1, m); in test_int_hash()
100 if (h1 != h2) { in test_int_hash()
102 " = %#x", h0, k, h1, h2); in test_int_hash()
108 h0, k, h1, m); in test_int_hash()
[all …]