Test header decryption of arbitrary bytes. */
| 82 | |
| 83 | /* Test header decryption of arbitrary bytes. */ |
| 84 | static void test_decrypt_header(const u8 *buf) |
| 85 | { |
| 86 | struct crypto_state cs_in = init_cs_in; |
| 87 | u16 len; |
| 88 | |
| 89 | if (tal_bytelen(buf) < CRYPTOMSG_HDR_SIZE) |
| 90 | return; |
| 91 | |
| 92 | cryptomsg_decrypt_header(&cs_in, buf, &len); |
| 93 | } |
| 94 | |
| 95 | /* Test body decryption of arbitrary bytes. */ |
| 96 | static void test_decrypt_body(const u8 *buf) |
no test coverage detected