23 #ifndef LWCRYPTO_SPARKLE_AEAD_H
24 #define LWCRYPTO_SPARKLE_AEAD_H
53 #define SCHWAEMM_256_128_KEY_SIZE 16
58 #define SCHWAEMM_256_128_TAG_SIZE 16
63 #define SCHWAEMM_256_128_NONCE_SIZE 32
68 #define SCHWAEMM_192_192_KEY_SIZE 24
73 #define SCHWAEMM_192_192_TAG_SIZE 24
78 #define SCHWAEMM_192_192_NONCE_SIZE 24
83 #define SCHWAEMM_128_128_KEY_SIZE 16
88 #define SCHWAEMM_128_128_TAG_SIZE 16
93 #define SCHWAEMM_128_128_NONCE_SIZE 16
98 #define SCHWAEMM_256_256_KEY_SIZE 32
103 #define SCHWAEMM_256_256_TAG_SIZE 32
108 #define SCHWAEMM_256_256_NONCE_SIZE 32
131 (
unsigned char *c,
size_t *clen,
132 const unsigned char *m,
size_t mlen,
133 const unsigned char *ad,
size_t adlen,
134 const unsigned char *npub,
135 const unsigned char *k);
159 (
unsigned char *m,
size_t *mlen,
160 const unsigned char *c,
size_t clen,
161 const unsigned char *ad,
size_t adlen,
162 const unsigned char *npub,
163 const unsigned char *k);
186 (
unsigned char *c,
size_t *clen,
187 const unsigned char *m,
size_t mlen,
188 const unsigned char *ad,
size_t adlen,
189 const unsigned char *npub,
190 const unsigned char *k);
214 (
unsigned char *m,
size_t *mlen,
215 const unsigned char *c,
size_t clen,
216 const unsigned char *ad,
size_t adlen,
217 const unsigned char *npub,
218 const unsigned char *k);
241 (
unsigned char *c,
size_t *clen,
242 const unsigned char *m,
size_t mlen,
243 const unsigned char *ad,
size_t adlen,
244 const unsigned char *npub,
245 const unsigned char *k);
269 (
unsigned char *m,
size_t *mlen,
270 const unsigned char *c,
size_t clen,
271 const unsigned char *ad,
size_t adlen,
272 const unsigned char *npub,
273 const unsigned char *k);
296 (
unsigned char *c,
size_t *clen,
297 const unsigned char *m,
size_t mlen,
298 const unsigned char *ad,
size_t adlen,
299 const unsigned char *npub,
300 const unsigned char *k);
324 (
unsigned char *m,
size_t *mlen,
325 const unsigned char *c,
size_t clen,
326 const unsigned char *ad,
size_t adlen,
327 const unsigned char *npub,
328 const unsigned char *k);
int schwaemm_256_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 Schwaemm256-128.
Definition: sparkle-aead.c:171
int schwaemm_128_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 Schwaemm128-128.
Definition: sparkle-aead.c:483
int schwaemm_192_192_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 Schwaemm192-192.
Definition: sparkle-aead.c:298
int schwaemm_128_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 Schwaemm128-128.
Definition: sparkle-aead.c:544
int schwaemm_192_192_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 Schwaemm192-192.
Definition: sparkle-aead.c:359
int schwaemm_256_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 Schwaemm256-128.
Definition: sparkle-aead.c:110
int schwaemm_256_256_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 Schwaemm256-256.
Definition: sparkle-aead.c:735
int schwaemm_256_256_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 Schwaemm256-256.
Definition: sparkle-aead.c:674