/third_party/node/deps/ngtcp2/ngtcp2/crypto/ |
D | shared.c | 214 ngtcp2_crypto_aead_ctx aead_ctx = {0}; in ngtcp2_crypto_derive_and_install_rx_key() local 274 if (ngtcp2_crypto_aead_ctx_decrypt_init(&aead_ctx, aead, key, ivlen) != 0) { in ngtcp2_crypto_derive_and_install_rx_key() 284 rv = ngtcp2_conn_install_early_key(conn, &aead_ctx, iv, ivlen, &hp_ctx); in ngtcp2_crypto_derive_and_install_rx_key() 290 rv = ngtcp2_conn_install_rx_handshake_key(conn, &aead_ctx, iv, ivlen, in ngtcp2_crypto_derive_and_install_rx_key() 304 rv = ngtcp2_conn_install_rx_key(conn, secret, secretlen, &aead_ctx, iv, in ngtcp2_crypto_derive_and_install_rx_key() 319 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_derive_and_install_rx_key() 355 ngtcp2_crypto_aead_ctx aead_ctx = {0}; in ngtcp2_crypto_derive_and_install_tx_key() local 415 if (ngtcp2_crypto_aead_ctx_encrypt_init(&aead_ctx, aead, key, ivlen) != 0) { in ngtcp2_crypto_derive_and_install_tx_key() 425 rv = ngtcp2_conn_install_early_key(conn, &aead_ctx, iv, ivlen, &hp_ctx); in ngtcp2_crypto_derive_and_install_tx_key() 431 rv = ngtcp2_conn_install_tx_handshake_key(conn, &aead_ctx, iv, ivlen, in ngtcp2_crypto_derive_and_install_tx_key() [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/crypto/wolfssl/ |
D | wolfssl.c | 148 int ngtcp2_crypto_aead_ctx_encrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_encrypt_init() argument 161 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 165 int ngtcp2_crypto_aead_ctx_decrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_decrypt_init() argument 178 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_decrypt_init() 182 void ngtcp2_crypto_aead_ctx_free(ngtcp2_crypto_aead_ctx *aead_ctx) { in ngtcp2_crypto_aead_ctx_free() argument 183 if (aead_ctx->native_handle) { in ngtcp2_crypto_aead_ctx_free() 184 wolfSSL_EVP_CIPHER_CTX_free(aead_ctx->native_handle); in ngtcp2_crypto_aead_ctx_free() 242 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_encrypt() argument 248 if (wolfSSL_quic_aead_encrypt(dest, aead_ctx->native_handle, plaintext, in ngtcp2_crypto_encrypt() 258 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_decrypt() argument [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/crypto/includes/ngtcp2/ |
D | ngtcp2_crypto.h | 238 const ngtcp2_crypto_aead_ctx *aead_ctx, 256 const ngtcp2_crypto_aead_ctx *aead_ctx, 276 const ngtcp2_crypto_aead_ctx *aead_ctx, 294 const ngtcp2_crypto_aead_ctx *aead_ctx, 777 ngtcp2_crypto_aead_ctx_encrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, 792 ngtcp2_crypto_aead_ctx_decrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, 804 ngtcp2_crypto_aead_ctx_free(ngtcp2_crypto_aead_ctx *aead_ctx); 815 ngtcp2_conn *conn, ngtcp2_crypto_aead_ctx *aead_ctx, void *user_data);
|
/third_party/node/deps/ngtcp2/ngtcp2/crypto/boringssl/ |
D | boringssl.c | 197 int ngtcp2_crypto_aead_ctx_encrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_encrypt_init() argument 211 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 216 int ngtcp2_crypto_aead_ctx_decrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_decrypt_init() argument 219 return ngtcp2_crypto_aead_ctx_encrypt_init(aead_ctx, aead, key, noncelen); in ngtcp2_crypto_aead_ctx_decrypt_init() 222 void ngtcp2_crypto_aead_ctx_free(ngtcp2_crypto_aead_ctx *aead_ctx) { in ngtcp2_crypto_aead_ctx_free() argument 223 if (aead_ctx->native_handle) { in ngtcp2_crypto_aead_ctx_free() 224 EVP_AEAD_CTX_free(aead_ctx->native_handle); in ngtcp2_crypto_aead_ctx_free() 325 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_encrypt() argument 330 EVP_AEAD_CTX *actx = aead_ctx->native_handle; in ngtcp2_crypto_encrypt() 343 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_decrypt() argument [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/crypto/picotls/ |
D | picotls.c | 173 int ngtcp2_crypto_aead_ctx_encrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_encrypt_init() argument 189 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 194 int ngtcp2_crypto_aead_ctx_decrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_decrypt_init() argument 210 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_decrypt_init() 215 void ngtcp2_crypto_aead_ctx_free(ngtcp2_crypto_aead_ctx *aead_ctx) { in ngtcp2_crypto_aead_ctx_free() argument 216 if (aead_ctx->native_handle) { in ngtcp2_crypto_aead_ctx_free() 217 ptls_aead_free(aead_ctx->native_handle); in ngtcp2_crypto_aead_ctx_free() 299 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_encrypt() argument 303 ptls_aead_context_t *actx = aead_ctx->native_handle; in ngtcp2_crypto_encrypt() 318 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_decrypt() argument [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/crypto/openssl/ |
D | openssl.c | 199 int ngtcp2_crypto_aead_ctx_encrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_encrypt_init() argument 241 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 246 int ngtcp2_crypto_aead_ctx_decrypt_init(ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_aead_ctx_decrypt_init() argument 288 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_decrypt_init() 293 void ngtcp2_crypto_aead_ctx_free(ngtcp2_crypto_aead_ctx *aead_ctx) { in ngtcp2_crypto_aead_ctx_free() argument 294 if (aead_ctx->native_handle) { in ngtcp2_crypto_aead_ctx_free() 295 EVP_CIPHER_CTX_free(aead_ctx->native_handle); in ngtcp2_crypto_aead_ctx_free() 489 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_encrypt() argument 496 EVP_CIPHER_CTX *actx = aead_ctx->native_handle; in ngtcp2_crypto_encrypt() 528 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_decrypt() argument [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
D | ngtcp2_crypto.h | 79 ngtcp2_crypto_aead_ctx aead_ctx; member 104 const ngtcp2_crypto_aead_ctx *aead_ctx,
|
D | ngtcp2_crypto.c | 37 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_km_new() argument 48 if (aead_ctx) { in ngtcp2_crypto_km_new() 49 (*pckm)->aead_ctx = *aead_ctx; in ngtcp2_crypto_km_new() 74 (*pckm)->aead_ctx.native_handle = NULL; in ngtcp2_crypto_km_nocopy_new()
|
D | ngtcp2_conn.c | 412 ngtcp2_crypto_aead_ctx *aead_ctx) { in conn_call_delete_crypto_aead_ctx() argument 413 if (!aead_ctx->native_handle) { in conn_call_delete_crypto_aead_ctx() 419 conn->callbacks.delete_crypto_aead_ctx(conn, aead_ctx, conn->user_data); in conn_call_delete_crypto_aead_ctx() 1476 conn_call_delete_crypto_aead_ctx(conn, &conn->vneg.rx.ckm->aead_ctx); in conn_vneg_crypto_free() 1481 conn_call_delete_crypto_aead_ctx(conn, &conn->vneg.tx.ckm->aead_ctx); in conn_vneg_crypto_free() 1497 conn_call_delete_crypto_aead_ctx(conn, &conn->early.ckm->aead_ctx); in ngtcp2_conn_del() 1503 conn, &conn->crypto.key_update.old_rx_ckm->aead_ctx); in ngtcp2_conn_del() 1507 conn, &conn->crypto.key_update.new_rx_ckm->aead_ctx); in ngtcp2_conn_del() 1511 conn, &conn->crypto.key_update.new_tx_ckm->aead_ctx); in ngtcp2_conn_del() 1516 &conn->pktns.crypto.rx.ckm->aead_ctx); in ngtcp2_conn_del() [all …]
|
D | ngtcp2_ppe.c | 126 rv = cc->encrypt(payload, &cc->aead, &cc->ckm->aead_ctx, payload, payloadlen, in ngtcp2_ppe_final()
|
D | ngtcp2_pkt.h | 1221 const ngtcp2_crypto_aead_ctx *aead_ctx);
|
D | ngtcp2_pkt.c | 2254 const ngtcp2_crypto_aead_ctx *aead_ctx) { in ngtcp2_pkt_write_retry() argument 2301 rv = encrypt(tag, aead, aead_ctx, (const uint8_t *)"", 0, nonce, noncelen, in ngtcp2_pkt_write_retry() 2356 const ngtcp2_crypto_aead_ctx *aead_ctx) { in ngtcp2_pkt_verify_retry_tag() argument 2393 rv = encrypt(tag, aead, aead_ctx, (const uint8_t *)"", 0, nonce, noncelen, in ngtcp2_pkt_verify_retry_tag()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/ |
D | ngtcp2.h | 2685 const ngtcp2_crypto_aead_ctx *aead_ctx, 2714 const ngtcp2_crypto_aead_ctx *aead_ctx, 3170 ngtcp2_crypto_aead_ctx *aead_ctx, 3608 const ngtcp2_crypto_aead_ctx *aead_ctx, const uint8_t *iv, 3640 const ngtcp2_crypto_aead_ctx *aead_ctx); 3895 ngtcp2_conn *conn, const ngtcp2_crypto_aead_ctx *aead_ctx, 3923 ngtcp2_conn *conn, const ngtcp2_crypto_aead_ctx *aead_ctx, 3950 ngtcp2_conn *conn, const ngtcp2_crypto_aead_ctx *aead_ctx, 3981 const ngtcp2_crypto_aead_ctx *aead_ctx, const uint8_t *iv, size_t ivlen, 4012 const ngtcp2_crypto_aead_ctx *aead_ctx, const uint8_t *iv, size_t ivlen, [all …]
|