Lines Matching defs:sector

60 	sector_t sector;
194 * plain: the initial vector is the 32-bit little-endian version of the sector
197 * plain64: the initial vector is the 64-bit little-endian version of the sector
200 * essiv: "encrypted sector|salt initial vector", the sector number is
214 * with an IV derived from the sector number, the data and
217 * of sector must be tweaked according to decrypted data.
228 * with an IV derived from initial key and the sector number.
229 * In addition, whitening value is applied on every sector, whitening
230 * is calculated from initial key, sector number and mixed using CRC32.
419 /* we need to calculate how far we must shift the sector count
601 /* Tweak the first block of plaintext sector */
677 u64 sector = cpu_to_le64((u64)dmreq->iv_sector);
682 /* xor whitening with sector number */
684 crypto_xor(buf, (u8 *)&sector, 8);
685 crypto_xor(&buf[8], (u8 *)&sector, 8);
704 /* apply whitening (8 bytes) to whole sector */
716 u64 sector = cpu_to_le64((u64)dmreq->iv_sector);
729 crypto_xor(iv, (u8 *)&sector, 8);
731 crypto_xor(&iv[8], (u8 *)&sector, cc->iv_size - 8);
800 sector_t sector)
808 ctx->cc_sector = sector + cc->iv_offset;
1017 struct bio *bio, sector_t sector)
1021 io->sector = sector;
1135 clone->bi_iter.bi_sector = cc->start + io->sector;
1183 clone->bi_iter.bi_sector = cc->start + io->sector;
1199 sector_t sector = io->sector;
1206 crypt_convert_init(cc, &io->ctx, NULL, io->base_bio, sector);
1223 sector += bio_sectors(clone);
1244 io->sector = sector;
1260 crypt_io_init(new_io, io->cc, io->base_bio, sector);
1263 io->base_bio, sector);
1298 io->sector);
1597 /* at least a 64 bit sector number should fit in our buffer */
1763 ti->error = "Invalid iv_offset sector";
1774 ti->error = "Invalid device sector";