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

Function cbm_sha256_update

src/foundation/sha256.c:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void cbm_sha256_update(cbm_sha256_ctx *c, const void *data, size_t len) {
81 const uint8_t *p = (const uint8_t *)data;
82 for (size_t i = 0; i < len; i++) {
83 c->buf[c->buflen++] = p[i];
84 if (c->buflen == 64) {
85 sha256_transform(c, c->buf);
86 c->bitlen += 512;
87 c->buflen = 0;
88 }
89 }
90}
91
92void cbm_sha256_final(cbm_sha256_ctx *c, uint8_t out[CBM_SHA256_DIGEST_LEN]) {
93 c->bitlen += (uint64_t)c->buflen * 8;

Callers 15

cov_failure_fingerprintFunction · 0.85
userconfig_source_digestFunction · 0.85
cbm_cli_sha256_fileFunction · 0.85
query_graph_sha_u64Function · 0.85
query_graph_sha_fieldFunction · 0.85
query_graph_params_hashFunction · 0.85
query_graph_cursor_sealFunction · 0.85
cbm_sha256_hexFunction · 0.85
cbm_hmac_sha256Function · 0.85

Calls 1

sha256_transformFunction · 0.85

Tested by

no test coverage detected