Searched refs:auth_key (Results 1 – 8 of 8) sorted by relevance
| /freebsd-12.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-12.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-12.1/tests/sys/netipsec/tunnel/ |
| H A D | utils.subr | 78 auth_key=$7 83 printf "${enc_key} ${auth_algo} ${auth_key}\n" 104 [ -n "${auth_algo}" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n" 106 [ -n "$auth_algo" ] && printf " -A ${auth_algo} \"${auth_key}\";\n" || printf ";\n"
|
| /freebsd-12.1/tools/tools/crypto/ |
| H A D | cryptocheck.c | 753 const char *iv, size_t iv_len, const char *auth_key, size_t auth_key_len, in ocf_authenc() argument 766 sop.mackey = (char *)auth_key; in ocf_authenc() 833 char *iv, *auth_key, *cipher_key; in run_authenc_test() local 858 auth_key = alloc_buffer(auth_key_len); in run_authenc_test() 873 if (HMAC(md, auth_key, auth_key_len, (u_char *)ciphertext, in run_authenc_test() 879 if (!ocf_authenc(alg, cipher_key, cipher_key_len, iv, iv_len, auth_key, in run_authenc_test() 907 if (!ocf_authenc(alg, cipher_key, cipher_key_len, iv, iv_len, auth_key, in run_authenc_test() 942 free(auth_key); in run_authenc_test()
|
| /freebsd-12.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-12.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()
|