
ngtcp2_conn_set_crypto_ctx
==========================

Synopsis
--------

*#include <ngtcp2/ngtcp2.h>*

.. function:: void ngtcp2_conn_set_crypto_ctx(ngtcp2_conn *conn, const ngtcp2_crypto_ctx *ctx)

    
    `ngtcp2_conn_set_crypto_ctx` sets *ctx* for Handshake/1-RTT packet
    encryption.  The passed data will be passed to
    :type:`ngtcp2_encrypt`, :type:`ngtcp2_decrypt` and
    :type:`ngtcp2_hp_mask` callbacks.
