23 #ifndef LWCRYPTO_GIFT_COFB_AEAD_H
24 #define LWCRYPTO_GIFT_COFB_AEAD_H
47 #define GIFT_COFB_KEY_SIZE 16
52 #define GIFT_COFB_TAG_SIZE 16
57 #define GIFT_COFB_NONCE_SIZE 16
80 (
unsigned char *c,
size_t *clen,
81 const unsigned char *m,
size_t mlen,
82 const unsigned char *ad,
size_t adlen,
83 const unsigned char *npub,
84 const unsigned char *k);
108 (
unsigned char *m,
size_t *mlen,
109 const unsigned char *c,
size_t clen,
110 const unsigned char *ad,
size_t adlen,
111 const unsigned char *npub,
112 const unsigned char *k);
int gift_cofb_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 GIFT-COFB-0.
Definition: gift-cofb-aead.c:290
int gift_cofb_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 GIFT-COFB.
Definition: gift-cofb-aead.c:182