ngtcp2_crypto_hp_mask_cb

Synopsis

#include <ngtcp2/ngtcp2_crypto.h>

int ngtcp2_crypto_hp_mask_cb(uint8_t *dest, const ngtcp2_crypto_cipher *hp, const ngtcp2_crypto_cipher_ctx *hp_ctx, const uint8_t *sample)

ngtcp2_crypto_hp_mask_cb() is a wrapper function around ngtcp2_crypto_hp_mask(). It can be directly passed to ngtcp2_callbacks.hp_mask field.

This function returns 0 if it succeeds, or NGTCP2_ERR_CALLBACK_FAILURE.