Lines Matching defs:whitening
120 u8 *whitening;
296 * In addition, whitening value is applied on every sector, whitening
569 kfree_sensitive(tcw->whitening);
570 tcw->whitening = NULL;
600 tcw->whitening = kzalloc(TCW_WHITENING_SIZE, GFP_KERNEL);
601 if (!tcw->iv_seed || !tcw->whitening) {
616 memcpy(tcw->whitening, &cc->key[key_offset + cc->iv_size],
627 memset(tcw->whitening, 0, TCW_WHITENING_SIZE);
642 /* xor whitening with sector number */
643 crypto_xor_cpy(buf, tcw->whitening, (u8 *)§or, 8);
644 crypto_xor_cpy(&buf[8], tcw->whitening + 8, (u8 *)§or, 8);
662 /* apply whitening (8 bytes) to whole sector */
679 /* Remove whitening from ciphertext */
706 /* Apply whitening on ciphertext */
2781 cc->key_parts += 2; /* IV + whitening */