23 #ifndef LWCRYPTO_XOODYAK_AEAD_H
24 #define LWCRYPTO_XOODYAK_AEAD_H
57 #define XOODYAK_KEY_SIZE 16
62 #define XOODYAK_TAG_SIZE 16
67 #define XOODYAK_NONCE_SIZE 16
90 (
unsigned char *c,
size_t *clen,
91 const unsigned char *m,
size_t mlen,
92 const unsigned char *ad,
size_t adlen,
93 const unsigned char *npub,
94 const unsigned char *k);
118 (
unsigned char *m,
size_t *mlen,
119 const unsigned char *c,
size_t clen,
120 const unsigned char *ad,
size_t adlen,
121 const unsigned char *npub,
122 const unsigned char *k);
int xoodyak_aead_encrypt(unsigned char *c, size_t *clen, const unsigned char *m, size_t mlen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const unsigned char *k)
Encrypts and authenticates a packet with Xoodyak.
Definition: xoodyak-aead.c:84
int xoodyak_aead_decrypt(unsigned char *m, size_t *mlen, const unsigned char *c, size_t clen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const unsigned char *k)
Decrypts and authenticates a packet with Xoodyak.
Definition: xoodyak-aead.c:137