Home
last modified time | relevance | path

Searched refs:CRYPTO_BYTES2BITS (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dhkdf.c33 key.ck_length = CRYPTO_BYTES2BITS(salt_len); in hkdf_sha512_extract()
56 key.ck_length = CRYPTO_BYTES2BITS(SHA512_DIGEST_LENGTH); in hkdf_sha512_expand()
H A Dzio_crypt.c275 key->zk_current_key.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_crypt_key_init()
278 key->zk_hmac_key.ck_length = CRYPTO_BYTES2BITS(SHA512_HMAC_KEYLEN); in zio_crypt_key_init()
585 key->zk_current_key.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_crypt_key_unwrap()
588 key->zk_hmac_key.ck_length = CRYPTO_BYTES2BITS(SHA512_HMAC_KEYLEN); in zio_crypt_key_unwrap()
1736 tmp_ckey.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_do_crypt_data()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dhkdf.c40 key.ck_length = CRYPTO_BYTES2BITS(salt_len); in hkdf_sha512_extract()
86 key.ck_length = CRYPTO_BYTES2BITS(SHA512_DIGEST_LENGTH); in hkdf_sha512_expand()
H A Ddsl_crypt.c123 wkey->wk_key.ck_length = CRYPTO_BYTES2BITS(WRAPPING_KEY_LEN); in dsl_wrapping_key_create()
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dfreebsd_crypto.h47 #define CRYPTO_BYTES2BITS(n) ((n) << 3) macro
/freebsd/sys/contrib/openzfs/include/sys/crypto/
H A Dcommon.h121 #define CRYPTO_BYTES2BITS(n) ((n) << 3) macro
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/
H A Dgcm.c264 htonll(CRYPTO_BYTES2BITS(ctx->gcm_processed_data_len)); in gcm_encrypt_final()
435 ctx->gcm_len_a_len_c[1] = htonll(CRYPTO_BYTES2BITS(pt_len)); in gcm_decrypt_final()
523 len_a_len_c[1] = htonll(CRYPTO_BYTES2BITS(iv_len)); in gcm_format_initial_blocks()
620 = htonll(CRYPTO_BYTES2BITS(gcm_param->ulAADLen)); in gcm_init_ctx()
1274 htonll(CRYPTO_BYTES2BITS(ctx->gcm_processed_data_len)); in gcm_encrypt_final_avx()
1385 ctx->gcm_len_a_len_c[1] = htonll(CRYPTO_BYTES2BITS(pt_len)); in gcm_decrypt_final_avx()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c280 key->zk_current_key.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_crypt_key_init()
283 key->zk_hmac_key.ck_length = CRYPTO_BYTES2BITS(SHA512_HMAC_KEYLEN); in zio_crypt_key_init()
445 gcmp.ulIvBits = CRYPTO_BYTES2BITS(ZIO_DATA_IV_LEN); in zio_do_crypt_uio()
448 gcmp.ulTagBits = CRYPTO_BYTES2BITS(maclen); in zio_do_crypt_uio()
627 key->zk_current_key.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_crypt_key_unwrap()
630 key->zk_hmac_key.ck_length = CRYPTO_BYTES2BITS(SHA512_HMAC_KEYLEN); in zio_crypt_key_unwrap()
1953 tmp_ckey.ck_length = CRYPTO_BYTES2BITS(keydata_len); in zio_do_crypt_data()