Home
last modified time | relevance | path

Searched refs:hp_ctx (Results 1 – 21 of 21) sorted by relevance

/dports/security/tcpcrypt/tcpcrypt-0.5/src/
H A Dcrypto_umac.c32 umac_ctx_t hp_ctx;
49 if (hp->hp_ctx)
50 umac_delete(hp->hp_ctx);
68 umac_reset(hp->hp_ctx);
70 umac_update(hp->hp_ctx, iov->iov_base, iov->iov_len);
74 umac_final(hp->hp_ctx, out, nonce);
92 if (hp->hp_ctx)
93 umac_delete(hp->hp_ctx);
95 hp->hp_ctx = umac_new(key);
96 assert(hp->hp_ctx);
H A Dcrypto_hmac.c19 HMAC_CTX *hp_ctx; member
51 HMAC_CTX_free(hp->hp_ctx); in hmac_destroy()
66 if (HMAC_Init_ex(hp->hp_ctx, NULL, 0, NULL, NULL) != 1) in hmac_mac()
73 if (HMAC_Update(hp->hp_ctx, iov->iov_base, iov->iov_len) != 1) in hmac_mac()
82 if (HMAC_Final(hp->hp_ctx, o, &olen) != 1) in hmac_mac()
96 if (HMAC_Init_ex(hp->hp_ctx, key, len, NULL, NULL) != 1) in hmac_set_key()
116 hp->hp_ctx = HMAC_CTX_new(); in crypt_HMAC_SHA256_new()
117 if (!hp->hp_ctx) in crypt_HMAC_SHA256_new()
120 if (HMAC_Init_ex(hp->hp_ctx, "a", 1, EVP_sha256(), NULL) != 1) in crypt_HMAC_SHA256_new()
/dports/www/h2o-devel/h2o-dcc7134/deps/quicly/lib/
H A Ddefaults.c375 … ptls_cipher_context_t **hp_ctx, ptls_aead_context_t **aead_ctx, ptls_aead_algorithm_t *aead, in default_setup_cipher() argument
381 if (hp_ctx != NULL) in default_setup_cipher()
382 *hp_ctx = NULL; in default_setup_cipher()
386 if (hp_ctx != NULL) { in default_setup_cipher()
390 if ((*hp_ctx = ptls_cipher_new(aead->ctr_cipher, is_enc, hpkey)) == NULL) { in default_setup_cipher()
409 if (hp_ctx != NULL && *hp_ctx != NULL) { in default_setup_cipher()
410 ptls_cipher_free(*hp_ctx); in default_setup_cipher()
411 *hp_ctx = NULL; in default_setup_cipher()
H A Dquicly.c1417 …tic int setup_cipher(quicly_conn_t *conn, size_t epoch, int is_enc, ptls_cipher_context_t **hp_ctx, in setup_cipher() argument
1424 return engine->setup_cipher(engine, conn, epoch, is_enc, hp_ctx, aead_ctx, aead, hash, secret); in setup_cipher()
/dports/net/libngtcp2/ngtcp2-224bd62/crypto/
H A Dshared.c180 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in ngtcp2_crypto_derive_and_install_rx_key() local
242 &hp_ctx); in ngtcp2_crypto_derive_and_install_rx_key()
256 ivlen, &hp_ctx); in ngtcp2_crypto_derive_and_install_rx_key()
269 ngtcp2_crypto_cipher_ctx_free(&hp_ctx); in ngtcp2_crypto_derive_and_install_rx_key()
314 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in ngtcp2_crypto_derive_and_install_tx_key() local
376 &hp_ctx); in ngtcp2_crypto_derive_and_install_tx_key()
395 ivlen, &hp_ctx); in ngtcp2_crypto_derive_and_install_tx_key()
408 ngtcp2_crypto_cipher_ctx_free(&hp_ctx); in ngtcp2_crypto_derive_and_install_tx_key()
626 if (ngtcp2_crypto_hp_mask(dest, hp, hp_ctx, sample) != 0) { in ngtcp2_crypto_hp_mask_cb()
1067 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in ngtcp2_crypto_write_connection_close() local
[all …]
/dports/net/libngtcp2/ngtcp2-224bd62/tests/
H A Dngtcp2_conn_test.c103 (void)hp_ctx; in null_hp_mask()
192 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in client_initial_early_data() local
204 &hp_ctx); in client_initial_early_data()
212 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in client_initial_large_crypto_early_data() local
226 &hp_ctx); in client_initial_large_crypto_early_data()
234 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in recv_client_initial() local
260 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in recv_client_initial_early() local
269 &hp_ctx); in recv_client_initial_early()
292 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in recv_crypto_data_server_early_data() local
623 ngtcp2_crypto_cipher_ctx hp_ctx = {0}; in setup_default_server() local
[all …]
H A Dngtcp2_test_helper.c104 const ngtcp2_crypto_cipher_ctx *hp_ctx, in null_hp_mask() argument
107 (void)hp_ctx; in null_hp_mask()
/dports/net/libngtcp2/ngtcp2-224bd62/lib/
H A Dngtcp2_conn.h294 ngtcp2_crypto_cipher_ctx hp_ctx; member
304 ngtcp2_crypto_cipher_ctx hp_ctx; member
444 ngtcp2_crypto_cipher_ctx hp_ctx; member
H A Dngtcp2_conn.c2377 cc.hp_ctx = pktns->crypto.tx.hp_ctx; in conn_write_handshake_pkt()
3316 cc->hp_ctx = conn->early.hp_ctx; in conn_write_pkt()
4072 cc.hp_ctx = pktns->crypto.tx.hp_ctx; in ngtcp2_conn_write_single_frame_pkt()
5924 hp_ctx = &pktns->crypto.rx.hp_ctx; in conn_recv_handshake_pkt()
8242 hp_ctx = &conn->early.hp_ctx; in conn_recv_pkt()
9852 pktns->crypto.rx.hp_ctx = *hp_ctx; in ngtcp2_conn_install_rx_handshake_key()
9874 pktns->crypto.tx.hp_ctx = *hp_ctx; in ngtcp2_conn_install_tx_handshake_key()
9899 conn->early.hp_ctx = *hp_ctx; in ngtcp2_conn_install_early_key()
9924 pktns->crypto.rx.hp_ctx = *hp_ctx; in ngtcp2_conn_install_rx_key()
9957 pktns->crypto.tx.hp_ctx = *hp_ctx; in ngtcp2_conn_install_tx_key()
[all …]
H A Dngtcp2_crypto.h118 ngtcp2_crypto_cipher_ctx hp_ctx; member
H A Dngtcp2_ppe.c137 rv = cc->hp_mask(mask, &cc->hp, &cc->hp_ctx, buf->begin + ppe->sample_offset); in ngtcp2_ppe_final()
/dports/net/libngtcp2/ngtcp2-224bd62/lib/includes/ngtcp2/
H A Dngtcp2.h2592 const ngtcp2_crypto_cipher_ctx *hp_ctx,
3402 const ngtcp2_crypto_cipher_ctx *hp_ctx);
3646 const uint8_t *iv, size_t ivlen, const ngtcp2_crypto_cipher_ctx *hp_ctx);
3674 const uint8_t *iv, size_t ivlen, const ngtcp2_crypto_cipher_ctx *hp_ctx);
3701 const uint8_t *iv, size_t ivlen, const ngtcp2_crypto_cipher_ctx *hp_ctx);
3732 const ngtcp2_crypto_cipher_ctx *hp_ctx);
3763 const ngtcp2_crypto_cipher_ctx *hp_ctx);
/dports/net/libngtcp2/ngtcp2-224bd62/crypto/includes/ngtcp2/
H A Dngtcp2_crypto.h369 const ngtcp2_crypto_cipher_ctx *hp_ctx,
384 const ngtcp2_crypto_cipher_ctx *hp_ctx,
/dports/net/libngtcp2/ngtcp2-224bd62/crypto/boringssl/
H A Dboringssl.c362 const ngtcp2_crypto_cipher_ctx *hp_ctx, in ngtcp2_crypto_hp_mask() argument
365 ngtcp2_crypto_boringssl_cipher_ctx *ctx = hp_ctx->native_handle; in ngtcp2_crypto_hp_mask()
/dports/net/libngtcp2/ngtcp2-224bd62/crypto/gnutls/
H A Dgnutls.c369 const ngtcp2_crypto_cipher_ctx *hp_ctx, in ngtcp2_crypto_hp_mask() argument
373 gnutls_cipher_hd_t hd = hp_ctx->native_handle; in ngtcp2_crypto_hp_mask()
/dports/net/libngtcp2/ngtcp2-224bd62/crypto/openssl/
H A Dopenssl.c577 const ngtcp2_crypto_cipher_ctx *hp_ctx, in ngtcp2_crypto_hp_mask() argument
580 EVP_CIPHER_CTX *actx = hp_ctx->native_handle; in ngtcp2_crypto_hp_mask()
/dports/net/libngtcp2/ngtcp2-224bd62/examples/
H A Dh09client.cc464 const ngtcp2_crypto_cipher_ctx *hp_ctx, const uint8_t *sample) { in do_hp_mask() argument
465 if (ngtcp2_crypto_hp_mask(dest, hp, hp_ctx, sample) != 0) { in do_hp_mask()
H A Dclient.cc509 const ngtcp2_crypto_cipher_ctx *hp_ctx, const uint8_t *sample) { in do_hp_mask() argument
510 if (ngtcp2_crypto_hp_mask(dest, hp, hp_ctx, sample) != 0) { in do_hp_mask()
H A Dperfserver.cc251 const ngtcp2_crypto_cipher_ctx *hp_ctx, const uint8_t *sample) { in do_hp_mask() argument
252 if (ngtcp2_crypto_hp_mask(dest, hp, hp_ctx, sample) != 0) { in do_hp_mask()
H A Dh09server.cc475 const ngtcp2_crypto_cipher_ctx *hp_ctx, const uint8_t *sample) { in do_hp_mask() argument
476 if (ngtcp2_crypto_hp_mask(dest, hp, hp_ctx, sample) != 0) { in do_hp_mask()
H A Dserver.cc736 const ngtcp2_crypto_cipher_ctx *hp_ctx, const uint8_t *sample) { in do_hp_mask() argument
737 if (ngtcp2_crypto_hp_mask(dest, hp, hp_ctx, sample) != 0) { in do_hp_mask()