23 #ifndef LWCRYPTO_SPARKLE_HMAC_H
24 #define LWCRYPTO_SPARKLE_HMAC_H
55 #define ESCH_256_HMAC_SIZE ESCH_256_HASH_SIZE
60 #define ESCH_384_HMAC_SIZE ESCH_384_HASH_SIZE
84 const unsigned char *key,
size_t keylen,
85 const unsigned char *in,
size_t inlen);
100 (esch_256_hmac_state_t *state,
const unsigned char *key,
size_t keylen);
112 (esch_256_hmac_state_t *state,
const unsigned char *in,
size_t inlen);
126 (esch_256_hmac_state_t *state,
const unsigned char *key,
size_t keylen,
141 const unsigned char *key,
size_t keylen,
142 const unsigned char *in,
size_t inlen);
157 (esch_384_hmac_state_t *state,
const unsigned char *key,
size_t keylen);
169 (esch_384_hmac_state_t *state,
const unsigned char *in,
size_t inlen);
183 (esch_384_hmac_state_t *state,
const unsigned char *key,
size_t keylen,
void esch_384_hmac_init(esch_384_hmac_state_t *state, const unsigned char *key, size_t keylen)
Initializes an incremental HMAC state using Esch384.
void esch_256_hmac_update(esch_256_hmac_state_t *state, const unsigned char *in, size_t inlen)
Updates an incremental Esch256-HMAC state with more input data.
Hash algorithms based on the SPARKLE permutation.
void esch_384_hmac(unsigned char *out, const unsigned char *key, size_t keylen, const unsigned char *in, size_t inlen)
Computes a HMAC value using Esch384.
State information for the Esch384 incremental hash mod ande the XOEsch384 increment XOF mode...
Definition: sparkle-hash.h:90
esch_384_hash_state_t esch_384_hmac_state_t
State information for the Esch384-HMAC incremental mode.
Definition: sparkle-hmac.h:70
void esch_384_hmac_finalize(esch_384_hmac_state_t *state, const unsigned char *key, size_t keylen, unsigned char *out)
Finalizes an incremental Esch384-HMAC state.
void esch_256_hmac_init(esch_256_hmac_state_t *state, const unsigned char *key, size_t keylen)
Initializes an incremental HMAC state using Esch256.
void esch_384_hmac_update(esch_384_hmac_state_t *state, const unsigned char *in, size_t inlen)
Updates an incremental Esch384-HMAC state with more input data.
State information for the Esch256 incremental hash mode and the XOEsch256 increment XOF mode...
Definition: sparkle-hash.h:74
void esch_256_hmac_finalize(esch_256_hmac_state_t *state, const unsigned char *key, size_t keylen, unsigned char *out)
Finalizes an incremental Esch256-HMAC state.
esch_256_hash_state_t esch_256_hmac_state_t
State information for the Esch256-HMAC incremental mode.
Definition: sparkle-hmac.h:65
void esch_256_hmac(unsigned char *out, const unsigned char *key, size_t keylen, const unsigned char *in, size_t inlen)
Computes a HMAC value using Esch256.