23 #ifndef LWCRYPTO_XOODYAK_MASKED_H
24 #define LWCRYPTO_XOODYAK_MASKED_H
40 #define XOODYAK_MASKED_KEY_SIZE 16
45 #define XOODYAK_MASKED_TAG_SIZE 16
50 #define XOODYAK_MASKED_NONCE_SIZE 16
73 (
unsigned char *c,
size_t *clen,
74 const unsigned char *m,
size_t mlen,
75 const unsigned char *ad,
size_t adlen,
76 const unsigned char *npub,
77 const unsigned char *k);
101 (
unsigned char *m,
size_t *mlen,
102 const unsigned char *c,
size_t clen,
103 const unsigned char *ad,
size_t adlen,
104 const unsigned char *npub,
105 const unsigned char *k);
int xoodyak_masked_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 masked Xoodyak.
Definition: xoodyak-masked.c:250
int xoodyak_masked_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 masked Xoodyak.
Definition: xoodyak-masked.c:330