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

Function SHA256_Init

freebsd/crypto/sha2/sha256c.c:228–244  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

226
227/* SHA-256 initialization. Begins a SHA-256 operation. */
228void
229SHA256_Init(SHA256_CTX * ctx)
230{
231
232 /* Zero bits processed so far */
233 ctx->count = 0;
234
235 /* Magic initialization constants */
236 ctx->state[0] = 0x6A09E667;
237 ctx->state[1] = 0xBB67AE85;
238 ctx->state[2] = 0x3C6EF372;
239 ctx->state[3] = 0xA54FF53A;
240 ctx->state[4] = 0x510E527F;
241 ctx->state[5] = 0x9B05688C;
242 ctx->state[6] = 0x1F83D9AB;
243 ctx->state[7] = 0x5BE0CD19;
244}
245
246/* Add bytes into the hash */
247void

Callers 6

SHA256_Init_fnFunction · 0.50
verify_digestFunction · 0.50
arc4random.cFile · 0.50
kerneldumpcrypto_initFunction · 0.50
partial_hash_sha256Function · 0.50
partial_hash_sha256Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected