| /freebsd-13.1/contrib/bsnmp/lib/ |
| H A D | snmpcrypto.c | 111 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 D | snmp.h | 148 uint8_t auth_key[SNMP_AUTH_KEY_SIZ]; member
|
| /freebsd-13.1/contrib/bsnmp/snmp_usm/ |
| H A D | usm_snmp.c | 202 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 D | ktls.h | 109 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 D | utils.subr | 82 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 D | uipc_ktls.c | 643 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 D | cryptocheck.c | 847 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 D | trap.c | 514 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 D | main.c | 340 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 D | ktls.c | 101 crypto_info->auth_key = mac_key; in ktls_configure_crypto()
|
| /freebsd-13.1/tests/sys/kern/ |
| H A D | ktls_test.c | 431 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 D | bsnmptools.c | 523 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 D | ktls_ocf.c | 696 mac_csp.csp_auth_key = tls->params.auth_key; in ktls_ocf_try()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | tcp_usrreq.c | 1906 tls->auth_key = tls_v0.auth_key; in copyin_tls_enable()
|
| /freebsd-13.1/sys/dev/cxgbe/tom/ |
| H A D | t4_tls.c | 958 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 D | t4_kern_tls.c | 819 tls->params.auth_key, tls->params.auth_key_len, in ktls_setup_keys()
|