53 #define ASCON_HMAC_SIZE ASCON_HASH_SIZE
58 #define ASCON_HMACA_SIZE ASCON_HASHA_SIZE
90 const unsigned char *key,
size_t keylen,
91 const unsigned char *in,
size_t inlen);
172 const unsigned char *key,
size_t keylen,
173 const unsigned char *in,
size_t inlen);
ASCON-HASH and ASCON-HASHA hash algorithms.
void ascon_hmac_update(ascon_hmac_state_t *state, const unsigned char *in, size_t inlen)
Updates an incremental ASCON-HMAC state with more input data.
void ascon_hmaca_finalize(ascon_hmaca_state_t *state, const unsigned char *key, size_t keylen, unsigned char *out)
Finalizes an incremental ASCON-HMACA state.
void ascon_hmaca_reinit(ascon_hmaca_state_t *state, const unsigned char *key, size_t keylen)
Re-initializes an incremental HMAC state using ASCON-HASHA.
void ascon_hmaca_update(ascon_hmaca_state_t *state, const unsigned char *in, size_t inlen)
Updates an incremental ASCON-HMACA state with more input data.
void ascon_hmac_reinit(ascon_hmac_state_t *state, const unsigned char *key, size_t keylen)
Re-initializes an incremental HMAC state using ASCON-HASH.
void ascon_hmaca_init(ascon_hmaca_state_t *state, const unsigned char *key, size_t keylen)
Initializes an incremental HMAC state using ASCON-HASHA.
void ascon_hmac_init(ascon_hmac_state_t *state, const unsigned char *key, size_t keylen)
Initializes an incremental HMAC state using ASCON-HASH.
void ascon_hmac_finalize(ascon_hmac_state_t *state, const unsigned char *key, size_t keylen, unsigned char *out)
Finalizes an incremental ASCON-HMAC state.
void ascon_hmaca_free(ascon_hmaca_state_t *state)
Frees the ASCON-HMACA state and destroys any sensitive material.
void ascon_hmac(unsigned char *out, const unsigned char *key, size_t keylen, const unsigned char *in, size_t inlen)
Computes a HMAC value using ASCON-HASH.
void ascon_hmaca(unsigned char *out, const unsigned char *key, size_t keylen, const unsigned char *in, size_t inlen)
Computes a HMAC value using ASCON-HASHA.
void ascon_hmac_free(ascon_hmac_state_t *state)
Frees the ASCON-HMAC state and destroys any sensitive material.
ascon_state_t state
[snippet_key]
State information for the ASCON-HASH incremental mode.
State information for the ASCON-HASHA incremental mode.
State information for the ASCON-HMAC incremental mode.
State information for the ASCON-HMACA incremental mode.