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

Function SipHash_InitX

freebsd/crypto/siphash/siphash.c:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static void SipRounds(SIPHASH_CTX *ctx, int final);
56
57void
58SipHash_InitX(SIPHASH_CTX *ctx, int rc, int rf)
59{
60
61 ctx->v[0] = 0x736f6d6570736575ull;
62 ctx->v[1] = 0x646f72616e646f6dull;
63 ctx->v[2] = 0x6c7967656e657261ull;
64 ctx->v[3] = 0x7465646279746573ull;
65 ctx->buf.b64 = 0;
66 ctx->bytes = 0;
67 ctx->buflen = 0;
68 ctx->rounds_compr = rc;
69 ctx->rounds_final = rf;
70 ctx->initialized = 1;
71}
72
73void
74SipHash_SetKey(SIPHASH_CTX *ctx, const uint8_t key[static SIPHASH_KEY_LENGTH])

Callers 1

SipHashXFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected