Home
last modified time | relevance | path

Searched refs:auth_key_len (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/sys/sys/
H A Dktls.h114 int auth_key_len; member
129 int auth_key_len; member
155 uint16_t auth_key_len; member
/freebsd-14.2/sys/kern/
H A Duipc_ktls.c513 if (en->auth_key_len < 0 || en->auth_key_len > TLS_MAX_PARAM_SIZE) in ktls_create_session()
547 if (en->auth_key_len != 0) in ktls_create_session()
574 if (en->auth_key_len == 0) in ktls_create_session()
596 if (en->auth_algorithm != 0 || en->auth_key_len != 0) in ktls_create_session()
701 if (en->auth_key_len != 0) { in ktls_create_session()
702 tls->params.auth_key_len = en->auth_key_len; in ktls_create_session()
703 tls->params.auth_key = malloc(en->auth_key_len, M_KTLS, in ktls_create_session()
706 en->auth_key_len); in ktls_create_session()
776 tls_new->params.auth_key = malloc(tls->params.auth_key_len, in ktls_clone_session()
779 tls->params.auth_key_len); in ktls_clone_session()
[all …]
/freebsd-14.2/tests/sys/kern/
H A Dktls_test.c548 u_int auth_key_len, iv_len; in build_tls_enable() local
574 auth_key_len = SHA1_HASH_LEN; in build_tls_enable()
577 auth_key_len = SHA2_256_HASH_LEN; in build_tls_enable()
580 auth_key_len = SHA2_384_HASH_LEN; in build_tls_enable()
583 auth_key_len = 0; in build_tls_enable()
591 en->auth_key = alloc_buffer(auth_key_len); in build_tls_enable()
592 if (auth_key_len != 0) in build_tls_enable()
593 debug_hexdump(tc, en->auth_key, auth_key_len, "auth key"); in build_tls_enable()
598 en->auth_key_len = auth_key_len; in build_tls_enable()
848 ATF_REQUIRE(verify_hash(tls_EVP_MD(en), en->auth_key, en->auth_key_len, in decrypt_tls_aes_cbc_mte()
[all …]
/freebsd-14.2/tools/tools/crypto/
H A Dcryptocheck.c867 size_t cipher_key_len, const char *auth_key, size_t auth_key_len, in ocf_init_eta_session() argument
876 sop.mackeylen = auth_key_len; in ocf_init_eta_session()
931 u_int iv_len, auth_key_len, cipher_key_len, digest_len; in run_eta_test() local
961 auth_key_len = EVP_MD_size(md); in run_eta_test()
965 auth_key = alloc_buffer(auth_key_len); in run_eta_test()
980 if (HMAC(md, auth_key, auth_key_len, (u_char *)ciphertext, in run_eta_test()
986 auth_key_len, &ses)) in run_eta_test()
/freebsd-14.2/crypto/openssl/ssl/
H A Dktls.c166 crypto_info->auth_key_len = mac_secret_size; in ktls_configure_crypto()
/freebsd-14.2/sys/dev/cxgbe/crypto/
H A Dt4_keyctx.c632 tls->params.auth_key_len, hash); in t4_tls_key_ctx()
/freebsd-14.2/sys/opencrypto/
H A Dktls_ocf.c1074 mac_csp.csp_auth_klen = tls->params.auth_key_len; in ktls_ocf_try()
/freebsd-14.2/sys/netinet/
H A Dtcp_usrreq.c1903 tls->auth_key_len = tls_v0.auth_key_len; in copyin_tls_enable()