android_kernel_xiaomi_sm8450/fs/crypto
Barani Muthukumaran d739474ec2 ANDROID: block: provide key size as input to inline crypto APIs
Currently, blk-crypto uses the algorithm to determine the size of keys.
However, some inline encryption hardware supports protecting keys from
software by wrapping the storage keys with an ephemeral key.  Since
these wrapped keys are not of a fixed size, add the capability to
provide the key size when initializing a blk_crypto_key, and update the
keyslot manager to take size into account when comparing keys.

Bug: 147209885

Change-Id: I9bf26d06d18a2d671c51111b4896abe4df303988
Co-developed-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: Barani Muthukumaran <bmuthuku@codeaurora.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-01-20 22:50:14 +00:00
..
bio.c FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
crypto.c FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
fname.c FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
fscrypt_private.h FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
hkdf.c fscrypt: add an HKDF-SHA512 implementation 2019-08-12 19:18:50 -07:00
hooks.c fscrypt: make fscrypt_msg() take inode instead of super_block 2019-08-12 19:04:44 -07:00
inline_crypt.c ANDROID: block: provide key size as input to inline crypto APIs 2020-01-20 22:50:14 +00:00
Kconfig FROMLIST: fscrypt: add inline encryption support 2019-10-30 22:01:39 +00:00
keyring.c FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
keysetup_v1.c FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
keysetup.c FROMLIST: Update Inline Encryption from v5 to v6 of patch series 2020-01-13 07:12:15 -08:00
Makefile FROMLIST: fscrypt: add inline encryption support 2019-10-30 22:01:39 +00:00
policy.c fscrypt: add support for IV_INO_LBLK_64 policies 2019-11-06 12:34:36 -08:00