23 #ifndef LWCRYPTO_ELEPHANT_DUMBO_H
24 #define LWCRYPTO_ELEPHANT_DUMBO_H
46 #define DUMBO_KEY_SIZE 16
51 #define DUMBO_TAG_SIZE 8
56 #define DUMBO_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 dumbo_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 Dumbo.
int dumbo_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 Dumbo.