KCAPI_HKDF(3) | Programming Interface | KCAPI_HKDF(3) |
kcapi_hkdf - Extract-and-Expand HKDF (RFC5869)
ssize_t kcapi_hkdf(const char * hashname, const uint8_t * ikm, size_t ikmlen, const uint8_t * salt, uint32_t saltlen, const uint8_t * info, size_t infolen, uint8_t * dst, size_t dlen);
hashname
ikm
ikmlen
salt
saltlen
info
infolen
dst
dlen
Perform the key-derivation function according to RFC5869. The input data is defined in sections 2.2 und 2.3 of RFC5869.
return 0 upon success; a negative errno-style error code if an error occurred
Stephan Mueller <smueller@chronox.de>
February 2022 | libkcapi Manual 1.4.0 |