Lines Matching defs:whitening
127 u8 *whitening;
303 * In addition, whitening value is applied on every sector, whitening
577 kfree_sensitive(tcw->whitening);
578 tcw->whitening = NULL;
608 tcw->whitening = kzalloc(TCW_WHITENING_SIZE, GFP_KERNEL);
609 if (!tcw->iv_seed || !tcw->whitening) {
624 memcpy(tcw->whitening, &cc->key[key_offset + cc->iv_size],
635 memset(tcw->whitening, 0, TCW_WHITENING_SIZE);
650 /* xor whitening with sector number */
651 crypto_xor_cpy(buf, tcw->whitening, (u8 *)§or, 8);
652 crypto_xor_cpy(&buf[8], tcw->whitening + 8, (u8 *)§or, 8);
670 /* apply whitening (8 bytes) to whole sector */
687 /* Remove whitening from ciphertext */
714 /* Apply whitening on ciphertext */
2868 cc->key_parts += 2; /* IV + whitening */