23 #ifndef LWCRYPTO_PHOTON_BEETLE_AEAD_H
24 #define LWCRYPTO_PHOTON_BEETLE_AEAD_H
55 #define PHOTON_BEETLE_KEY_SIZE 16
60 #define PHOTON_BEETLE_TAG_SIZE 16
65 #define PHOTON_BEETLE_NONCE_SIZE 16
88 (
unsigned char *c,
size_t *clen,
89 const unsigned char *m,
size_t mlen,
90 const unsigned char *ad,
size_t adlen,
91 const unsigned char *npub,
92 const unsigned char *k);
116 (
unsigned char *m,
size_t *mlen,
117 const unsigned char *c,
size_t clen,
118 const unsigned char *ad,
size_t adlen,
119 const unsigned char *npub,
120 const unsigned char *k);
143 (
unsigned char *c,
size_t *clen,
144 const unsigned char *m,
size_t mlen,
145 const unsigned char *ad,
size_t adlen,
146 const unsigned char *npub,
147 const unsigned char *k);
171 (
unsigned char *m,
size_t *mlen,
172 const unsigned char *c,
size_t clen,
173 const unsigned char *ad,
size_t adlen,
174 const unsigned char *npub,
175 const unsigned char *k);
int photon_beetle_32_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 PHOTON-Beetle-AEAD-ENC-32.
Definition: photon-beetle-aead.c:320
int photon_beetle_128_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 PHOTON-Beetle-AEAD-ENC-128.
Definition: photon-beetle-aead.c:246
int photon_beetle_128_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 PHOTON-Beetle-AEAD-ENC-128.
Definition: photon-beetle-aead.c:210
int photon_beetle_32_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 PHOTON-Beetle-AEAD-ENC-32.
Definition: photon-beetle-aead.c:284