23 #ifndef LWCRYPTO_ASCON128_MASKED_H
24 #define LWCRYPTO_ASCON128_MASKED_H
52 #define ASCON128_MASKED_KEY_SIZE 16
57 #define ASCON128_MASKED_NONCE_SIZE 16
62 #define ASCON128_MASKED_TAG_SIZE 16
67 #define ASCON80PQ_MASKED_KEY_SIZE 20
72 #define ASCON80PQ_MASKED_NONCE_SIZE 16
77 #define ASCON80PQ_MASKED_TAG_SIZE 16
116 (
unsigned char *c,
unsigned long long *clen,
117 const unsigned char *m,
unsigned long long mlen,
118 const unsigned char *ad,
unsigned long long adlen,
119 const unsigned char *nsec,
120 const unsigned char *npub,
121 const unsigned char *k);
146 (
unsigned char *m,
unsigned long long *mlen,
148 const unsigned char *c,
unsigned long long clen,
149 const unsigned char *ad,
unsigned long long adlen,
150 const unsigned char *npub,
151 const unsigned char *k);
175 (
unsigned char *c,
unsigned long long *clen,
176 const unsigned char *m,
unsigned long long mlen,
177 const unsigned char *ad,
unsigned long long adlen,
178 const unsigned char *nsec,
179 const unsigned char *npub,
180 const unsigned char *k);
205 (
unsigned char *m,
unsigned long long *mlen,
207 const unsigned char *c,
unsigned long long clen,
208 const unsigned char *ad,
unsigned long long adlen,
209 const unsigned char *npub,
210 const unsigned char *k);
234 (
unsigned char *c,
unsigned long long *clen,
235 const unsigned char *m,
unsigned long long mlen,
236 const unsigned char *ad,
unsigned long long adlen,
237 const unsigned char *nsec,
238 const unsigned char *npub,
239 const unsigned char *k);
264 (
unsigned char *m,
unsigned long long *mlen,
266 const unsigned char *c,
unsigned long long clen,
267 const unsigned char *ad,
unsigned long long adlen,
268 const unsigned char *npub,
269 const unsigned char *k);
Meta-information about an AEAD cipher.
Definition: aead-common.h:185
Definitions that are common across AEAD schemes.
int ascon80pq_masked_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 masked ASCON-80pq.
Definition: ascon128-masked.c:1107
int ascon128_masked_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 masked ASCON-128.
Definition: ascon128-masked.c:913
aead_cipher_t const ascon128a_masked_cipher
Meta-information block for the masked ASCON-128a cipher.
Definition: ascon128-masked.c:57
int ascon128a_masked_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 masked ASCON-128a.
Definition: ascon128-masked.c:1057
int ascon80pq_masked_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 masked ASCON-80pq.
Definition: ascon128-masked.c:1156
aead_cipher_t const ascon80pq_masked_cipher
Meta-information block for the masked ASCON-80pq cipher.
Definition: ascon128-masked.c:71
int ascon128_masked_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 masked ASCON-128.
Definition: ascon128-masked.c:960
aead_cipher_t const ascon128_masked_cipher
Meta-information block for the masked ASCON-128 cipher.
Definition: ascon128-masked.c:43
int ascon128a_masked_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 masked ASCON-128a.
Definition: ascon128-masked.c:1010