Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/md/
Ddm-crypt.c157 unsigned int iv_size; member
293 memset(iv, 0, cc->iv_size); in crypt_iv_plain_gen()
302 memset(iv, 0, cc->iv_size); in crypt_iv_plain64_gen()
311 memset(iv, 0, cc->iv_size); in crypt_iv_plain64be_gen()
313 *(__be64 *)&iv[cc->iv_size - sizeof(u64)] = cpu_to_be64(dmreq->iv_sector); in crypt_iv_plain64be_gen()
325 memset(iv, 0, cc->iv_size); in crypt_iv_essiv_gen()
364 memset(iv, 0, cc->iv_size - sizeof(u64)); /* rest is cleared below */ in crypt_iv_benbi_gen()
367 put_unaligned(val, (__be64 *)(iv + cc->iv_size - sizeof(u64))); in crypt_iv_benbi_gen()
375 memset(iv, 0, cc->iv_size); in crypt_iv_null_gen()
490 memcpy(iv, &md5state.hash, cc->iv_size); in crypt_iv_lmk_one()
[all …]
/Linux-v5.4/include/net/
Dtls.h242 u16 iv_size; member
497 prot->iv_size); in tls_advance_record_sn()
507 size_t pkt_len, iv_size = prot->iv_size; in tls_fill_prepend() local
511 pkt_len += iv_size; in tls_fill_prepend()
514 ctx->tx.iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, iv_size); in tls_fill_prepend()
/Linux-v5.4/drivers/s390/cio/
Dairq.c120 static inline unsigned long iv_size(unsigned long bits) in iv_size() function
142 size = iv_size(bits); in airq_iv_create()
212 cio_dma_free(iv->vector, iv_size(iv->bits)); in airq_iv_release()
/Linux-v5.4/net/tls/
Dtls_device.c888 u16 nonce_size, tag_size, iv_size, rec_seq_size; in tls_set_device_offload() local
926 iv_size = TLS_CIPHER_AES_GCM_128_IV_SIZE; in tls_set_device_offload()
948 prot->iv_size = iv_size; in tls_set_device_offload()
949 ctx->tx.iv = kmalloc(iv_size + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in tls_set_device_offload()
956 memcpy(ctx->tx.iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, iv, iv_size); in tls_set_device_offload()
Dtls_sw.c499 prot->iv_size + prot->salt_size); in tls_do_encryption()
1415 prot->iv_size); in decrypt_internal()
2000 cipher_overhead += prot->iv_size; in tls_read_size()
2217 u16 nonce_size, tag_size, iv_size, rec_seq_size, salt_size; in tls_set_sw_offload() local
2274 iv_size = TLS_CIPHER_AES_GCM_128_IV_SIZE; in tls_set_sw_offload()
2291 iv_size = TLS_CIPHER_AES_GCM_256_IV_SIZE; in tls_set_sw_offload()
2308 iv_size = TLS_CIPHER_AES_CCM_128_IV_SIZE; in tls_set_sw_offload()
2328 if (iv_size > MAX_IV_SIZE || nonce_size > MAX_IV_SIZE || in tls_set_sw_offload()
2349 prot->iv_size = iv_size; in tls_set_sw_offload()
2351 cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL); in tls_set_sw_offload()
[all …]