Searched refs:iv_size (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/md/ |
D | dm-crypt.c | 164 unsigned int iv_size; member 301 memset(iv, 0, cc->iv_size); in crypt_iv_plain_gen() 310 memset(iv, 0, cc->iv_size); in crypt_iv_plain64_gen() 319 memset(iv, 0, cc->iv_size); in crypt_iv_plain64be_gen() 321 *(__be64 *)&iv[cc->iv_size - sizeof(u64)] = cpu_to_be64(dmreq->iv_sector); in crypt_iv_plain64be_gen() 386 if (crypto_cipher_blocksize(essiv_tfm) != cc->iv_size) { in alloc_essiv_cipher() 475 memset(iv, 0, cc->iv_size); in crypt_iv_essiv_gen() 515 memset(iv, 0, cc->iv_size - sizeof(u64)); /* rest is cleared below */ in crypt_iv_benbi_gen() 518 put_unaligned(val, (__be64 *)(iv + cc->iv_size - sizeof(u64))); in crypt_iv_benbi_gen() 526 memset(iv, 0, cc->iv_size); in crypt_iv_null_gen() [all …]
|
/Linux-v4.19/include/net/ |
D | tls.h | 168 u16 iv_size; member 353 ctx->iv_size); in tls_advance_record_sn() 361 size_t pkt_len, iv_size = ctx->tx.iv_size; in tls_fill_prepend() local 363 pkt_len = plaintext_len + iv_size + ctx->tx.tag_size; in tls_fill_prepend() 375 ctx->tx.iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, iv_size); in tls_fill_prepend()
|
/Linux-v4.19/net/tls/ |
D | tls_sw.c | 724 tls_ctx->rx.iv_size); in decrypt_internal() 1055 cipher_overhead = tls_ctx->rx.tag_size + tls_ctx->rx.iv_size; in tls_read_size() 1154 u16 nonce_size, tag_size, iv_size, rec_seq_size; in tls_set_sw_offload() local 1205 iv_size = TLS_CIPHER_AES_GCM_128_IV_SIZE; in tls_set_sw_offload() 1220 if (iv_size > MAX_IV_SIZE || nonce_size > MAX_IV_SIZE) { in tls_set_sw_offload() 1228 cctx->iv_size = iv_size; in tls_set_sw_offload() 1229 cctx->iv = kmalloc(iv_size + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in tls_set_sw_offload() 1236 memcpy(cctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, iv, iv_size); in tls_set_sw_offload()
|
D | tls_device.c | 659 u16 nonce_size, tag_size, iv_size, rec_seq_size; in tls_set_device_offload() local 694 iv_size = TLS_CIPHER_AES_GCM_128_IV_SIZE; in tls_set_device_offload() 708 ctx->tx.iv_size = iv_size; in tls_set_device_offload() 709 ctx->tx.iv = kmalloc(iv_size + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in tls_set_device_offload() 716 memcpy(ctx->tx.iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, iv, iv_size); in tls_set_device_offload()
|