23 #ifndef LWCRYPTO_ROMULUS_M_AEAD_H
24 #define LWCRYPTO_ROMULUS_M_AEAD_H
53 #define ROMULUS_M_KEY_SIZE 16
58 #define ROMULUS_M_TAG_SIZE 16
63 #define ROMULUS_M_NONCE_SIZE 16
86 (
unsigned char *c,
size_t *clen,
87 const unsigned char *m,
size_t mlen,
88 const unsigned char *ad,
size_t adlen,
89 const unsigned char *npub,
90 const unsigned char *k);
114 (
unsigned char *m,
size_t *mlen,
115 const unsigned char *c,
size_t clen,
116 const unsigned char *ad,
size_t adlen,
117 const unsigned char *npub,
118 const unsigned char *k);
int romulus_m_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 Romulus-M.
Definition: romulus-m-aead.c:299
int romulus_m_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 Romulus-M.
Definition: romulus-m-aead.c:329