Home
last modified time | relevance | path

Searched refs:iv_size (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/drivers/md/
H A Ddm-crypt.c178 unsigned int iv_size; member
321 memset(iv, 0, cc->iv_size); in crypt_iv_plain_gen()
330 memset(iv, 0, cc->iv_size); in crypt_iv_plain64_gen()
339 memset(iv, 0, cc->iv_size); in crypt_iv_plain64be_gen()
341 *(__be64 *)&iv[cc->iv_size - sizeof(u64)] = cpu_to_be64(dmreq->iv_sector); in crypt_iv_plain64be_gen()
353 memset(iv, 0, cc->iv_size); in crypt_iv_essiv_gen()
399 memset(iv, 0, cc->iv_size - sizeof(u64)); /* rest is cleared below */ in crypt_iv_benbi_gen()
402 put_unaligned(val, (__be64 *)(iv + cc->iv_size - sizeof(u64))); in crypt_iv_benbi_gen()
410 memset(iv, 0, cc->iv_size); in crypt_iv_null_gen()
526 memcpy(iv, &md5state.hash, cc->iv_size); in crypt_iv_lmk_one()
[all …]
/openbmc/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-aes-core.c256 int iv_size = crypto_skcipher_ivsize(tfm); in kmb_ocs_sk_validate_input() local
272 if (!req->iv || iv_size != AES_BLOCK_SIZE) in kmb_ocs_sk_validate_input()
283 if (!req->iv || iv_size != AES_BLOCK_SIZE) in kmb_ocs_sk_validate_input()
293 if (!req->iv || iv_size != AES_BLOCK_SIZE) in kmb_ocs_sk_validate_input()
403 int iv_size = crypto_skcipher_ivsize(tfm); in kmb_ocs_sk_prepare_inplace() local
415 req->cryptlen - iv_size, iv_size, 0); in kmb_ocs_sk_prepare_inplace()
520 int iv_size = crypto_skcipher_ivsize(tfm); in kmb_ocs_sk_run() local
551 req->cryptlen, req->iv, iv_size); in kmb_ocs_sk_run()
571 req->cryptlen - iv_size, in kmb_ocs_sk_run()
572 iv_size, 0); in kmb_ocs_sk_run()
[all …]
H A Docs-aes.c601 const u8 *iv, u32 iv_size, in ocs_aes_validate_inputs() argument
664 if (!iv || iv_size != AES_BLOCK_SIZE) in ocs_aes_validate_inputs()
680 if (!iv || iv_size != AES_BLOCK_SIZE) in ocs_aes_validate_inputs()
696 if (!iv || iv_size != AES_BLOCK_SIZE) in ocs_aes_validate_inputs()
703 if (!iv || iv_size != GCM_AES_IV_SIZE) in ocs_aes_validate_inputs()
730 if (!iv || iv_size != AES_BLOCK_SIZE) in ocs_aes_validate_inputs()
804 u32 iv_size) in ocs_aes_op() argument
809 rc = ocs_aes_validate_inputs(src_dma_list, src_size, iv, iv_size, 0, 0, in ocs_aes_op()
H A Docs-aes.h78 u32 iv_size);
/openbmc/linux/net/tls/
H A Dtls.h313 prot->iv_size); in tls_advance_record_sn()
333 size_t pkt_len, iv_size = prot->iv_size; in tls_fill_prepend() local
338 pkt_len += iv_size; in tls_fill_prepend()
341 ctx->tx.iv + prot->salt_size, iv_size); in tls_fill_prepend()
H A Dtls_sw.c558 prot->iv_size + prot->salt_size); in tls_do_encryption()
1544 prot->iv_size + prot->salt_size); in tls_decrypt_sg()
1548 prot->iv_size); in tls_decrypt_sg()
2390 cipher_overhead += prot->iv_size; in tls_rx_msg_size()
2734 prot->iv_size = cipher_desc->iv; in tls_set_sw_offload()
H A Dtls_device.c1096 prot->iv_size = cipher_desc->iv; in tls_set_device_offload()
/openbmc/linux/drivers/s390/cio/
H A Dairq.c114 static inline unsigned long iv_size(unsigned long bits) in iv_size() function
138 size = iv_size(bits); in airq_iv_create()
210 cio_dma_free(iv->vector, iv_size(iv->bits)); in airq_iv_release()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ih.c290 uint32_t iv_size = 32; in amdgpu_ih_decode_iv_ts_helper() local
294 rptr += iv_size * offset; in amdgpu_ih_decode_iv_ts_helper()
/openbmc/u-boot/arch/arm/mach-exynos/
H A Dclock_init.h110 unsigned iv_size; member
H A Dclock_init_exynos5.c213 .iv_size = 0x7,
316 .iv_size = 0x7,
419 .iv_size = 0x7,
H A Ddmc_init_ddr3.c108 writel(mem->iv_size, &dmc->ivcontrol); in ddr3_mem_ctrl_init()
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.h50 u32 iv_size; member
H A Dchcr_ktls.c89 tx_info->iv_size = TLS_CIPHER_AES_GCM_128_IV_SIZE; in chcr_ktls_save_keys()
1187 cipher_start = TLS_HEADER_SIZE + tx_info->iv_size + 1; in chcr_ktls_xmit_wr_complete()
1366 (!tls_rec_offset ? TLS_HEADER_SIZE + tx_info->iv_size : 0); 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()
1426 (TLS_HEADER_SIZE + tx_info->iv_size)) / AES_BLOCK_LEN) : 0)); in chcr_ktls_xmit_wr_short()
1806 if (tls_rec_offset + data_len <= (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler()
1824 if (tls_rec_offset < (TLS_HEADER_SIZE + tx_info->iv_size)) { in chcr_short_record_handler()
1831 (TLS_HEADER_SIZE + tx_info->iv_size)) in chcr_short_record_handler()
/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1381 u32 iv_size = req->ctx->c_ctx.ivsize; in ctr_iv_inc()
1401 sz = sg_pcopy_to_buffer(sgl, sg_nents(sgl), iv, iv_size, in sec_update_iv()
1402 cryptlen - iv_size); in sec_update_iv()
1403 if (unlikely(sz != iv_size)) in sec_update_iv()
1406 sz = cryptlen / iv_size; in sec_update_iv()
1407 if (cryptlen % iv_size) in sec_update_iv()
1409 ctr_iv_inc(iv, iv_size, sz); in sec_update_iv()
2149 sec_max_key_size, ctx_init, ctx_exit, blk_size, iv_size)\
2168 .ivsize = iv_size,\
2172 max_key_size, blk_size, iv_size) \
1393 u32 iv_size = req->ctx->c_ctx.ivsize; sec_update_iv() local
2150 SEC_SKCIPHER_GEN_ALG(sec_cra_name,sec_set_key,sec_min_key_size,sec_max_key_size,ctx_init,ctx_exit,blk_size,iv_size) global() argument
2173 SEC_SKCIPHER_ALG(name,key_func,min_key_size,max_key_size,blk_size,iv_size) global() argument
2415 SEC_AEAD_ALG(sec_cra_name,sec_set_key,ctx_init,ctx_exit,blk_size,iv_size,max_authsize) global() argument
[all...]
/openbmc/linux/drivers/crypto/
H A Dsa2ul.c108 u8 iv_size; member
585 if (cfg->iv_size) in sa_format_cmdl_gen()
586 auth_offset += cfg->iv_size; in sa_format_cmdl_gen()
601 if (cfg->iv_size) { in sa_format_cmdl_gen()
605 upd_info->enc_iv.size = cfg->iv_size; in sa_format_cmdl_gen()
608 SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size; in sa_format_cmdl_gen()
611 (SA_CTX_ENC_AUX2_OFFSET | (cfg->iv_size >> 3)); in sa_format_cmdl_gen()
612 total += SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size; in sa_format_cmdl_gen()
903 cfg.iv_size = crypto_skcipher_ivsize(tfm); in sa_cipher_setkey()
1467 cfg.iv_size = 0; in sa_sha_setup()
[all …]
/openbmc/linux/include/net/
H A Dtls.h213 u16 iv_size; member
/openbmc/linux/net/tipc/
H A Dcrypto.c690 unsigned int iv_size, req_size; in tipc_aead_mem_alloc() local
694 iv_size = crypto_aead_ivsize(tfm); in tipc_aead_mem_alloc()
698 len += iv_size; in tipc_aead_mem_alloc()
711 *req = (struct aead_request *)PTR_ALIGN(*iv + iv_size, in tipc_aead_mem_alloc()
/openbmc/linux/fs/smb/client/
H A Dsmb2ops.c4141 unsigned int iv_size = crypto_aead_ivsize(tfm); in smb2_aead_req_alloc()
4149 len = iv_size; in smb2_aead_req_alloc()
4162 *req = (struct aead_request *)PTR_ALIGN(*iv + iv_size, in smb2_aead_req_alloc()
4140 unsigned int iv_size = crypto_aead_ivsize(tfm); smb2_aead_req_alloc() local