23 #ifndef ASCON_AEAD_COMMON_H
24 #define ASCON_AEAD_COMMON_H
48 (
unsigned char *plaintext,
size_t plaintext_len,
49 const unsigned char *tag1,
const unsigned char *tag2,
size_t size);
63 size_t len, uint8_t first_round,
int last_permute);
77 size_t len, uint8_t first_round,
int last_permute);
94 const unsigned char *src,
size_t len, uint8_t first_round,
95 unsigned char partial);
112 const unsigned char *src,
size_t len, uint8_t first_round,
113 unsigned char partial);
130 const unsigned char *src,
size_t len, uint8_t first_round,
131 unsigned char partial);
148 const unsigned char *src,
size_t len, uint8_t first_round,
149 unsigned char partial);
ASCON-128 encryption algorithm and related family members.
void ascon_aead_absorb_16(ascon_state_t *state, const unsigned char *data, size_t len, uint8_t first_round, int last_permute)
Absorbs data into an ASCON state with a 16-byte rate.
unsigned char ascon_aead_encrypt_16(ascon_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, unsigned char partial)
Encrypts a block of data with an ASCON state and a 16-byte rate.
unsigned char ascon_aead_encrypt_8(ascon_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, unsigned char partial)
Encrypts a block of data with an ASCON state and an 8-byte rate.
int ascon_aead_check_tag(unsigned char *plaintext, size_t plaintext_len, const unsigned char *tag1, const unsigned char *tag2, size_t size)
Check an authentication tag in constant time.
unsigned char ascon_aead_decrypt_8(ascon_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, unsigned char partial)
Decrypts a block of data with an ASCON state and an 8-byte rate.
void ascon_aead_absorb_8(ascon_state_t *state, const unsigned char *data, size_t len, uint8_t first_round, int last_permute)
Absorbs data into an ASCON state with an 8-byte rate.
unsigned char ascon_aead_decrypt_16(ascon_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, unsigned char partial)
Decrypts a block of data with an ASCON state and a 16-byte rate.
Direct access to the ASCON permutation primitive.
ascon_state_t state
[snippet_key]
unsigned char data[8]
[snippet_key]
Structure of the internal state of the ASCON permutation.
System utilities of use to applications that use ASCON.