ngtcp2_crypto_hkdf_expand

Synopsis

#include <ngtcp2/ngtcp2_crypto.h>

int ngtcp2_crypto_hkdf_expand(uint8_t *dest, size_t destlen, const ngtcp2_crypto_md *md, const uint8_t *secret, size_t secretlen, const uint8_t *info, size_t infolen)

ngtcp2_crypto_hkdf_expand() performs HKDF expand operation. The result is destlen bytes long, and is stored in the buffer pointed by dest.

This function returns 0 if it succeeds, or -1.