Embedded SDK
Embedded SDK
cx_hkdf.h
Go to the documentation of this file.
1 #ifndef CX_HKDF_H
2 #define CX_HKDF_H
3 
4 #include "lcx_hash.h"
5 
6 void cx_hkdf_extract(const cx_md_t hash_id,
7  const unsigned char *ikm,
8  unsigned int ikm_len,
9  unsigned char *salt,
10  unsigned int salt_len,
11  unsigned char *prk);
12 void cx_hkdf_expand(const cx_md_t hash_id,
13  const unsigned char *prk,
14  unsigned int prk_len,
15  unsigned char *info,
16  unsigned int info_len,
17  unsigned char *okm,
18  unsigned int okm_len);
19 
20 #endif // CX_HKDF_H
void cx_hkdf_extract(const cx_md_t hash_id, const unsigned char *ikm, unsigned int ikm_len, unsigned char *salt, unsigned int salt_len, unsigned char *prk)
void cx_hkdf_expand(const cx_md_t hash_id, const unsigned char *prk, unsigned int prk_len, unsigned char *info, unsigned int info_len, unsigned char *okm, unsigned int okm_len)
Hash functions.