23 #ifndef LWCRYPTO_ASCON_HASH_H
24 #define LWCRYPTO_ASCON_HASH_H
33 #include "ascon-xof.h"
57 int ascon_hash(
unsigned char *out,
const unsigned char *in,
size_t inlen);
78 (ascon_hash_state_t *state,
const unsigned char *in,
size_t inlen);
103 int ascon_hasha(
unsigned char *out,
const unsigned char *in,
size_t inlen);
124 (ascon_hash_state_t *state,
const unsigned char *in,
size_t inlen);
void ascon_hash_update(ascon_hash_state_t *state, const unsigned char *in, size_t inlen)
Updates an ASCON-HASH state with more input data.
Definition: ascon-hash.c:51
int ascon_hasha(unsigned char *out, const unsigned char *in, size_t inlen)
Hashes a block of input data with ASCON-HASHA.
Definition: ascon-hash.c:61
void ascon_hash_finalize(ascon_hash_state_t *state, unsigned char *out)
Returns the final hash value from an ASCON-HASH hashing operation.
Definition: ascon-hash.c:56
State information for ASCON-XOF and ASCON-XOFA incremental modes.
Definition: ascon-xof.h:54
void ascon_hasha_finalize(ascon_hash_state_t *state, unsigned char *out)
Returns the final hash value from an ASCON-HASHA hashing operation.
Definition: ascon-hash.c:91
void ascon_hasha_update(ascon_hash_state_t *state, const unsigned char *in, size_t inlen)
Updates an ASCON-HASHA state with more input data.
Definition: ascon-hash.c:86
ascon_xof_state_t ascon_hash_state_t
State information for ASCON-HASH and ASCON-HASHA incremental modes.
Definition: ascon-hash.h:42
void ascon_hasha_init(ascon_hash_state_t *state)
Initializes the state for an ASCON-HASHA hashing operation.
Definition: ascon-hash.c:70
int ascon_hash(unsigned char *out, const unsigned char *in, size_t inlen)
Hashes a block of input data with ASCON-HASH.
Definition: ascon-hash.c:26
void ascon_hash_init(ascon_hash_state_t *state)
Initializes the state for an ASCON-HASH hashing operation.
Definition: ascon-hash.c:35