We need to check for AES being in 128-cbc mode and not 256-cbc.
fscrypt supports only 128-cbc and 256-xts so far.
Signed-off-by: Richard Weinberger <richard@nod.at>
Tested-by: Heiko Schocher <hsdenx.de>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
iv.index = cpu_to_le64(block_index);
memset(iv.padding, 0, sizeof(iv.padding));
- if (cipher == EVP_aes_256_cbc()) {
+ if (cipher == EVP_aes_128_cbc()) {
tweak = alloca(ivsize);
gen_essiv_salt(&iv, FS_IV_SIZE, key, key_len, tweak);
} else {