fscrypt: don't clear flags on crypto transform
fscrypt is clearing the flags on the crypto_skcipher it allocates for each inode. But, this is unnecessary and may cause problems in the future because it will even clear flags that are meant to be internal to the crypto API, e.g. CRYPTO_TFM_NEED_KEY. Remove the unnecessary flag clearing. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
89b7fb8298
commit
52c51f7b7b
1 changed files with 0 additions and 1 deletions
|
@ -324,7 +324,6 @@ int fscrypt_get_encryption_info(struct inode *inode)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
crypt_info->ci_ctfm = ctfm;
|
crypt_info->ci_ctfm = ctfm;
|
||||||
crypto_skcipher_clear_flags(ctfm, ~0);
|
|
||||||
crypto_skcipher_set_flags(ctfm, CRYPTO_TFM_REQ_WEAK_KEY);
|
crypto_skcipher_set_flags(ctfm, CRYPTO_TFM_REQ_WEAK_KEY);
|
||||||
/*
|
/*
|
||||||
* if the provided key is longer than keysize, we use the first
|
* if the provided key is longer than keysize, we use the first
|
||||||
|
|
Loading…
Add table
Reference in a new issue