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

Function test_decrypt_header

tests/fuzz/fuzz-cryptomsg.c:84–93  ·  view source on GitHub ↗

Test header decryption of arbitrary bytes. */

Source from the content-addressed store, hash-verified

82
83/* Test header decryption of arbitrary bytes. */
84static 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. */
96static void test_decrypt_body(const u8 *buf)

Callers 1

runFunction · 0.85

Calls 2

tal_bytelenFunction · 0.85
cryptomsg_decrypt_headerFunction · 0.85

Tested by

no test coverage detected