23 #ifndef LWCRYPTO_PHOTON_BEETLE_HKDF_H
24 #define LWCRYPTO_PHOTON_BEETLE_HKDF_H
43 #define PHOTON_BEETLE_HKDF_OUTPUT_SIZE 32
83 (
unsigned char *out,
size_t outlen,
84 const unsigned char *key,
size_t keylen,
85 const unsigned char *salt,
size_t saltlen,
86 const unsigned char *info,
size_t infolen);
101 const unsigned char *key,
size_t keylen,
102 const unsigned char *salt,
size_t saltlen);
118 const unsigned char *info,
size_t infolen,
119 unsigned char *out,
size_t outlen);
#define PHOTON_BEETLE_HKDF_OUTPUT_SIZE
Default output block size for PHOTON-Beetle-HKDF. Key material is generated in blocks of this size...
Definition: photon-beetle-hkdf.h:43
void photon_beetle_hkdf_free(photon_beetle_hkdf_state_t *state)
Frees all sensitive material in a PHOTON-Beetle-HKDF state.
int photon_beetle_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 PHOTON-Beetle-HKDF.
void photon_beetle_hkdf_extract(photon_beetle_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 PHOTON-Beetle-HKDF.
unsigned char counter
Definition: photon-beetle-hkdf.h:58
int photon_beetle_hkdf_expand(photon_beetle_hkdf_state_t *state, const unsigned char *info, size_t infolen, unsigned char *out, size_t outlen)
Expands key material using a PHOTON-Beetle-HKDF state.
State for incremental generation of key material from PHOTON-Beetle-HKDF.
Definition: photon-beetle-hkdf.h:49
unsigned char posn
Definition: photon-beetle-hkdf.h:61