Lines Matching +full:3 +full:v
1 // SPDX-License-Identifier: BSD-3-Clause
2 /* $OpenBSD: siphash.c,v 1.3 2015/02/20 11:51:03 tedu Exp $ */
16 * 3. The name of the author may not be used to endorse or promote
57 ctx->v[0] += ctx->v[1]; in SipHash_Rounds()
58 ctx->v[2] += ctx->v[3]; in SipHash_Rounds()
59 ctx->v[1] = rol64(ctx->v[1], 13); in SipHash_Rounds()
60 ctx->v[3] = rol64(ctx->v[3], 16); in SipHash_Rounds()
62 ctx->v[1] ^= ctx->v[0]; in SipHash_Rounds()
63 ctx->v[3] ^= ctx->v[2]; in SipHash_Rounds()
64 ctx->v[0] = rol64(ctx->v[0], 32); in SipHash_Rounds()
66 ctx->v[2] += ctx->v[1]; in SipHash_Rounds()
67 ctx->v[0] += ctx->v[3]; in SipHash_Rounds()
68 ctx->v[1] = rol64(ctx->v[1], 17); in SipHash_Rounds()
69 ctx->v[3] = rol64(ctx->v[3], 21); in SipHash_Rounds()
71 ctx->v[1] ^= ctx->v[2]; in SipHash_Rounds()
72 ctx->v[3] ^= ctx->v[0]; in SipHash_Rounds()
73 ctx->v[2] = rol64(ctx->v[2], 32); in SipHash_Rounds()
81 ctx->v[3] ^= m; in SipHash_CRounds()
83 ctx->v[0] ^= m; in SipHash_CRounds()
93 ctx->v[0] = 0x736f6d6570736575ULL ^ k0; in SipHash_Init()
94 ctx->v[1] = 0x646f72616e646f6dULL ^ k1; in SipHash_Init()
95 ctx->v[2] = 0x6c7967656e657261ULL ^ k0; in SipHash_Init()
96 ctx->v[3] = 0x7465646279746573ULL ^ k1; in SipHash_Init()
158 ctx->v[2] ^= 0xff; in SipHash_End()
161 r = (ctx->v[0] ^ ctx->v[1]) ^ (ctx->v[2] ^ ctx->v[3]); in SipHash_End()