Home
last modified time | relevance | path

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

/freebsd/contrib/bearssl/src/ssl/
H A Dssl_engine.c1379 unsigned char *cipher_key, *mac_key, *iv; in br_ssl_engine_switch_cbc_in() local
1399 cipher_key = &kb[(mac_key_len << 1) + cipher_key_len]; in br_ssl_engine_switch_cbc_in()
1403 cipher_key = &kb[mac_key_len << 1]; in br_ssl_engine_switch_cbc_in()
1410 bc_impl, cipher_key, cipher_key_len, in br_ssl_engine_switch_cbc_in()
1422 unsigned char *cipher_key, *mac_key, *iv; in br_ssl_engine_switch_cbc_out() local
1442 cipher_key = &kb[mac_key_len << 1]; in br_ssl_engine_switch_cbc_out()
1446 cipher_key = &kb[(mac_key_len << 1) + cipher_key_len]; in br_ssl_engine_switch_cbc_out()
1453 bc_impl, cipher_key, cipher_key_len, in br_ssl_engine_switch_cbc_out()
1464 unsigned char *cipher_key, *iv; in br_ssl_engine_switch_gcm_in() local
1468 cipher_key = &kb[cipher_key_len]; in br_ssl_engine_switch_gcm_in()
[all …]
/freebsd/sys/crypto/openssl/
H A Dossl_chacha20.c63 const unsigned char *in, *inseg, *cipher_key; in ossl_chacha20() local
70 cipher_key = crp->crp_cipher_key; in ossl_chacha20()
72 cipher_key = csp->csp_cipher_key; in ossl_chacha20()
74 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20()
165 const unsigned char *in, *inseg, *cipher_key; in ossl_chacha20_poly1305_encrypt() local
172 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_encrypt()
174 cipher_key = csp->csp_cipher_key; in ossl_chacha20_poly1305_encrypt()
176 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20_poly1305_encrypt()
311 const unsigned char *in, *inseg, *cipher_key; in ossl_chacha20_poly1305_decrypt() local
319 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_decrypt()
[all …]
/freebsd/sys/sys/
H A Dktls.h110 const uint8_t *cipher_key; member
125 const uint8_t *cipher_key; member
151 uint8_t *cipher_key; member
/freebsd/sys/kern/
H A Duipc_ktls.c310 uint8_t *cipher_key = NULL, *iv = NULL, *auth_key = NULL; in ktls_copyin_tls_enable() local
317 tls->cipher_key = tls_v0.cipher_key; in ktls_copyin_tls_enable()
353 cipher_key = malloc(tls->cipher_key_len, M_KTLS, M_WAITOK); in ktls_copyin_tls_enable()
355 error = copyin(tls->cipher_key, cipher_key, tls->cipher_key_len); in ktls_copyin_tls_enable()
359 bcopy(tls->cipher_key, cipher_key, tls->cipher_key_len); in ktls_copyin_tls_enable()
382 tls->cipher_key = cipher_key; in ktls_copyin_tls_enable()
388 zfree(cipher_key, M_KTLS); in ktls_copyin_tls_enable()
399 zfree(__DECONST(void *, tls->cipher_key), M_KTLS); in ktls_cleanup_tls_enable()
798 tls->params.cipher_key = malloc(en->cipher_key_len, M_KTLS, M_WAITOK); in ktls_create_session()
799 bcopy(en->cipher_key, tls->params.cipher_key, en->cipher_key_len); in ktls_create_session()
[all …]
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_keyctx.c598 t4_aes_getdeckey(kctx->keys.edkey, tls->params.cipher_key, in t4_tls_key_ctx()
601 memcpy(kctx->keys.edkey, tls->params.cipher_key, in t4_tls_key_ctx()
611 t4_init_gmac_hash(tls->params.cipher_key, in t4_tls_key_ctx()
/freebsd/tools/tools/crypto/
H A Dcryptocheck.c891 ocf_init_eta_session(const struct alg *alg, const char *cipher_key, in ocf_init_eta_session() argument
899 sop.key = cipher_key; in ocf_init_eta_session()
955 char *iv, *auth_key, *cipher_key; in run_eta_test() local
988 cipher_key = alloc_buffer(cipher_key_len); in run_eta_test()
998 if (!openssl_cipher(alg, cipher, cipher_key, iv, cleartext + aad_len, in run_eta_test()
1015 if (!ocf_init_eta_session(alg, cipher_key, cipher_key_len, auth_key, in run_eta_test()
1099 free(cipher_key); in run_eta_test()
/freebsd/sys/opencrypto/
H A Dktls_ocf.c1017 csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
1024 recrypt_csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
1065 csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
1092 csp.csp_cipher_key = tls->params.cipher_key; in ktls_ocf_try()
/freebsd/sys/dev/qat_c2xxx/
H A Dqat_hw15.c552 uint8_t *cipher_key; in qat_hw15_crypto_setup_cipher_config() local
557 cipher_key = (uint8_t *)(cipher_config + 1); in qat_hw15_crypto_setup_cipher_config()
562 memcpy(cipher_key, key, qs->qs_cipher_klen); in qat_hw15_crypto_setup_cipher_config()
/freebsd/tests/sys/kern/
H A Dktls_test.c586 en->cipher_key = alloc_buffer(cipher_key_len); in build_tls_enable()
587 debug_hexdump(tc, en->cipher_key, cipher_key_len, "cipher key"); in build_tls_enable()
608 free(__DECONST(void *, en->cipher_key)); in free_tls_enable()
819 ATF_REQUIRE(cbc_decrypt(tls_EVP_CIPHER(en), en->cipher_key, iv, in decrypt_tls_aes_cbc_mte()
885 ATF_REQUIRE(aead_decrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in decrypt_tls_12_aead()
928 ATF_REQUIRE(aead_decrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in decrypt_tls_13_aead()
1042 ATF_REQUIRE(cbc_encrypt(tls_EVP_CIPHER(en), en->cipher_key, iv, in encrypt_tls_aes_cbc_mte()
1081 ATF_REQUIRE(aead_encrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in encrypt_tls_12_aead()
1127 ATF_REQUIRE(aead_encrypt(tls_EVP_CIPHER(en), en->cipher_key, nonce, in encrypt_tls_13_aead()
/freebsd/crypto/openssl/ssl/
H A Dktls.c171 crypto_info->cipher_key = key; in ktls_configure_crypto()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_hw_tls.c385 en->cipher_key, en->cipher_key_len); in mlx5e_tls_set_params()
H A Dmlx5_en_hw_tls_rx.c632 en->cipher_key, en->cipher_key_len); in mlx5e_tls_rx_set_params()