53 #define ASCON_KMAC_SIZE ASCON_HASH_SIZE
58 #define ASCON_KMACA_SIZE ASCON_HASHA_SIZE
94 (
const unsigned char *key,
size_t keylen,
95 const unsigned char *in,
size_t inlen,
96 const unsigned char *custom,
size_t customlen,
97 unsigned char *out,
size_t outlen);
113 const unsigned char *custom,
size_t customlen,
size_t outlen);
132 const unsigned char *custom,
size_t customlen,
size_t outlen);
181 (
const unsigned char *key,
size_t keylen,
182 const unsigned char *in,
size_t inlen,
183 const unsigned char *custom,
size_t customlen,
184 unsigned char *out,
size_t outlen);
200 const unsigned char *custom,
size_t customlen,
size_t outlen);
219 const unsigned char *custom,
size_t customlen,
size_t outlen);
void ascon_kmaca_absorb(ascon_kmaca_state_t *state, const unsigned char *in, size_t inlen)
Absorbs more input data into an incremental ASCON-KMACA state.
void ascon_kmaca_init(ascon_kmaca_state_t *state, const unsigned char *key, size_t keylen, const unsigned char *custom, size_t customlen, size_t outlen)
Initializes an incremental KMAC state using ASCON-XOFA.
void ascon_kmac_reinit(ascon_kmac_state_t *state, const unsigned char *key, size_t keylen, const unsigned char *custom, size_t customlen, size_t outlen)
Re-initializes an incremental KMAC state using ASCON-XOF.
void ascon_kmac_absorb(ascon_kmac_state_t *state, const unsigned char *in, size_t inlen)
Absorbs more input data into an incremental ASCON-KMAC state.
void ascon_kmac_free(ascon_kmac_state_t *state)
Frees the ASCON-KMAC state and destroys any sensitive material.
void ascon_kmac_squeeze(ascon_kmac_state_t *state, unsigned char *out, size_t outlen)
Squeezes output data from an incremental ASCON-KMAC state.
void ascon_kmac_init(ascon_kmac_state_t *state, const unsigned char *key, size_t keylen, const unsigned char *custom, size_t customlen, size_t outlen)
Initializes an incremental KMAC state using ASCON-XOF.
void ascon_kmaca(const unsigned char *key, size_t keylen, const unsigned char *in, size_t inlen, const unsigned char *custom, size_t customlen, unsigned char *out, size_t outlen)
Computes a KMAC value using ASCON-XOFA.
void ascon_kmaca_free(ascon_kmaca_state_t *state)
Frees the ASCON-KMACA state and destroys any sensitive material.
void ascon_kmaca_squeeze(ascon_kmaca_state_t *state, unsigned char *out, size_t outlen)
Squeezes output data from an incremental ASCON-KMACA state.
void ascon_kmaca_reinit(ascon_kmaca_state_t *state, const unsigned char *key, size_t keylen, const unsigned char *custom, size_t customlen, size_t outlen)
Re-initializes an incremental KMAC state using ASCON-XOFA.
void ascon_kmac(const unsigned char *key, size_t keylen, const unsigned char *in, size_t inlen, const unsigned char *custom, size_t customlen, unsigned char *out, size_t outlen)
Computes a KMAC value using ASCON-XOF.
ascon_state_t state
[snippet_key]
State information for the ASCON-KMAC incremental mode.
State information for the ASCON-KMACA incremental mode.
State information for ASCON-XOF incremental mode.
State information for ASCON-XOFA incremental mode.
ASCON-XOF and ASCON-XOFA extensible output functions (XOF's).