23 #ifndef LWCRYPTO_ELEPHANT_DELIRIUM_H
24 #define LWCRYPTO_ELEPHANT_DELIRIUM_H
46 #define DELIRIUM_KEY_SIZE 16
51 #define DELIRIUM_TAG_SIZE 16
56 #define DELIRIUM_NONCE_SIZE 12
79 (
unsigned char *c,
size_t *clen,
80 const unsigned char *m,
size_t mlen,
81 const unsigned char *ad,
size_t adlen,
82 const unsigned char *npub,
83 const unsigned char *k);
107 (
unsigned char *m,
size_t *mlen,
108 const unsigned char *c,
size_t clen,
109 const unsigned char *ad,
size_t adlen,
110 const unsigned char *npub,
111 const unsigned char *k);
int delirium_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 Delirium.
int delirium_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 Delirium.