| 274 | } |
| 275 | |
| 276 | static 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 | |
| 287 | static void generate_header_padding(void *dst, size_t dstlen, |
| 288 | size_t fixed_size, |
no test coverage detected