Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c233 uint_t keydata_len; in zio_crypt_key_init() local
244 keydata_len = zio_crypt_table[crypt].ci_keylen; in zio_crypt_key_init()
253 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init()
266 ret = hkdf_sha512(key->zk_master_keydata, keydata_len, NULL, 0, in zio_crypt_key_init()
268 keydata_len); in zio_crypt_key_init()
274 key->zk_current_key.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_crypt_key_init()
307 uint_t keydata_len = zio_crypt_table[key->zk_crypt].ci_keylen; in zio_crypt_key_change_salt() local
321 ret = hkdf_sha512(key->zk_master_keydata, keydata_len, NULL, 0, in zio_crypt_key_change_salt()
322 salt, ZIO_DATA_SALT_LEN, key->zk_current_keydata, keydata_len); in zio_crypt_key_change_salt()
435 uint_t enc_len, keydata_len, aad_len; in zio_crypt_key_wrap() local
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c227 uint_t keydata_len; in zio_crypt_key_init() local
244 keydata_len = zio_crypt_table[crypt].ci_keylen; in zio_crypt_key_init()
258 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init()
271 ret = hkdf_sha512(key->zk_master_keydata, keydata_len, NULL, 0, in zio_crypt_key_init()
273 keydata_len); in zio_crypt_key_init()
279 key->zk_current_key.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_crypt_key_init()
317 uint_t keydata_len = zio_crypt_table[key->zk_crypt].ci_keylen; in zio_crypt_key_change_salt() local
331 ret = hkdf_sha512(key->zk_master_keydata, keydata_len, NULL, 0, in zio_crypt_key_change_salt()
332 salt, ZIO_DATA_SALT_LEN, key->zk_current_keydata, keydata_len); in zio_crypt_key_change_salt()
496 uint_t enc_len, keydata_len, aad_len; in zio_crypt_key_wrap() local
[all …]
/freebsd/sys/crypto/ccp/
H A Dccp_hardware.c1474 size_t keydata_len; in ccp_do_blkcipher() local
1523 keydata_len = 0; in ccp_do_blkcipher()
1542 keydata_len = s->blkcipher.key_len; in ccp_do_blkcipher()
1546 INSECURE_DEBUG(dev, "%s: KEY(%zu): %16D\n", __func__, keydata_len, in ccp_do_blkcipher()
1552 ccp_byteswap(keydata, keydata_len); in ccp_do_blkcipher()
1566 keydata_len / 2); in ccp_do_blkcipher()
1571 keydata + (keydata_len / 2), keydata_len / 2); in ccp_do_blkcipher()
1574 if (keydata_len == 32) { in ccp_do_blkcipher()
1579 keydata_len / 2, g_zeroes, keydata_len / 2); in ccp_do_blkcipher()
1584 keydata_len / 2, g_zeroes, keydata_len / 2); in ccp_do_blkcipher()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dwnm_ap.c177 mgmt->u.action.u.wnm_sleep_resp.keydata_len = 0; in ieee802_11_send_wnmsleep_resp()
203 &mgmt->u.action.u.wnm_sleep_resp.keydata_len, in ieee802_11_send_wnmsleep_resp()
/freebsd/contrib/wpa/src/common/
H A Dieee802_11_defs.h1097 le16 keydata_len; member