23 #ifndef LWCRYPTO_ASCON_AEAD_MASKED_H
24 #define LWCRYPTO_ASCON_AEAD_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
100 (
unsigned char *c,
size_t *clen,
101 const unsigned char *m,
size_t mlen,
102 const unsigned char *ad,
size_t adlen,
103 const unsigned char *npub,
104 const unsigned char *k);
128 (
unsigned char *m,
size_t *mlen,
129 const unsigned char *c,
size_t clen,
130 const unsigned char *ad,
size_t adlen,
131 const unsigned char *npub,
132 const unsigned char *k);
155 (
unsigned char *c,
size_t *clen,
156 const unsigned char *m,
size_t mlen,
157 const unsigned char *ad,
size_t adlen,
158 const unsigned char *npub,
159 const unsigned char *k);
183 (
unsigned char *m,
size_t *mlen,
184 const unsigned char *c,
size_t clen,
185 const unsigned char *ad,
size_t adlen,
186 const unsigned char *npub,
187 const unsigned char *k);
210 (
unsigned char *c,
size_t *clen,
211 const unsigned char *m,
size_t mlen,
212 const unsigned char *ad,
size_t adlen,
213 const unsigned char *npub,
214 const unsigned char *k);
238 (
unsigned char *m,
size_t *mlen,
239 const unsigned char *c,
size_t clen,
240 const unsigned char *ad,
size_t adlen,
241 const unsigned char *npub,
242 const unsigned char *k);
int ascon128_masked_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 masked ASCON-128.
Definition: ascon-aead-masked.c:63
int ascon128a_masked_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 masked ASCON-128a.
Definition: ascon-aead-masked.c:100
int ascon80pq_masked_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 masked ASCON-80pq.
Definition: ascon-aead-masked.c:205
int ascon80pq_masked_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 masked ASCON-80pq.
Definition: ascon-aead-masked.c:171
int ascon128_masked_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 masked ASCON-128.
Definition: ascon-aead-masked.c:29
int ascon128a_masked_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 masked ASCON-128a.
Definition: ascon-aead-masked.c:134