23 #ifndef LWCRYPTO_COMET_H
24 #define LWCRYPTO_COMET_H
56 #define COMET_KEY_SIZE 16
61 #define COMET_128_TAG_SIZE 16
66 #define COMET_64_TAG_SIZE 8
71 #define COMET_128_NONCE_SIZE 16
76 #define COMET_64_NONCE_SIZE 15
115 (
unsigned char *c,
unsigned long long *clen,
116 const unsigned char *m,
unsigned long long mlen,
117 const unsigned char *ad,
unsigned long long adlen,
118 const unsigned char *nsec,
119 const unsigned char *npub,
120 const unsigned char *k);
145 (
unsigned char *m,
unsigned long long *mlen,
147 const unsigned char *c,
unsigned long long clen,
148 const unsigned char *ad,
unsigned long long adlen,
149 const unsigned char *npub,
150 const unsigned char *k);
174 (
unsigned char *c,
unsigned long long *clen,
175 const unsigned char *m,
unsigned long long mlen,
176 const unsigned char *ad,
unsigned long long adlen,
177 const unsigned char *nsec,
178 const unsigned char *npub,
179 const unsigned char *k);
204 (
unsigned char *m,
unsigned long long *mlen,
206 const unsigned char *c,
unsigned long long clen,
207 const unsigned char *ad,
unsigned long long adlen,
208 const unsigned char *npub,
209 const unsigned char *k);
233 (
unsigned char *c,
unsigned long long *clen,
234 const unsigned char *m,
unsigned long long mlen,
235 const unsigned char *ad,
unsigned long long adlen,
236 const unsigned char *nsec,
237 const unsigned char *npub,
238 const unsigned char *k);
263 (
unsigned char *m,
unsigned long long *mlen,
265 const unsigned char *c,
unsigned long long clen,
266 const unsigned char *ad,
unsigned long long adlen,
267 const unsigned char *npub,
268 const unsigned char *k);
Meta-information about an AEAD cipher.
Definition: aead-common.h:185
Definitions that are common across AEAD schemes.
int comet_64_speck_aead_encrypt(unsigned char *c, unsigned long long *clen, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, const unsigned char *nsec, const unsigned char *npub, const unsigned char *k)
Encrypts and authenticates a packet with COMET-64_SPECK-64/128.
Definition: comet.c:483
aead_cipher_t const comet_128_cham_cipher
Meta-information block for the COMET-128_CHAM-128/128 cipher.
Definition: comet.c:29
aead_cipher_t const comet_64_speck_cipher
Meta-information block for the COMET-64_SPECK-64/128 cipher.
Definition: comet.c:49
int comet_64_cham_aead_encrypt(unsigned char *c, unsigned long long *clen, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, const unsigned char *nsec, const unsigned char *npub, const unsigned char *k)
Encrypts and authenticates a packet with COMET-64_CHAM-64/128.
Definition: comet.c:407
aead_cipher_t const comet_64_cham_cipher
Meta-information block for the COMET-64_CHAM-64/128 cipher.
Definition: comet.c:39
int comet_64_cham_aead_decrypt(unsigned char *m, unsigned long long *mlen, unsigned char *nsec, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k)
Decrypts and authenticates a packet with COMET-64_CHAM-64/128.
Definition: comet.c:444
int comet_128_cham_aead_encrypt(unsigned char *c, unsigned long long *clen, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, const unsigned char *nsec, const unsigned char *npub, const unsigned char *k)
Encrypts and authenticates a packet with COMET-128_CHAM-128/128.
Definition: comet.c:337
int comet_64_speck_aead_decrypt(unsigned char *m, unsigned long long *mlen, unsigned char *nsec, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k)
Decrypts and authenticates a packet with COMET-64_SPECK-64/128.
Definition: comet.c:520
int comet_128_cham_aead_decrypt(unsigned char *m, unsigned long long *mlen, unsigned char *nsec, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k)
Decrypts and authenticates a packet with COMET-128_CHAM-128/128.
Definition: comet.c:371