Lines Matching refs:ctx
55 ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_initial(ngtcp2_crypto_ctx *ctx) {
56 ngtcp2_crypto_aead_init(&ctx->aead, (void *)wolfSSL_EVP_aes_128_gcm());
57 ctx->md.native_handle = (void *)wolfSSL_EVP_sha256();
58 ctx->hp.native_handle = (void *)wolfSSL_EVP_aes_128_ctr();
59 ctx->max_encryption = 0;
60 ctx->max_decryption_failure = 0;
61 return ctx;
106 ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_tls(ngtcp2_crypto_ctx *ctx,
110 ngtcp2_crypto_aead_init(&ctx->aead, (void *)wolfSSL_quic_get_aead(ssl));
111 ctx->md.native_handle = (void *)wolfSSL_quic_get_md(ssl);
112 ctx->hp.native_handle = (void *)wolfSSL_quic_get_hp(ssl);
113 ctx->max_encryption = crypto_wolfssl_get_aead_max_encryption(ssl);
114 ctx->max_decryption_failure =
116 return ctx;
119 ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_tls_early(ngtcp2_crypto_ctx *ctx,
121 return ngtcp2_crypto_ctx_tls(ctx, tls_native_handle);