Home
last modified time | relevance | path

Searched refs:authbuf (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/bsnmp/lib/
H A Dsnmpcrypto.c252 uint8_t authbuf[SNMP_AUTH_BUF_SIZE]; in snmp_passwd_to_keys() local
274 authbuf[i] = passwd[(loop + i) % pwdlen]; in snmp_passwd_to_keys()
275 if (EVP_DigestUpdate(ctx, authbuf, SNMP_EXTENDED_KEY_SIZ) != 1) in snmp_passwd_to_keys()
298 uint8_t authbuf[SNMP_AUTH_BUF_SIZE]; in snmp_get_local_keys() local
308 memset(authbuf, 0, sizeof(authbuf)); in snmp_get_local_keys()
318 memcpy(authbuf, user->auth_key, keylen); in snmp_get_local_keys()
319 memcpy(authbuf + keylen, eid, elen); in snmp_get_local_keys()
320 memcpy(authbuf + keylen + elen, user->auth_key, keylen); in snmp_get_local_keys()
322 if (EVP_DigestUpdate(ctx, authbuf, 2 * keylen + elen) != 1 || in snmp_get_local_keys()
/freebsd-14.2/sys/crypto/armv8/
H A Darmv8_crypto.c309 uint8_t *authbuf; in armv8_crypto_cipher_process() local
319 authbuf = NULL; in armv8_crypto_cipher_process()
323 authbuf = crp->crp_aad; in armv8_crypto_cipher_process()
325 authbuf = armv8_crypto_cipher_alloc(crp, crp->crp_aad_start, in armv8_crypto_cipher_process()
327 if (authbuf == NULL) in armv8_crypto_cipher_process()
377 crp->crp_aad_length, authbuf, tag, iv, ses->Htable); in armv8_crypto_cipher_process()
385 crp->crp_aad_length, authbuf, tag, iv, ses->Htable); in armv8_crypto_cipher_process()
393 zfree(authbuf, M_ARMV8_CRYPTO); in armv8_crypto_cipher_process()
/freebsd-14.2/sys/crypto/aesni/
H A Daesni.c621 uint8_t *authbuf, *buf, *outbuf; in aesni_cipher_crypt() local
637 authbuf = NULL; in aesni_cipher_crypt()
641 authbuf = NULL; in aesni_cipher_crypt()
643 authbuf = crp->crp_aad; in aesni_cipher_crypt()
645 authbuf = aesni_cipher_alloc(crp, crp->crp_aad_start, in aesni_cipher_crypt()
647 if (authbuf == NULL) { in aesni_cipher_crypt()
717 AES_GCM_encrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
725 if (!AES_GCM_decrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
734 AES_CCM_encrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
743 if (!AES_CCM_decrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c435 ccmp.authData = authbuf; in zio_do_crypt_uio()
446 gcmp.pAAD = authbuf; in zio_do_crypt_uio()
1579 *authbuf = aadbuf; in zio_crypt_init_uios_zil()
1604 *authbuf = NULL; in zio_crypt_init_uios_zil()
1767 *authbuf = aadbuf; in zio_crypt_init_uios_dnode()
1792 *authbuf = NULL; in zio_crypt_init_uios_dnode()
1888 *authbuf = NULL; in zio_crypt_init_uios()
1929 uint8_t *authbuf = NULL; in zio_do_crypt_data() local
2010 if (authbuf != NULL) in zio_do_crypt_data()
2011 zio_buf_free(authbuf, datalen); in zio_do_crypt_data()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c1407 *authbuf = aadbuf; in zio_crypt_init_uios_zil()
1557 *authbuf = aadbuf; in zio_crypt_init_uios_dnode()
1625 uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) in zio_crypt_init_uios() argument
1636 datalen, byteswap, puio, cuio, enc_len, authbuf, auth_len, in zio_crypt_init_uios()
1647 *authbuf = NULL; in zio_crypt_init_uios()
1693 uint8_t *authbuf = NULL; in zio_do_crypt_data() local
1716 &authbuf, &auth_len, no_crypt); in zio_do_crypt_data()
1756 if (authbuf != NULL) in zio_do_crypt_data()
1757 zio_buf_free(authbuf, datalen); in zio_do_crypt_data()
1775 if (authbuf != NULL) in zio_do_crypt_data()
[all …]