
ngtcp2_crypto_update_key_cb
===========================

Synopsis
--------

*#include <ngtcp2/ngtcp2_crypto.h>*

.. function:: int ngtcp2_crypto_update_key_cb( ngtcp2_conn *conn, uint8_t *rx_secret, uint8_t *tx_secret, ngtcp2_crypto_aead_ctx *rx_aead_ctx, uint8_t *rx_iv, ngtcp2_crypto_aead_ctx *tx_aead_ctx, uint8_t *tx_iv, const uint8_t *current_rx_secret, const uint8_t *current_tx_secret, size_t secretlen, void *user_data)

    
    `ngtcp2_crypto_update_key_cb` is a wrapper function around
    `ngtcp2_crypto_update_key`.  It can be directly passed to
    :member:`ngtcp2_callbacks.update_key` field.
    
    This function returns 0 if it succeeds, or
    :macro:`NGTCP2_ERR_CALLBACK_FAILURE`.
