| 74 | } |
| 75 | |
| 76 | static struct secret secret_from_hex(const char *hex) |
| 77 | { |
| 78 | struct secret secret; |
| 79 | hex += 2; |
| 80 | if (!hex_decode(hex, strlen(hex), &secret, sizeof(secret))) |
| 81 | abort(); |
| 82 | return secret; |
| 83 | } |
| 84 | |
| 85 | /* Encodes the given message. Stores the decrypting crypto_state in `cs`. */ |
| 86 | static u8 *encode_msg(const tal_t *ctx, const void *message, size_t size, struct crypto_state *cs) |
no test coverage detected