• Home
  • Raw
  • Download

Lines Matching refs:aead_ctx

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()
444 rv = ngtcp2_conn_install_tx_key(conn, secret, secretlen, &aead_ctx, iv, in ngtcp2_crypto_derive_and_install_tx_key()
459 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_derive_and_install_tx_key()
764 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_encrypt_cb() argument
768 if (ngtcp2_crypto_encrypt(dest, aead, aead_ctx, plaintext, plaintextlen, in ngtcp2_crypto_encrypt_cb()
776 const ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_decrypt_cb() argument
780 if (ngtcp2_crypto_decrypt(dest, aead, aead_ctx, ciphertext, ciphertextlen, in ngtcp2_crypto_decrypt_cb()
908 ngtcp2_crypto_aead_ctx aead_ctx; in ngtcp2_crypto_generate_retry_token() local
953 if (ngtcp2_crypto_aead_ctx_encrypt_init(&aead_ctx, &aead, key, ivlen) != 0) { in ngtcp2_crypto_generate_retry_token()
957 rv = ngtcp2_crypto_encrypt(p, &aead, &aead_ctx, plaintext, plaintextlen, iv, in ngtcp2_crypto_generate_retry_token()
960 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_generate_retry_token()
984 ngtcp2_crypto_aead_ctx aead_ctx; in ngtcp2_crypto_verify_retry_token() local
1022 if (ngtcp2_crypto_aead_ctx_decrypt_init(&aead_ctx, &aead, key, ivlen) != 0) { in ngtcp2_crypto_verify_retry_token()
1026 rv = ngtcp2_crypto_decrypt(plaintext, &aead, &aead_ctx, ciphertext, in ngtcp2_crypto_verify_retry_token()
1029 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_verify_retry_token()
1091 ngtcp2_crypto_aead_ctx aead_ctx; in ngtcp2_crypto_generate_regular_token() local
1130 if (ngtcp2_crypto_aead_ctx_encrypt_init(&aead_ctx, &aead, key, ivlen) != 0) { in ngtcp2_crypto_generate_regular_token()
1134 rv = ngtcp2_crypto_encrypt(p, &aead, &aead_ctx, plaintext, plaintextlen, iv, in ngtcp2_crypto_generate_regular_token()
1137 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_generate_regular_token()
1161 ngtcp2_crypto_aead_ctx aead_ctx; in ngtcp2_crypto_verify_regular_token() local
1197 if (ngtcp2_crypto_aead_ctx_decrypt_init(&aead_ctx, &aead, key, ivlen) != 0) { in ngtcp2_crypto_verify_regular_token()
1201 rv = ngtcp2_crypto_decrypt(plaintext, &aead, &aead_ctx, ciphertext, in ngtcp2_crypto_verify_regular_token()
1204 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_verify_regular_token()
1232 ngtcp2_crypto_aead_ctx aead_ctx = {0}; in ngtcp2_crypto_write_connection_close() local
1249 if (ngtcp2_crypto_aead_ctx_encrypt_init(&aead_ctx, &ctx.aead, tx_key, in ngtcp2_crypto_write_connection_close()
1262 ngtcp2_crypto_encrypt_cb, &ctx.aead, &aead_ctx, tx_iv, in ngtcp2_crypto_write_connection_close()
1270 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_write_connection_close()
1282 ngtcp2_crypto_aead_ctx aead_ctx = {0}; in ngtcp2_crypto_write_retry() local
1302 if (ngtcp2_crypto_aead_ctx_encrypt_init(&aead_ctx, &aead, key, noncelen) != in ngtcp2_crypto_write_retry()
1309 &aead, &aead_ctx); in ngtcp2_crypto_write_retry()
1314 ngtcp2_crypto_aead_ctx_free(&aead_ctx); in ngtcp2_crypto_write_retry()
1384 ngtcp2_crypto_aead_ctx *aead_ctx, in ngtcp2_crypto_delete_crypto_aead_ctx_cb() argument
1389 ngtcp2_crypto_aead_ctx_free(aead_ctx); in ngtcp2_crypto_delete_crypto_aead_ctx_cb()