Home
last modified time | relevance | path

Searched refs:auth_key (Results 1 – 16 of 16) sorted by relevance

/freebsd-13.1/contrib/bsnmp/lib/
H A Dsnmpcrypto.c111 memcpy(extkey, pdu->user.auth_key, keylen); in snmp_pdu_calc_digest()
270 memset(user->auth_key, 0, sizeof(user->auth_key)); in snmp_passwd_to_keys()
280 if (EVP_DigestFinal(ctx, user->auth_key, &olen) != 1) in snmp_passwd_to_keys()
319 memcpy(authbuf, user->auth_key, keylen); in snmp_get_local_keys()
321 memcpy(authbuf + keylen + elen, user->auth_key, keylen); in snmp_get_local_keys()
324 EVP_DigestFinal(ctx, user->auth_key, &olen) != 1) { in snmp_get_local_keys()
331 memcpy(user->priv_key, user->auth_key, sizeof(user->priv_key)); in snmp_get_local_keys()
359 memcpy(keychange, user->auth_key, keylen); in snmp_calc_keychange()
H A Dsnmp.h148 uint8_t auth_key[SNMP_AUTH_KEY_SIZ]; member
/freebsd-13.1/contrib/bsnmp/snmp_usm/
H A Dusm_snmp.c202 memcpy(uuser->suser.auth_key, clone->suser.auth_key, in op_usm_users()
203 sizeof(uuser->suser.auth_key)); in op_usm_users()
236 memcpy(ctx->scratch->ptr1, uuser->suser.auth_key, in op_usm_users()
238 memcpy(uuser->suser.auth_key, val->v.octetstring.octets, in op_usm_users()
358 memcpy(uuser->suser.auth_key, ctx->scratch->ptr1, in op_usm_users()
359 sizeof(uuser->suser.auth_key)); in op_usm_users()
421 return (string_get(val, (char *)uuser->suser.auth_key, 0)); in op_usm_users()
/freebsd-13.1/sys/sys/
H A Dktls.h109 const uint8_t *auth_key; member
124 const uint8_t *auth_key; member
149 uint8_t *auth_key; member
/freebsd-13.1/tests/sys/netipsec/tunnel/
H A Dutils.subr82 auth_key=$7
87 printf "${enc_key} ${auth_algo} ${auth_key}\n"
108 [ -n "${auth_algo}" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n"
110 [ -n "$auth_algo" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n"
/freebsd-13.1/sys/kern/
H A Duipc_ktls.c643 tls->params.auth_key = malloc(en->auth_key_len, M_KTLS, in ktls_create_session()
645 error = copyin(en->auth_key, tls->params.auth_key, in ktls_create_session()
706 if (tls_new->params.auth_key != NULL) { in ktls_clone_session()
707 tls_new->params.auth_key = malloc(tls->params.auth_key_len, in ktls_clone_session()
709 memcpy(tls_new->params.auth_key, tls->params.auth_key, in ktls_clone_session()
774 if (tls->params.auth_key != NULL) { in ktls_cleanup()
775 zfree(tls->params.auth_key, M_KTLS); in ktls_cleanup()
776 tls->params.auth_key = NULL; in ktls_cleanup()
/freebsd-13.1/tools/tools/crypto/
H A Dcryptocheck.c847 size_t cipher_key_len, const char *auth_key, size_t auth_key_len, in ocf_init_eta_session() argument
857 sop.mackey = auth_key; in ocf_init_eta_session()
910 char *iv, *auth_key, *cipher_key; in run_eta_test() local
945 auth_key = alloc_buffer(auth_key_len); in run_eta_test()
960 if (HMAC(md, auth_key, auth_key_len, (u_char *)ciphertext, in run_eta_test()
965 if (!ocf_init_eta_session(alg, cipher_key, cipher_key_len, auth_key, in run_eta_test()
1046 free(auth_key); in run_eta_test()
/freebsd-13.1/contrib/bsnmp/snmpd/
H A Dtrap.c514 memcpy(pdu->user.auth_key, usmuser->suser.auth_key, in snmp_create_v3_trap()
515 sizeof(pdu->user.auth_key)); in snmp_create_v3_trap()
H A Dmain.c340 memcpy(pdu->user.auth_key, usm_user->suser.auth_key, in snmp_pdu_auth_user()
341 sizeof(pdu->user.auth_key)); in snmp_pdu_auth_user()
/freebsd-13.1/crypto/openssl/ssl/
H A Dktls.c101 crypto_info->auth_key = mac_key; in ktls_configure_crypto()
/freebsd-13.1/tests/sys/kern/
H A Dktls_test.c431 en->auth_key = alloc_buffer(auth_key_len); in build_tls_enable()
447 free(__DECONST(void *, en->auth_key)); in free_tls_enable()
660 ATF_REQUIRE(verify_hash(tls_EVP_MD(en), en->auth_key, en->auth_key_len, in decrypt_tls_aes_cbc_mte()
/freebsd-13.1/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptools.c523 if (parse_ascii(val, snmp_client.user.auth_key, in parse_authentication()
2118 snmp_client.user.auth_key[i]); in snmp_output_keys()
/freebsd-13.1/sys/opencrypto/
H A Dktls_ocf.c696 mac_csp.csp_auth_key = tls->params.auth_key; in ktls_ocf_try()
/freebsd-13.1/sys/netinet/
H A Dtcp_usrreq.c1906 tls->auth_key = tls_v0.auth_key; in copyin_tls_enable()
/freebsd-13.1/sys/dev/cxgbe/tom/
H A Dt4_tls.c958 t4_init_hmac_digest(axf, mac_key_size, tls->params.auth_key, in init_ktls_key_context()
/freebsd-13.1/sys/dev/cxgbe/crypto/
H A Dt4_kern_tls.c819 tls->params.auth_key, tls->params.auth_key_len, in ktls_setup_keys()