MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / sha256_init

Function sha256_init

Libraries/unrar/sha256.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#define sg1(x) (rotr32(x,17) ^ rotr32(x,19) ^ (x >> 10))
34
35void sha256_init(sha256_context *ctx)
36{
37 ctx->H[0] = 0x6a09e667; // Set the initial hash value.
38 ctx->H[1] = 0xbb67ae85;
39 ctx->H[2] = 0x3c6ef372;
40 ctx->H[3] = 0xa54ff53a;
41 ctx->H[4] = 0x510e527f;
42 ctx->H[5] = 0x9b05688c;
43 ctx->H[6] = 0x1f83d9ab;
44 ctx->H[7] = 0x5be0cd19;
45 ctx->Count = 0; // Processed data counter.
46}
47
48
49static void sha256_transform(sha256_context *ctx)

Callers 4

sha256_doneFunction · 0.85
hmac_sha256Function · 0.85
ReadHeader50Method · 0.85
ProcessExtra50Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected