Home
last modified time | relevance | path

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

/freebsd/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/sys/crypto/armv8/
H A Darmv8_crypto.c312 uint8_t *authbuf; in armv8_crypto_cipher_process() local
322 authbuf = NULL; in armv8_crypto_cipher_process()
326 authbuf = crp->crp_aad; in armv8_crypto_cipher_process()
328 authbuf = armv8_crypto_cipher_alloc(crp, crp->crp_aad_start, in armv8_crypto_cipher_process()
330 if (authbuf == NULL) in armv8_crypto_cipher_process()
380 crp->crp_aad_length, authbuf, tag, iv, ses->Htable); in armv8_crypto_cipher_process()
388 crp->crp_aad_length, authbuf, tag, iv, ses->Htable); in armv8_crypto_cipher_process()
396 zfree(authbuf, M_ARMV8_CRYPTO); in armv8_crypto_cipher_process()
/freebsd/sys/crypto/aesni/
H A Daesni.c620 uint8_t *authbuf, *buf, *outbuf; in aesni_cipher_crypt() local
636 authbuf = NULL; in aesni_cipher_crypt()
640 authbuf = NULL; in aesni_cipher_crypt()
642 authbuf = crp->crp_aad; in aesni_cipher_crypt()
644 authbuf = aesni_cipher_alloc(crp, crp->crp_aad_start, in aesni_cipher_crypt()
646 if (authbuf == NULL) { in aesni_cipher_crypt()
716 AES_GCM_encrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
724 if (!AES_GCM_decrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
733 AES_CCM_encrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
742 if (!AES_CCM_decrypt(buf, outbuf, authbuf, iv, tag, in aesni_cipher_crypt()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzio_crypt.c1125 zfs_uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, in zio_crypt_init_uios_zil() argument
1287 *authbuf = aadbuf; in zio_crypt_init_uios_zil()
1299 zfs_uio_t *puio, zfs_uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, in zio_crypt_init_uios_dnode() argument
1435 *authbuf = aadbuf; in zio_crypt_init_uios_dnode()
1475 uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) in zio_crypt_init_uios() argument
1485 datalen, byteswap, puio, cuio, enc_len, authbuf, auth_len, in zio_crypt_init_uios()
1490 cipherbuf, datalen, byteswap, puio, cuio, enc_len, authbuf, in zio_crypt_init_uios()
1496 *authbuf = NULL; in zio_crypt_init_uios()
1525 uint8_t *authbuf = NULL; in zio_do_crypt_data() local
1592 &authbuf, &auth_len, no_crypt); in zio_do_crypt_data()
[all …]