MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sha256_double

Function sha256_double

bitcoin/shadouble.c:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <wire/wire.h>
6
7void sha256_double(struct sha256_double *shadouble, const void *p, size_t len)
8{
9 sha256(&shadouble->sha, memcheck(p, len), len);
10 sha256(&shadouble->sha, &shadouble->sha, sizeof(shadouble->sha));
11}
12
13void sha256_double_done(struct sha256_ctx *shactx, struct sha256_double *res)
14{

Callers

nothing calls this directly

Calls 1

sha256Class · 0.70

Tested by

no test coverage detected