Lines Matching refs:ctx
69 ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_initial(ngtcp2_crypto_ctx *ctx) {
70 ngtcp2_crypto_aead_init(&ctx->aead, (void *)EVP_aes_128_gcm());
71 ctx->md.native_handle = (void *)EVP_sha256();
72 ctx->hp.native_handle = (void *)EVP_aes_128_ctr();
73 ctx->max_encryption = 0;
74 ctx->max_decryption_failure = 0;
75 return ctx;
159 ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_tls(ngtcp2_crypto_ctx *ctx,
162 ngtcp2_crypto_aead_init(&ctx->aead, (void *)crypto_ssl_get_aead(ssl));
163 ctx->md.native_handle = (void *)crypto_ssl_get_md(ssl);
164 ctx->hp.native_handle = (void *)crypto_ssl_get_hp(ssl);
165 ctx->max_encryption = crypto_ssl_get_aead_max_encryption(ssl);
166 ctx->max_decryption_failure = crypto_ssl_get_aead_max_decryption_failure(ssl);
167 return ctx;
170 ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_tls_early(ngtcp2_crypto_ctx *ctx,
172 return ngtcp2_crypto_ctx_tls(ctx, tls_native_handle);