diff options
Diffstat (limited to 'main/nip04.h')
| -rw-r--r-- | main/nip04.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/nip04.h b/main/nip04.h new file mode 100644 index 0000000..f612a8e --- /dev/null +++ b/main/nip04.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #ifndef NIP04_H | ||
| 2 | #define NIP04_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | #include <stddef.h> | ||
| 6 | |||
| 7 | void nip04_encrypt(const uint8_t *sender_privkey, const uint8_t *recipient_pubkey, | ||
| 8 | const char *plaintext, uint8_t *ciphertext_base64, size_t *out_len); | ||
| 9 | |||
| 10 | int nip04_decrypt(const uint8_t *recipient_privkey, const uint8_t *sender_pubkey, | ||
| 11 | const char *ciphertext_base64, char *plaintext, size_t plaintext_max); | ||
| 12 | |||
| 13 | #endif | ||