43 #define ASCON_HKDF_OUTPUT_SIZE 32
101 (
unsigned char *out,
size_t outlen,
102 const unsigned char *key,
size_t keylen,
103 const unsigned char *salt,
size_t saltlen,
104 const unsigned char *info,
size_t infolen);
119 const unsigned char *key,
size_t keylen,
120 const unsigned char *salt,
size_t saltlen);
136 const unsigned char *info,
size_t infolen,
137 unsigned char *out,
size_t outlen);
164 (
unsigned char *out,
size_t outlen,
165 const unsigned char *key,
size_t keylen,
166 const unsigned char *salt,
size_t saltlen,
167 const unsigned char *info,
size_t infolen);
182 const unsigned char *key,
size_t keylen,
183 const unsigned char *salt,
size_t saltlen);
199 const unsigned char *info,
size_t infolen,
200 unsigned char *out,
size_t outlen);
void ascon_hkdfa_extract(ascon_hkdfa_state_t *state, const unsigned char *key, size_t keylen, const unsigned char *salt, size_t saltlen)
Extracts entropy from a key and salt for ASCON-HKDFA.
int ascon_hkdf(unsigned char *out, size_t outlen, const unsigned char *key, size_t keylen, const unsigned char *salt, size_t saltlen, const unsigned char *info, size_t infolen)
Derives key material using ASCON-HKDF.
void ascon_hkdf_extract(ascon_hkdf_state_t *state, const unsigned char *key, size_t keylen, const unsigned char *salt, size_t saltlen)
Extracts entropy from a key and salt for ASCON-HKDF.
int ascon_hkdfa_expand(ascon_hkdfa_state_t *state, const unsigned char *info, size_t infolen, unsigned char *out, size_t outlen)
Expands key material using a ASCON-HKDFA state.
int ascon_hkdf_expand(ascon_hkdf_state_t *state, const unsigned char *info, size_t infolen, unsigned char *out, size_t outlen)
Expands key material using a ASCON-HKDF state.
void ascon_hkdfa_free(ascon_hkdfa_state_t *state)
Frees all sensitive material in a ASCON-HKDFA state.
void ascon_hkdf_free(ascon_hkdf_state_t *state)
Frees all sensitive material in a ASCON-HKDF state.
#define ASCON_HKDF_OUTPUT_SIZE
Default output block size for ASCON-HKDF and ASCON-HKDFA. Key material is generated in blocks of this...
int ascon_hkdfa(unsigned char *out, size_t outlen, const unsigned char *key, size_t keylen, const unsigned char *salt, size_t saltlen, const unsigned char *info, size_t infolen)
Derives key material using ASCON-HKDFA.
ascon_state_t state
[snippet_key]
State for incremental generation of key material from ASCON-HKDF.
State for incremental generation of key material from ASCON-HKDFA.