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

Function sha256_init

app/redis-6.2.6/src/sha256.c:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void sha256_init(SHA256_CTX *ctx)
86{
87 ctx->datalen = 0;
88 ctx->bitlen = 0;
89 ctx->state[0] = 0x6a09e667;
90 ctx->state[1] = 0xbb67ae85;
91 ctx->state[2] = 0x3c6ef372;
92 ctx->state[3] = 0xa54ff53a;
93 ctx->state[4] = 0x510e527f;
94 ctx->state[5] = 0x9b05688c;
95 ctx->state[6] = 0x1f83d9ab;
96 ctx->state[7] = 0x5be0cd19;
97}
98
99void sha256_update(SHA256_CTX *ctx, const BYTE data[], size_t len)
100{

Callers 2

ACLHashPasswordFunction · 0.85
getRandomBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected