Home
last modified time | relevance | path

Searched refs:salt_size (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/fs/verity/
Denable.c203 if (arg->salt_size && in enable_verity()
205 arg->salt_size)) { in enable_verity()
209 desc->salt_size = arg->salt_size; in enable_verity()
226 desc->salt, desc->salt_size); in enable_verity()
337 if (arg.salt_size > sizeof_field(struct fsverity_descriptor, salt)) in fsverity_ioctl_enable()
Dhash_algs.c112 const u8 *salt, size_t salt_size) in fsverity_prepare_hash_state() argument
122 if (salt_size == 0) in fsverity_prepare_hash_state()
136 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state()
142 memcpy(padded_salt, salt, salt_size); in fsverity_prepare_hash_state()
Dopen.c33 const u8 *salt, size_t salt_size) in fsverity_init_merkle_tree_params() argument
51 salt_size); in fsverity_init_merkle_tree_params()
194 desc->salt, desc->salt_size); in fsverity_create_info()
300 if (desc->salt_size > sizeof(desc->salt)) { in validate_fsverity_descriptor()
301 fsverity_err(inode, "Invalid salt_size: %u", desc->salt_size); in validate_fsverity_descriptor()
Dfsverity_private.h84 const u8 *salt, size_t salt_size);
118 const u8 *salt, size_t salt_size);
/linux-6.12.1/include/uapi/linux/
Dfsverity.h23 __u32 salt_size; member
51 __u8 salt_size; /* size of salt in bytes; 0 if none */ member
/linux-6.12.1/drivers/md/
Ddm-verity-target.c163 if (likely(v->salt_size && (v->version >= 1))) in verity_ahash_init()
164 r = verity_ahash_update(v, req, v->salt, v->salt_size, wait); in verity_ahash_init()
174 if (unlikely(v->salt_size && (!v->version))) { in verity_ahash_final()
175 r = verity_ahash_update(v, req, v->salt, v->salt_size, wait); in verity_ahash_final()
828 if (!v->salt_size) in verity_status()
831 for (x = 0; x < v->salt_size; x++) in verity_status()
904 if (!v->salt_size) in verity_status()
907 for (x = 0; x < v->salt_size; x++) in verity_status()
1337 v->salt_size = strlen(arg) / 2; in verity_setup_salt_and_hashstate()
1338 v->salt = kmalloc(v->salt_size, GFP_KERNEL); in verity_setup_salt_and_hashstate()
[all …]
Ddm-verity.h52 unsigned int salt_size; member
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c258 int ck_size, key_ctx_size, kctx_mackey_size, salt_size; in chtls_key_info() local
278 salt_size = TLS_CIPHER_AES_GCM_128_SALT_SIZE; in chtls_key_info()
291 salt_size = TLS_CIPHER_AES_GCM_256_SALT_SIZE; in chtls_key_info()
327 memcpy(kctx->salt, salt, salt_size); in chtls_key_info()
/linux-6.12.1/fs/fuse/
Dioctl.c148 if (enable.salt_size > max_buffer_len || enable.sig_size > max_buffer_len) in fuse_setup_enable_verity()
151 if (enable.salt_size > 0) { in fuse_setup_enable_verity()
156 iov->iov_len = enable.salt_size; in fuse_setup_enable_verity()
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.h53 u32 salt_size; member
Dchcr_ktls.c88 tx_info->salt_size = TLS_CIPHER_AES_GCM_128_SALT_SIZE; in chcr_ktls_save_keys()
159 memcpy(kctx->salt, salt, tx_info->salt_size); in chcr_ktls_save_keys()
1418 memcpy(pos, tx_info->key_ctx.salt, tx_info->salt_size); in chcr_ktls_xmit_wr_short()
1419 memcpy(pos + tx_info->salt_size, &iv_record, tx_info->iv_size); in chcr_ktls_xmit_wr_short()
1420 *(__be32 *)(pos + tx_info->salt_size + tx_info->iv_size) = in chcr_ktls_xmit_wr_short()
/linux-6.12.1/net/tls/
Dtls.h315 tls_bigint_increment(ctx->iv + prot->salt_size, in tls_advance_record_sn()
344 ctx->tx.iv + prot->salt_size, iv_size); in tls_fill_prepend()
Dtls_sw.c558 prot->iv_size + prot->salt_size); in tls_do_encryption()
1544 prot->iv_size + prot->salt_size); in tls_decrypt_sg()
1547 &dctx->iv[iv_offset] + prot->salt_size, in tls_decrypt_sg()
1551 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, prot->salt_size); in tls_decrypt_sg()
2681 prot->salt_size = cipher_desc->salt; in init_prot_info()
/linux-6.12.1/include/net/
Dtls.h212 u16 salt_size; member
/linux-6.12.1/drivers/net/phy/
Dnxp-c45-tja11xx-macsec.c494 u32 salt_size = MACSEC_SALT_LEN / 4; in nxp_c45_sa_set_key() local
507 for (i = 0; i < salt_size; i++) { in nxp_c45_sa_set_key()
/linux-6.12.1/Documentation/filesystems/
Dfsverity.rst116 __u32 salt_size;
136 - ``salt_size`` is the size of the salt in bytes, or 0 if no salt is
439 __u8 salt_size; /* size of salt in bytes; 0 if none */
/linux-6.12.1/fs/btrfs/
Dsend.c5179 le8_to_cpu(desc->salt_size)); in send_verity()