Home
last modified time | relevance | path

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

/drivers/md/
Ddm-crypt.c172 unsigned int iv_size; member
315 memset(iv, 0, cc->iv_size); in crypt_iv_plain_gen()
324 memset(iv, 0, cc->iv_size); in crypt_iv_plain64_gen()
333 memset(iv, 0, cc->iv_size); in crypt_iv_plain64be_gen()
335 *(__be64 *)&iv[cc->iv_size - sizeof(u64)] = cpu_to_be64(dmreq->iv_sector); in crypt_iv_plain64be_gen()
347 memset(iv, 0, cc->iv_size); in crypt_iv_essiv_gen()
392 memset(iv, 0, cc->iv_size - sizeof(u64)); /* rest is cleared below */ in crypt_iv_benbi_gen()
395 put_unaligned(val, (__be64 *)(iv + cc->iv_size - sizeof(u64))); in crypt_iv_benbi_gen()
403 memset(iv, 0, cc->iv_size); in crypt_iv_null_gen()
519 memcpy(iv, &md5state.hash, cc->iv_size); in crypt_iv_lmk_one()
[all …]
/drivers/crypto/keembay/
Dkeembay-ocs-aes-core.c259 int iv_size = crypto_skcipher_ivsize(tfm); in kmb_ocs_sk_validate_input() local
275 if (!req->iv || iv_size != AES_BLOCK_SIZE) in kmb_ocs_sk_validate_input()
286 if (!req->iv || iv_size != AES_BLOCK_SIZE) in kmb_ocs_sk_validate_input()
296 if (!req->iv || iv_size != AES_BLOCK_SIZE) in kmb_ocs_sk_validate_input()
406 int iv_size = crypto_skcipher_ivsize(tfm); in kmb_ocs_sk_prepare_inplace() local
418 req->cryptlen - iv_size, iv_size, 0); in kmb_ocs_sk_prepare_inplace()
523 int iv_size = crypto_skcipher_ivsize(tfm); in kmb_ocs_sk_run() local
554 req->cryptlen, req->iv, iv_size); in kmb_ocs_sk_run()
574 req->cryptlen - iv_size, in kmb_ocs_sk_run()
575 iv_size, 0); in kmb_ocs_sk_run()
[all …]
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()
Docs-aes.h78 u32 iv_size);
/drivers/s390/cio/
Dairq.c116 static inline unsigned long iv_size(unsigned long bits) in iv_size() function
138 size = iv_size(bits); in airq_iv_create()
208 cio_dma_free(iv->vector, iv_size(iv->bits)); in airq_iv_release()
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1339 u32 iv_size = req->ctx->c_ctx.ivsize; in sec_update_iv() local
1359 sz = sg_pcopy_to_buffer(sgl, sg_nents(sgl), iv, iv_size, in sec_update_iv()
1360 cryptlen - iv_size); in sec_update_iv()
1361 if (unlikely(sz != iv_size)) in sec_update_iv()
1364 sz = cryptlen / iv_size; in sec_update_iv()
1365 if (cryptlen % iv_size) in sec_update_iv()
1367 ctr_iv_inc(iv, iv_size, sz); in sec_update_iv()
2101 sec_max_key_size, ctx_init, ctx_exit, blk_size, iv_size)\ argument
2121 .ivsize = iv_size,\
2125 max_key_size, blk_size, iv_size) \ argument
[all …]
/drivers/crypto/
Dsa2ul.c107 u8 iv_size; member
584 if (cfg->iv_size) in sa_format_cmdl_gen()
585 auth_offset += cfg->iv_size; in sa_format_cmdl_gen()
600 if (cfg->iv_size) { in sa_format_cmdl_gen()
604 upd_info->enc_iv.size = cfg->iv_size; in sa_format_cmdl_gen()
607 SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size; in sa_format_cmdl_gen()
610 (SA_CTX_ENC_AUX2_OFFSET | (cfg->iv_size >> 3)); in sa_format_cmdl_gen()
611 total += SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size; in sa_format_cmdl_gen()
902 cfg.iv_size = crypto_skcipher_ivsize(tfm); in sa_cipher_setkey()
1466 cfg.iv_size = 0; in sa_sha_setup()
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.h50 u32 iv_size; member
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()