Lines Matching refs:sectorsize
130 for (n = 0; o < wp->length; n++, o += sc->sectorsize) {
136 AES_decrypt(&ci, &ki, d, d, sc->sectorsize);
164 for (n = 0; o < wp->length; n++, o += sc->sectorsize) {
170 AES_encrypt(&ci, &ki, s, d, sc->sectorsize);
209 * sectorsize is far more likely to be in the same range.
211 for (o = 0; o < wp->length; o += sc->sectorsize) {
212 arc4rand(d, sc->sectorsize, 0);
215 AES_encrypt(&ci, &ki, d, d, sc->sectorsize);
216 d += sc->sectorsize;
285 wp->ko = (zoff / kp->sectorsize) * G_BDE_SKEYLEN;
314 ko = kp->lsector[u] & ~((uint64_t)kp->sectorsize - 1);
317 wp->kso += kp->sectorsize;
321 wp->so += kp->sectorsize;
343 KASSERT(wp->kso + kp->sectorsize <= kp->sectorN,
344 ("wp->kso (%jd) + kp->sectorsize > EOM (%jd), offset = %jd",