| 302 | } |
| 303 | |
| 304 | static 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 | |
| 315 | static void generate_header_padding(void *dst, size_t dstlen, |
| 316 | size_t fixed_size, |
no test coverage detected