Home
last modified time | relevance | path

Searched refs:iv_offset (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.h83 u64 iv_offset:8; member
87 u64 iv_offset:8;
148 u64 iv_offset:8; member
152 u64 iv_offset:8;
H A Dotx_cptvf_algs.c924 rctx->ctrl_word.e.iv_offset = req->assoclen - AES_GCM_IV_OFFSET; in create_aead_ctx_hdr()
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.h74 u64 iv_offset:8; member
78 u64 iv_offset:8;
137 u64 iv_offset:8; member
141 u64 iv_offset:8;
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c158 int iv_offset; in mlx5e_ipsec_set_iv_esn() local
171 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv_esn()
172 skb_store_bits(skb, iv_offset, &seqno, 8); in mlx5e_ipsec_set_iv_esn()
178 int iv_offset; in mlx5e_ipsec_set_iv() local
183 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv()
184 skb_store_bits(skb, iv_offset, &seqno, 8); in mlx5e_ipsec_set_iv()
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00crypto.c53 txdesc->iv_offset = txdesc->header_length; in rt2x00crypto_create_tx_descriptor()
99 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_copy_iv()
110 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
113 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); in rt2x00crypto_tx_remove_iv()
H A Drt2x00queue.h324 u16 iv_offset; member
H A Drt2500usb.c1085 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt2500usb_write_tx_desc()
H A Drt73usb.c1485 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt73usb_write_tx_desc()
H A Drt61pci.c1791 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc()
/linux/drivers/md/
H A Ddm-inlinecrypt.c45 u64 iv_offset; member
361 if (sscanf(argv[2], "%llu%c", &ctx->iv_offset, &dummy) != 1) { in inlinecrypt_ctr()
398 if (ctx->iv_offset & ((ctx->sector_size >> SECTOR_SHIFT) - 1)) { in inlinecrypt_ctr()
404 ctx->max_dun = (ctx->iv_offset + ti->len - 1) >> in inlinecrypt_ctr()
469 dun[0] = ctx->iv_offset + sector_in_target; /* 512-byte sectors */ in inlinecrypt_map()
527 ctx->key_type, ctx->iv_offset, in inlinecrypt_status()
H A Ddm-crypt.c183 u64 iv_offset; member
1202 ctx->cc_sector = sector + cc->iv_offset; in iv_of_dmreq()
1295 *sector = cpu_to_le64(ctx->cc_sector - cc->iv_offset); in crypt_convert_block_aead()
1400 *sector = cpu_to_le64(ctx->cc_sector - cc->iv_offset); in crypt_convert_block_skcipher()
3206 * <cipher> [<key>|:<key_size>:<user|logon>:<key_description>] <iv_offset> <dev_path> <start> in crypt_ctr()
3324 ti->error = "Invalid iv_offset sector"; in crypt_ctr()
3327 cc->iv_offset = tmpll; in crypt_ctr()
3563 DMEMIT(" %llu %s %llu", (unsigned long long)cc->iv_offset, in crypt_status()
/linux/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.h58 u64 iv_offset:8; member
62 u64 iv_offset:8;
/linux/net/tls/
H A Dtls_sw.c551 int rc, iv_offset = 0; in tls_do_encryption()
557 iv_offset = 1; in tls_do_encryption()
561 iv_offset = 1; in tls_do_encryption()
565 memcpy(&rec->iv_data[iv_offset], tls_ctx->tx.iv, in tls_do_encryption()
568 tls_xor_iv_with_seq(prot, rec->iv_data + iv_offset, in tls_do_encryption()
1291 int iv_offset = 0; in tls_decrypt_sg()
1344 iv_offset = 1; in tls_decrypt_sg()
1348 iv_offset = 1; in tls_decrypt_sg()
1355 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, in tls_decrypt_sg()
1359 &dctx->iv[iv_offset] in tls_decrypt_sg()
544 int rc, iv_offset = 0; tls_do_encryption() local
1283 int iv_offset = 0; tls_decrypt_sg() local
[all...]
H A Dtls.h61 unsigned int iv_offset; member
85 return (char *)crypto_info + cipher_desc->iv_offset; in crypto_info_iv()
H A Dtls_main.c70 .iv_offset = offsetof(struct ci, iv), \
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_aead.c23 u16 iv_offset : 8; member
27 u16 iv_offset : 8;
168 param3.iv_offset = 0; in nitrox_set_creq()
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-crypt.rst13 <cipher> <key> <iv_offset> <device path> \
81 <iv_offset>
183 The <iv_offset> must be multiple of <sector_size> (in 512 bytes units)
/linux/drivers/net/
H A Dmacsec.c580 size_t size, iv_offset, sg_offset; in macsec_alloc_req()
585 iv_offset = size; in macsec_alloc_req()
596 *iv = (unsigned char *)(tmp + iv_offset);
572 size_t size, iv_offset, sg_offset; macsec_alloc_req() local