MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_sha256_init

Function cbm_sha256_init

src/foundation/sha256.c:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void cbm_sha256_init(cbm_sha256_ctx *c) {
64 c->bitlen = 0;
65 c->buflen = 0;
66 c->state[0] = 0x6a09e667;
67 c->state[1] = 0xbb67ae85;
68 c->state[2] = 0x3c6ef372;
69 c->state[3] = 0xa54ff53a;
70 c->state[4] = 0x510e527f;
71 c->state[5] = 0x9b05688c;
72 c->state[6] = 0x1f83d9ab;
73 c->state[7] = 0x5be0cd19;
74}
75
76void cbm_sha256_update(cbm_sha256_ctx *c, const void *data, size_t len) {
77 const uint8_t *p = (const uint8_t *)data;

Calls

no outgoing calls

Tested by

no test coverage detected