Home
last modified time | relevance | path

Searched refs:cipher_key (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/contrib/bearssl/src/ssl/
H A Dssl_engine.c1449 unsigned char *cipher_key, *iv; in br_ssl_engine_switch_gcm_in() local
1456 cipher_key = &kb[0]; in br_ssl_engine_switch_gcm_in()
1471 unsigned char *cipher_key, *iv; in br_ssl_engine_switch_gcm_out() local
1475 cipher_key = &kb[0]; in br_ssl_engine_switch_gcm_out()
1491 unsigned char *cipher_key, *iv; in br_ssl_engine_switch_chapol_in() local
1495 cipher_key = &kb[32]; in br_ssl_engine_switch_chapol_in()
1498 cipher_key = &kb[0]; in br_ssl_engine_switch_chapol_in()
1516 cipher_key = &kb[0]; in br_ssl_engine_switch_chapol_out()
1519 cipher_key = &kb[32]; in br_ssl_engine_switch_chapol_out()
1541 cipher_key = &kb[0]; in br_ssl_engine_switch_ccm_in()
[all …]
/freebsd-13.1/sys/crypto/openssl/
H A Dossl_chacha20.c49 const unsigned char *in, *inseg, *cipher_key; in ossl_chacha20() local
56 cipher_key = crp->crp_cipher_key; in ossl_chacha20()
58 cipher_key = csp->csp_cipher_key; in ossl_chacha20()
60 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20()
151 const unsigned char *in, *inseg, *cipher_key; in ossl_chacha20_poly1305_encrypt() local
158 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_encrypt()
160 cipher_key = csp->csp_cipher_key; in ossl_chacha20_poly1305_encrypt()
162 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20_poly1305_encrypt()
297 const unsigned char *in, *inseg, *cipher_key; in ossl_chacha20_poly1305_decrypt() local
305 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_decrypt()
[all …]
/freebsd-13.1/sys/sys/
H A Dktls.h107 const uint8_t *cipher_key; member
122 const uint8_t *cipher_key; member
148 uint8_t *cipher_key; member
/freebsd-13.1/sys/kern/
H A Duipc_ktls.c652 tls->params.cipher_key = malloc(en->cipher_key_len, M_KTLS, M_WAITOK); in ktls_create_session()
653 error = copyin(en->cipher_key, tls->params.cipher_key, in ktls_create_session()
713 tls_new->params.cipher_key = malloc(tls->params.cipher_key_len, M_KTLS, in ktls_clone_session()
715 memcpy(tls_new->params.cipher_key, tls->params.cipher_key, in ktls_clone_session()
779 if (tls->params.cipher_key != NULL) { in ktls_cleanup()
780 zfree(tls->params.cipher_key, M_KTLS); in ktls_cleanup()
781 tls->params.cipher_key = NULL; in ktls_cleanup()
/freebsd-13.1/tools/tools/crypto/
H A Dcryptocheck.c846 ocf_init_eta_session(const struct alg *alg, const char *cipher_key, in ocf_init_eta_session() argument
854 sop.key = cipher_key; in ocf_init_eta_session()
910 char *iv, *auth_key, *cipher_key; in run_eta_test() local
943 cipher_key = alloc_buffer(cipher_key_len); in run_eta_test()
953 openssl_cipher(alg, cipher, cipher_key, iv, cleartext + aad_len, in run_eta_test()
965 if (!ocf_init_eta_session(alg, cipher_key, cipher_key_len, auth_key, in run_eta_test()
1048 free(cipher_key); in run_eta_test()
/freebsd-13.1/tests/sys/kern/
H A Dktls_test.c429 en->cipher_key = alloc_buffer(cipher_key_len); in build_tls_enable()
445 free(__DECONST(void *, en->cipher_key)); in free_tls_enable()
636 ATF_REQUIRE(cbc_decrypt(tls_EVP_CIPHER(en), en->cipher_key, iv, in decrypt_tls_aes_cbc_mte()
692 ATF_REQUIRE(aead_decrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in decrypt_tls_12_aead()
729 ATF_REQUIRE(aead_decrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in decrypt_tls_13_aead()
812 ATF_REQUIRE(aead_encrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in encrypt_tls_12_aead()
/freebsd-13.1/sys/opencrypto/
H A Dktls_ocf.c649 csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
689 csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
721 csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
/freebsd-13.1/sys/dev/qat/
H A Dqat_hw15.c553 uint8_t *cipher_key; in qat_hw15_crypto_setup_cipher_config() local
558 cipher_key = (uint8_t *)(cipher_config + 1); in qat_hw15_crypto_setup_cipher_config()
563 memcpy(cipher_key, key, qs->qs_cipher_klen); in qat_hw15_crypto_setup_cipher_config()
/freebsd-13.1/crypto/openssl/ssl/
H A Dktls.c107 crypto_info->cipher_key = key; in ktls_configure_crypto()
/freebsd-13.1/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_hw_tls.c279 en->cipher_key, en->cipher_key_len); in mlx5e_tls_set_params()
/freebsd-13.1/sys/netinet/
H A Dtcp_usrreq.c1904 tls->cipher_key = tls_v0.cipher_key; in copyin_tls_enable()
/freebsd-13.1/sys/dev/cxgbe/tom/
H A Dt4_tls.c916 memcpy(key, tls->params.cipher_key, tls->params.cipher_key_len); in init_ktls_key_context()
930 t4_init_gmac_hash(tls->params.cipher_key, in init_ktls_key_context()
/freebsd-13.1/sys/dev/cxgbe/crypto/
H A Dt4_kern_tls.c811 memcpy(key, tls->params.cipher_key, tls->params.cipher_key_len); in ktls_setup_keys()
814 t4_init_gmac_hash(tls->params.cipher_key, in ktls_setup_keys()