/freebsd/contrib/bsnmp/lib/ |
H A D | snmpcrypto.c | 110 memcpy(extkey, pdu->user.auth_key, keylen); in snmp_pdu_calc_digest() 269 memset(user->auth_key, 0, sizeof(user->auth_key)); in snmp_passwd_to_keys() 279 if (EVP_DigestFinal(ctx, user->auth_key, &olen) != 1) in snmp_passwd_to_keys() 318 memcpy(authbuf, user->auth_key, keylen); in snmp_get_local_keys() 320 memcpy(authbuf + keylen + elen, user->auth_key, keylen); in snmp_get_local_keys() 323 EVP_DigestFinal(ctx, user->auth_key, &olen) != 1) { in snmp_get_local_keys() 330 memcpy(user->priv_key, user->auth_key, sizeof(user->priv_key)); in snmp_get_local_keys() 358 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/contrib/bsnmp/snmp_usm/ |
H A D | usm_snmp.c | 201 memcpy(uuser->suser.auth_key, clone->suser.auth_key, in op_usm_users() 202 sizeof(uuser->suser.auth_key)); in op_usm_users() 235 memcpy(ctx->scratch->ptr1, uuser->suser.auth_key, in op_usm_users() 237 memcpy(uuser->suser.auth_key, val->v.octetstring.octets, in op_usm_users() 357 memcpy(uuser->suser.auth_key, ctx->scratch->ptr1, in op_usm_users() 358 sizeof(uuser->suser.auth_key)); in op_usm_users() 420 return (string_get(val, (char *)uuser->suser.auth_key, 0)); in op_usm_users()
|
/freebsd/tests/sys/netipsec/tunnel/ |
H A D | utils.subr | 81 auth_key=$7 86 printf "${enc_key} ${auth_algo} ${auth_key}\n" 107 [ -n "${auth_algo}" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n" 109 [ -n "$auth_algo" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n"
|
/freebsd/sys/sys/ |
H A D | ktls.h | 112 const uint8_t *auth_key; member 127 const uint8_t *auth_key; member 152 uint8_t *auth_key; member
|
/freebsd/sys/kern/ |
H A D | uipc_ktls.c | 310 uint8_t *cipher_key = NULL, *iv = NULL, *auth_key = NULL; in ktls_copyin_tls_enable() local 319 tls->auth_key = tls_v0.auth_key; in ktls_copyin_tls_enable() 373 auth_key = malloc(tls->auth_key_len, M_KTLS, M_WAITOK); in ktls_copyin_tls_enable() 375 error = copyin(tls->auth_key, auth_key, tls->auth_key_len); in ktls_copyin_tls_enable() 379 bcopy(tls->auth_key, auth_key, tls->auth_key_len); in ktls_copyin_tls_enable() 384 tls->auth_key = auth_key; in ktls_copyin_tls_enable() 390 zfree(auth_key, M_KTLS); in ktls_copyin_tls_enable() 401 zfree(__DECONST(void *, tls->auth_key), M_KTLS); in ktls_cleanup_tls_enable() 792 tls->params.auth_key = malloc(en->auth_key_len, M_KTLS, in ktls_create_session() 794 bcopy(en->auth_key, tls->params.auth_key, en->auth_key_len); in ktls_create_session() [all …]
|
/freebsd/tools/tools/crypto/ |
H A D | cryptocheck.c | 892 size_t cipher_key_len, const char *auth_key, size_t auth_key_len, in ocf_init_eta_session() argument 902 sop.mackey = auth_key; in ocf_init_eta_session() 955 char *iv, *auth_key, *cipher_key; in run_eta_test() local 990 auth_key = alloc_buffer(auth_key_len); in run_eta_test() 1008 if (HMAC(md, auth_key, auth_key_len, (u_char *)ciphertext, in run_eta_test() 1015 if (!ocf_init_eta_session(alg, cipher_key, cipher_key_len, auth_key, in run_eta_test() 1097 free(auth_key); in run_eta_test()
|
/freebsd/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/crypto/openssl/ssl/ |
H A D | ktls.c | 165 crypto_info->auth_key = mac_key; in ktls_configure_crypto()
|
/freebsd/tests/sys/kern/ |
H A D | ktls_test.c | 591 en->auth_key = alloc_buffer(auth_key_len); in build_tls_enable() 593 debug_hexdump(tc, en->auth_key, auth_key_len, "auth key"); in build_tls_enable() 610 free(__DECONST(void *, en->auth_key)); in free_tls_enable() 848 ATF_REQUIRE(verify_hash(tls_EVP_MD(en), en->auth_key, en->auth_key_len, in decrypt_tls_aes_cbc_mte() 1031 ATF_REQUIRE(compute_hash(tls_EVP_MD(en), en->auth_key, en->auth_key_len, in encrypt_tls_aes_cbc_mte()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_keyctx.c | 630 t4_init_hmac_digest(axf, mac_key_size, tls->params.auth_key, in t4_tls_key_ctx()
|
/freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/ |
H A D | bsnmptools.c | 520 if (parse_ascii(val, snmp_client.user.auth_key, in parse_authentication() 2115 snmp_client.user.auth_key[i]); in snmp_output_keys()
|
/freebsd/sys/opencrypto/ |
H A D | ktls_ocf.c | 1072 mac_csp.csp_auth_key = tls->params.auth_key; in ktls_ocf_try()
|