/linux-6.3-rc2/fs/verity/ |
A D | enable.c | 201 if (arg->salt_size && in enable_verity() 203 arg->salt_size)) { in enable_verity() 207 desc->salt_size = arg->salt_size; in enable_verity() 224 desc->salt, desc->salt_size); in enable_verity() 335 if (arg.salt_size > sizeof_field(struct fsverity_descriptor, salt)) in fsverity_ioctl_enable()
|
A D | open.c | 33 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() 301 if (desc->salt_size > sizeof(desc->salt)) { in validate_fsverity_descriptor() 302 fsverity_err(inode, "Invalid salt_size: %u", desc->salt_size); in validate_fsverity_descriptor()
|
A D | hash_algs.c | 159 const u8 *salt, size_t salt_size) in fsverity_prepare_hash_state() argument 169 if (salt_size == 0) in fsverity_prepare_hash_state() 186 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state() 192 memcpy(padded_salt, salt, salt_size); in fsverity_prepare_hash_state()
|
A D | fsverity_private.h | 93 const u8 *salt, size_t salt_size); 118 const u8 *salt, size_t salt_size);
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | fsverity.h | 23 __u32 salt_size; member 51 __u8 salt_size; /* size of salt in bytes; 0 if none */ member
|
/linux-6.3-rc2/drivers/md/ |
A D | dm-verity-target.c | 154 if (likely(v->salt_size && (v->version >= 1))) in verity_hash_init() 155 r = verity_hash_update(v, req, v->salt, v->salt_size, wait); in verity_hash_init() 165 if (unlikely(v->salt_size && (!v->version))) { in verity_hash_final() 819 if (!v->salt_size) in verity_status() 822 for (x = 0; x < v->salt_size; x++) in verity_status() 880 if (!v->salt_size) in verity_status() 883 for (x = 0; x < v->salt_size; x++) in verity_status() 1319 v->salt_size = strlen(argv[9]) / 2; in verity_ctr() 1320 v->salt = kmalloc(v->salt_size, GFP_KERNEL); in verity_ctr() 1326 if (strlen(argv[9]) != v->salt_size * 2 || in verity_ctr() [all …]
|
A D | dm-verity.h | 45 unsigned int salt_size; member
|
/linux-6.3-rc2/net/tls/ |
A D | tls_sw.c | 521 prot->iv_size + prot->salt_size); in tls_do_encryption() 1538 prot->iv_size + prot->salt_size); in tls_decrypt_sg() 1541 &dctx->iv[iv_offset] + prot->salt_size, in tls_decrypt_sg() 2576 salt_size = TLS_CIPHER_AES_GCM_128_SALT_SIZE; in tls_set_sw_offload() 2593 salt_size = TLS_CIPHER_AES_GCM_256_SALT_SIZE; in tls_set_sw_offload() 2610 salt_size = TLS_CIPHER_AES_CCM_128_SALT_SIZE; in tls_set_sw_offload() 2644 salt_size = TLS_CIPHER_SM4_GCM_SALT_SIZE; in tls_set_sw_offload() 2661 salt_size = TLS_CIPHER_SM4_CCM_SALT_SIZE; in tls_set_sw_offload() 2728 prot->salt_size = salt_size; in tls_set_sw_offload() 2736 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload() [all …]
|
A D | tls.h | 259 tls_bigint_increment(ctx->iv + prot->salt_size, in tls_advance_record_sn() 288 ctx->tx.iv + prot->salt_size, iv_size); in tls_fill_prepend()
|
A D | tls_device.c | 1140 prot->salt_size = cipher_sz->salt; in tls_set_device_offload()
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
A D | chtls_hw.c | 258 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.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
A D | chcr_ktls.h | 53 u32 salt_size; member
|
A D | chcr_ktls.c | 87 tx_info->salt_size = TLS_CIPHER_AES_GCM_128_SALT_SIZE; in chcr_ktls_save_keys() 158 memcpy(kctx->salt, salt, tx_info->salt_size); in chcr_ktls_save_keys() 1422 memcpy(pos, tx_info->key_ctx.salt, tx_info->salt_size); in chcr_ktls_xmit_wr_short() 1423 memcpy(pos + tx_info->salt_size, &iv_record, tx_info->iv_size); in chcr_ktls_xmit_wr_short() 1424 *(__be32 *)(pos + tx_info->salt_size + tx_info->iv_size) = in chcr_ktls_xmit_wr_short()
|
/linux-6.3-rc2/include/net/ |
A D | tls.h | 229 u16 salt_size; member
|
/linux-6.3-rc2/Documentation/filesystems/ |
A D | fsverity.rst | 105 __u32 salt_size; 126 - ``salt_size`` is the size of the salt in bytes, or 0 if no salt is 425 __u8 salt_size; /* size of salt in bytes; 0 if none */
|
/linux-6.3-rc2/fs/btrfs/ |
A D | send.c | 5151 le8_to_cpu(desc->salt_size)); in send_verity()
|