Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2d53e79 authored by Eran Messeri's avatar Eran Messeri Committed by Automerger Merge Worker
Browse files

Merge "KeyMint: Document KeyCharacteristics" am: 30a6b0e7 am: cd489e35 am: 24129594

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1736773

Change-Id: Ia3b606456a93840cc0eb547d2c8b8f29b88aa9b9
parents d9c1f600 24129594
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -32,6 +32,17 @@ import android.hardware.security.keymint.SecurityLevel;
 */
@VintfStability
parcelable KeyCharacteristics {
    /**
     * The security level enforcing this collection of key properties.
     */
    SecurityLevel securityLevel = SecurityLevel.SOFTWARE;

    /**
     * `authorizations` is a list of key properties that are enforced at this security level.
     * A key can have different properties enforced by components of different security levels.
     * For example, some properties are provided by the operating system, which has a
     * different security level to the IKeyMintDevice.
     * See the `keyCharacteristics` field in `KeyCreationResult` for more details.
     */
    KeyParameter[] authorizations;
}