23 #ifndef LWCRYPTO_GIFT_COFB_AEAD_MASKED_H
24 #define LWCRYPTO_GIFT_COFB_AEAD_MASKED_H
42 #define GIFT_COFB_MASKED_KEY_SIZE 16
47 #define GIFT_COFB_MASKED_TAG_SIZE 16
52 #define GIFT_COFB_MASKED_NONCE_SIZE 16
75 (
unsigned char *c,
size_t *clen,
76 const unsigned char *m,
size_t mlen,
77 const unsigned char *ad,
size_t adlen,
78 const unsigned char *npub,
79 const unsigned char *k);
103 (
unsigned char *m,
size_t *mlen,
104 const unsigned char *c,
size_t clen,
105 const unsigned char *ad,
size_t adlen,
106 const unsigned char *npub,
107 const unsigned char *k);
int gift_cofb_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 GIFT-COFB.
Definition: gift-cofb-aead-masked.c:249
int gift_cofb_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 GIFT-COFB-0.
Definition: gift-cofb-aead-masked.c:361