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

Function subkey_from_hmac

common/hmac.c:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void subkey_from_hmac(const char *prefix,
39 const struct secret *base,
40 struct secret *key)
41{
42 struct hmac h;
43 hmac(base->data, sizeof(base->data), prefix, strlen(prefix), &h);
44 CROSS_TYPE_ASSIGNMENT(&key->data, &h.bytes);
45}
46
47void towire_hmac(u8 **pptr, const struct hmac *hmac)
48{

Callers 14

generate_header_paddingFunction · 0.70
generate_prefillFunction · 0.70
create_onionpacketFunction · 0.70
process_onionpacketFunction · 0.70
create_onionreplyFunction · 0.70
wrap_onionreplyFunction · 0.70
unwrap_onionreplyFunction · 0.70
enctlv_from_encmsg_rawFunction · 0.70
unblind_onionFunction · 0.70
decrypt_encmsg_rawFunction · 0.70
blindedpath_get_aliasFunction · 0.70

Calls 1

hmacFunction · 0.70

Tested by

no test coverage detected