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

Function SHA224_Init

freebsd/crypto/sha2/sha256c.c:310–326  ·  view source on GitHub ↗

SHA-224 initialization. Begins a SHA-224 operation. */

Source from the content-addressed store, hash-verified

308
309/* SHA-224 initialization. Begins a SHA-224 operation. */
310void
311SHA224_Init(SHA224_CTX * ctx)
312{
313
314 /* Zero bits processed so far */
315 ctx->count = 0;
316
317 /* Magic initialization constants */
318 ctx->state[0] = 0xC1059ED8;
319 ctx->state[1] = 0x367CD507;
320 ctx->state[2] = 0x3070DD17;
321 ctx->state[3] = 0xF70E5939;
322 ctx->state[4] = 0xFFC00B31;
323 ctx->state[5] = 0x68581511;
324 ctx->state[6] = 0x64f98FA7;
325 ctx->state[7] = 0xBEFA4FA4;
326}
327
328/* Add bytes into the SHA-224 hash */
329void

Callers 3

SHA224_Init_fnFunction · 0.50
partial_hash_sha224Function · 0.50
partial_hash_sha224Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected