OSDN Git Service

vold: Wrapped key support for metadata encryption
authorBarani Muthukumaran <quic_bmuthuku@quicinc.com>
Fri, 7 Feb 2020 06:56:27 +0000 (22:56 -0800)
committerPaul Crowley <paulcrowley@google.com>
Tue, 18 Feb 2020 20:51:06 +0000 (12:51 -0800)
commit312b7df62158254a89df6cbf7d1ee3b146477511
tree80de85a8b84cbfdf3332683cf8aad1ac10fde6f5
parent249c2fb4aa970e43cde7a5e4032506c40c8e9a0e
vold: Wrapped key support for metadata encryption

metadata_encryption fstab option provides details on the cipher
and flags used for metadata encryption. wrappedkey_v0 is provided
to dm-default-key dm device when a wrapped key is used. The
inline encryption hardware unwraps the key and derives the
encryption key used to encrypt metadata without returning the key
in the clear to software.

Bug: 147733587
Test: FBE with metadata encryption using wrapped keys.
Change-Id: Ibf69bdc12bb18d2f0aef8208e65f3a8dececfd2a
MetadataCrypt.cpp