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

Function compute_packet_hmac

common/sphinx.c:304–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static void compute_packet_hmac(const struct onionpacket *packet,
305 const u8 *assocdata, const size_t assocdatalen,
306 const struct secret *mukey,
307 struct hmac *hmac)
308{
309 compute_hmac(mukey,
310 packet->routinginfo, tal_bytelen(packet->routinginfo),
311 assocdata, assocdatalen,
312 hmac);
313}
314
315static void generate_header_padding(void *dst, size_t dstlen,
316 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