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

Function hash_u5_done

common/hash_u5.c:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void hash_u5_done(struct hash_u5 *hu5, struct sha256 *res)
41{
42 if (hu5->num_bits) {
43 be32 be32 = cpu_to_be32(hu5->buf << (32 - hu5->num_bits));
44
45 sha256_update(&hu5->hash, &be32, (hu5->num_bits + 7) / 8);
46 }
47 sha256_done(&hu5->hash, res);
48}

Callers 3

handle_sign_invoiceFunction · 0.85
bolt11_decode_nosigFunction · 0.85
test_signFunction · 0.85

Calls 3

cpu_to_be32Function · 0.85
sha256_updateFunction · 0.85
sha256_doneFunction · 0.85

Tested by 1

test_signFunction · 0.68