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

Function compute_packet_hmac

common/sphinx.c:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276static void compute_packet_hmac(const struct onionpacket *packet,
277 const u8 *assocdata, const size_t assocdatalen,
278 const struct secret *mukey,
279 struct hmac *hmac)
280{
281 compute_hmac(mukey,
282 packet->routinginfo, tal_bytelen(packet->routinginfo),
283 assocdata, assocdatalen,
284 hmac);
285}
286
287static void generate_header_padding(void *dst, size_t dstlen,
288 size_t fixed_size,

Callers 2

create_onionpacketFunction · 0.85
process_onionpacketFunction · 0.85

Calls 2

compute_hmacFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected