From d2c944bc4d057a48840a8ece436e4c43d569e90b Mon Sep 17 00:00:00 2001 From: Janis Danisevskis Date: Mon, 5 Oct 2020 14:33:34 -0700 Subject: Keystore SPI: Add SecurityLevelEnum to KeyProperties This patch adds the SecurityLevelEnum to KeyProperties. This enum can be used by the public API surface to express levels of enforcements of key properties. And to select a designated residence for a newly generated or imported key. The values UNKNOWN and UNKNOWN_SECURE are used to convey to older target APIs API levels that have not been defined when they where published. Test: None Change-Id: I88681f21b8a8ea9a383d32ba99f3ab7d7c8909c3 --- api/current.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index c2e75cd14968..560b5f6c5cb0 100644 --- a/api/current.txt +++ b/api/current.txt @@ -42868,6 +42868,11 @@ package android.security.keystore { field public static final int PURPOSE_SIGN = 4; // 0x4 field public static final int PURPOSE_VERIFY = 8; // 0x8 field public static final int PURPOSE_WRAP_KEY = 32; // 0x20 + field public static final int SECURITY_LEVEL_SOFTWARE = 0; // 0x0 + field public static final int SECURITY_LEVEL_STRONGBOX = 2; // 0x2 + field public static final int SECURITY_LEVEL_TRUSTED_ENVIRONMENT = 1; // 0x1 + field public static final int SECURITY_LEVEL_UNKNOWN = -2; // 0xfffffffe + field public static final int SECURITY_LEVEL_UNKNOWN_SECURE = -1; // 0xffffffff field public static final String SIGNATURE_PADDING_RSA_PKCS1 = "PKCS1"; field public static final String SIGNATURE_PADDING_RSA_PSS = "PSS"; } -- cgit v1.2.3