23 #ifndef LWCRYPTO_XOODYAK_HKDF_H
24 #define LWCRYPTO_XOODYAK_HKDF_H
43 #define XOODYAK_HKDF_OUTPUT_SIZE 32
82 (
unsigned char *out,
size_t outlen,
83 const unsigned char *key,
size_t keylen,
84 const unsigned char *salt,
size_t saltlen,
85 const unsigned char *info,
size_t infolen);
100 const unsigned char *key,
size_t keylen,
101 const unsigned char *salt,
size_t saltlen);
117 const unsigned char *info,
size_t infolen,
118 unsigned char *out,
size_t outlen);
#define XOODYAK_HKDF_OUTPUT_SIZE
Default output block size for Xoodyak-HKDF. Key material is generated in blocks of this size...
Definition: xoodyak-hkdf.h:43
int xoodyak_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 Xoodyak-HKDF.
void xoodyak_hkdf_extract(xoodyak_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 Xoodyak-HKDF.
int xoodyak_hkdf_expand(xoodyak_hkdf_state_t *state, const unsigned char *info, size_t infolen, unsigned char *out, size_t outlen)
Expands key material using a Xoodyak-HKDF state.
void xoodyak_hkdf_free(xoodyak_hkdf_state_t *state)
Frees all sensitive material in a Xoodyak-HKDF state.
unsigned char counter
Definition: xoodyak-hkdf.h:57
State for incremental generation of key material from Xoodyak-HKDF.
Definition: xoodyak-hkdf.h:48
unsigned char posn
Definition: xoodyak-hkdf.h:60