MCPcopy Create free account
hub / github.com/F-Stack/f-stack / SipHash_End

Function SipHash_End

freebsd/crypto/siphash/siphash.c:181–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181uint64_t
182SipHash_End(SIPHASH_CTX *ctx)
183{
184 uint64_t r;
185
186 KASSERT(ctx->initialized == 2,
187 ("%s: context %p not properly initialized", __func__, ctx));
188
189 SipBuf(ctx, NULL, 0, 1);
190 ctx->v[2] ^= 0xff;
191 SipRounds(ctx, 1);
192 r = (ctx->v[0] ^ ctx->v[1]) ^ (ctx->v[2] ^ ctx->v[3]);
193
194 bzero(ctx, sizeof(*ctx));
195 return (r);
196}
197
198uint64_t
199SipHashX(SIPHASH_CTX *ctx, int rc, int rf,

Callers 2

SipHash_FinalFunction · 0.85
SipHashXFunction · 0.85

Calls 3

SipBufFunction · 0.85
SipRoundsFunction · 0.85
bzeroFunction · 0.85

Tested by

no test coverage detected