23 #ifndef LWCRYPTO_ASCON_HMAC_H
24 #define LWCRYPTO_ASCON_HMAC_H
53 #define ASCON_HMAC_SIZE ASCON_HASH_SIZE
73 const unsigned char *key,
size_t keylen,
74 const unsigned char *in,
size_t inlen);
89 (ascon_hmac_state_t *state,
const unsigned char *key,
size_t keylen);
101 (ascon_hmac_state_t *state,
const unsigned char *in,
size_t inlen);
115 (ascon_hmac_state_t *state,
const unsigned char *key,
size_t keylen,
130 const unsigned char *key,
size_t keylen,
131 const unsigned char *in,
size_t inlen);
146 (ascon_hmac_state_t *state,
const unsigned char *key,
size_t keylen);
158 (ascon_hmac_state_t *state,
const unsigned char *in,
size_t inlen);
172 (ascon_hmac_state_t *state,
const unsigned char *key,
size_t keylen,
void ascon_hmaca_finalize(ascon_hmac_state_t *state, const unsigned char *key, size_t keylen, unsigned char *out)
Finalizes an incremental ASCON-HMACA state.
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_init(ascon_hmac_state_t *state, const unsigned char *key, size_t keylen)
Initializes an incremental HMAC state using ASCON-HASHA.
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.
State information for ASCON-XOF and ASCON-XOFA incremental modes.
Definition: ascon-xof.h:54
void ascon_hmaca_update(ascon_hmac_state_t *state, const unsigned char *in, size_t inlen)
Updates an incremental ASCON-HMACA state with more input data.
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_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.
ASCON-HASH and ASCON-HASHA hash algorithms.
ascon_xof_state_t ascon_hmac_state_t
State information for the ASCON-HMAC and ASCON-HMACA incremental modes.
Definition: ascon-hmac.h:59
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.