| 481 | } |
| 482 | |
| 483 | static void sphinx_write_frame(u8 *dest, |
| 484 | const struct sphinx_hop *hop, |
| 485 | const struct hmac *hmac) |
| 486 | { |
| 487 | BUILD_ASSERT(sizeof(hmac->bytes) == HMAC_SIZE); |
| 488 | memcpy(dest, hop->raw_payload, tal_bytelen(hop->raw_payload)); |
| 489 | memcpy(dest + tal_bytelen(hop->raw_payload), |
| 490 | hmac->bytes, HMAC_SIZE); |
| 491 | } |
| 492 | |
| 493 | static void sphinx_prefill_stream_xor(u8 *dst, size_t dstlen, |
| 494 | const struct secret *shared_secret) |
no test coverage detected