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

Function sha256_update

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

Source from the content-addressed store, hash-verified

97}
98
99void sha256_update(SHA256_CTX *ctx, const BYTE data[], size_t len)
100{
101 WORD i;
102
103 for (i = 0; i < len; ++i) {
104 ctx->data[ctx->datalen] = data[i];
105 ctx->datalen++;
106 if (ctx->datalen == 64) {
107 sha256_transform(ctx, ctx->data);
108 ctx->bitlen += 512;
109 ctx->datalen = 0;
110 }
111 }
112}
113
114void sha256_final(SHA256_CTX *ctx, BYTE hash[])
115{

Callers 2

ACLHashPasswordFunction · 0.85
getRandomBytesFunction · 0.85

Calls 1

sha256_transformFunction · 0.85

Tested by

no test coverage detected