23 #ifndef LWCRYPTO_FORKAE_H
24 #define LWCRYPTO_FORKAE_H
76 #define FORKAE_PAEF_64_192_KEY_SIZE 16
81 #define FORKAE_PAEF_64_192_TAG_SIZE 8
86 #define FORKAE_PAEF_64_192_NONCE_SIZE 6
91 #define FORKAE_PAEF_128_192_KEY_SIZE 16
96 #define FORKAE_PAEF_128_192_TAG_SIZE 16
101 #define FORKAE_PAEF_128_192_NONCE_SIZE 6
106 #define FORKAE_PAEF_128_256_KEY_SIZE 16
111 #define FORKAE_PAEF_128_256_TAG_SIZE 16
116 #define FORKAE_PAEF_128_256_NONCE_SIZE 14
121 #define FORKAE_PAEF_128_288_KEY_SIZE 16
126 #define FORKAE_PAEF_128_288_TAG_SIZE 16
131 #define FORKAE_PAEF_128_288_NONCE_SIZE 13
136 #define FORKAE_SAEF_128_192_KEY_SIZE 16
141 #define FORKAE_SAEF_128_192_TAG_SIZE 16
146 #define FORKAE_SAEF_128_192_NONCE_SIZE 7
151 #define FORKAE_SAEF_128_256_KEY_SIZE 16
156 #define FORKAE_SAEF_128_256_TAG_SIZE 16
161 #define FORKAE_SAEF_128_256_NONCE_SIZE 15
215 (
unsigned char *c,
unsigned long long *clen,
216 const unsigned char *m,
unsigned long long mlen,
217 const unsigned char *ad,
unsigned long long adlen,
218 const unsigned char *nsec,
219 const unsigned char *npub,
220 const unsigned char *k);
245 (
unsigned char *m,
unsigned long long *mlen,
247 const unsigned char *c,
unsigned long long clen,
248 const unsigned char *ad,
unsigned long long adlen,
249 const unsigned char *npub,
250 const unsigned char *k);
274 (
unsigned char *c,
unsigned long long *clen,
275 const unsigned char *m,
unsigned long long mlen,
276 const unsigned char *ad,
unsigned long long adlen,
277 const unsigned char *nsec,
278 const unsigned char *npub,
279 const unsigned char *k);
304 (
unsigned char *m,
unsigned long long *mlen,
306 const unsigned char *c,
unsigned long long clen,
307 const unsigned char *ad,
unsigned long long adlen,
308 const unsigned char *npub,
309 const unsigned char *k);
333 (
unsigned char *c,
unsigned long long *clen,
334 const unsigned char *m,
unsigned long long mlen,
335 const unsigned char *ad,
unsigned long long adlen,
336 const unsigned char *nsec,
337 const unsigned char *npub,
338 const unsigned char *k);
363 (
unsigned char *m,
unsigned long long *mlen,
365 const unsigned char *c,
unsigned long long clen,
366 const unsigned char *ad,
unsigned long long adlen,
367 const unsigned char *npub,
368 const unsigned char *k);
392 (
unsigned char *c,
unsigned long long *clen,
393 const unsigned char *m,
unsigned long long mlen,
394 const unsigned char *ad,
unsigned long long adlen,
395 const unsigned char *nsec,
396 const unsigned char *npub,
397 const unsigned char *k);
422 (
unsigned char *m,
unsigned long long *mlen,
424 const unsigned char *c,
unsigned long long clen,
425 const unsigned char *ad,
unsigned long long adlen,
426 const unsigned char *npub,
427 const unsigned char *k);
451 (
unsigned char *c,
unsigned long long *clen,
452 const unsigned char *m,
unsigned long long mlen,
453 const unsigned char *ad,
unsigned long long adlen,
454 const unsigned char *nsec,
455 const unsigned char *npub,
456 const unsigned char *k);
481 (
unsigned char *m,
unsigned long long *mlen,
483 const unsigned char *c,
unsigned long long clen,
484 const unsigned char *ad,
unsigned long long adlen,
485 const unsigned char *npub,
486 const unsigned char *k);
510 (
unsigned char *c,
unsigned long long *clen,
511 const unsigned char *m,
unsigned long long mlen,
512 const unsigned char *ad,
unsigned long long adlen,
513 const unsigned char *nsec,
514 const unsigned char *npub,
515 const unsigned char *k);
540 (
unsigned char *m,
unsigned long long *mlen,
542 const unsigned char *c,
unsigned long long clen,
543 const unsigned char *ad,
unsigned long long adlen,
544 const unsigned char *npub,
545 const unsigned char *k);
Meta-information about an AEAD cipher.
Definition: aead-common.h:185
Definitions that are common across AEAD schemes.
int forkae_paef_128_192_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 PAEF-ForkSkinny-128-192.
int forkae_saef_128_192_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 SAEF-ForkSkinny-128-192.
aead_cipher_t const forkae_paef_128_256_cipher
Meta-information block for the PAEF-ForkSkinny-128-256 cipher.
Definition: forkae.c:47
aead_cipher_t const forkae_saef_128_256_cipher
Meta-information block for the SAEF-ForkSkinny-128-256 cipher.
Definition: forkae.c:77
aead_cipher_t const forkae_paef_128_192_cipher
Meta-information block for the PAEF-ForkSkinny-128-192 cipher.
Definition: forkae.c:37
int forkae_saef_128_256_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 SAEF-ForkSkinny-128-256.
int forkae_paef_128_256_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 PAEF-ForkSkinny-128-256.
int forkae_saef_128_192_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 SAEF-ForkSkinny-128-192.
int forkae_paef_128_288_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 PAEF-ForkSkinny-128-288.
int forkae_paef_64_192_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 PAEF-ForkSkinny-64-192.
int forkae_paef_128_288_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 PAEF-ForkSkinny-128-288.
int forkae_saef_128_256_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 SAEF-ForkSkinny-128-256.
aead_cipher_t const forkae_saef_128_192_cipher
Meta-information block for the SAEF-ForkSkinny-128-192 cipher.
Definition: forkae.c:67
aead_cipher_t const forkae_paef_128_288_cipher
Meta-information block for the PAEF-ForkSkinny-128-288 cipher.
Definition: forkae.c:57
aead_cipher_t const forkae_paef_64_192_cipher
Meta-information block for the PAEF-ForkSkinny-64-192 cipher.
Definition: forkae.c:27
int forkae_paef_64_192_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 PAEF-ForkSkinny-64-192.
int forkae_paef_128_256_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 PAEF-ForkSkinny-128-256.
int forkae_paef_128_192_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 PAEF-ForkSkinny-128-192.