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

Function SHA384_Init

freebsd/crypto/sha2/sha512c.c:425–441  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

423
424/* SHA-384 initialization. Begins a SHA-384 operation. */
425void
426SHA384_Init(SHA384_CTX * ctx)
427{
428
429 /* Zero bits processed so far */
430 ctx->count[0] = ctx->count[1] = 0;
431
432 /* Magic initialization constants */
433 ctx->state[0] = 0xcbbb9d5dc1059ed8ULL;
434 ctx->state[1] = 0x629a292a367cd507ULL;
435 ctx->state[2] = 0x9159015a3070dd17ULL;
436 ctx->state[3] = 0x152fecd8f70e5939ULL;
437 ctx->state[4] = 0x67332667ffc00b31ULL;
438 ctx->state[5] = 0x8eb44a8768581511ULL;
439 ctx->state[6] = 0xdb0c2e0d64f98fa7ULL;
440 ctx->state[7] = 0x47b5481dbefa4fa4ULL;
441}
442
443/* Add bytes into the SHA-384 hash */
444void

Callers 2

partial_hash_sha384Function · 0.50
partial_hash_sha384Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected