diff options
author | Max Bires <jbires@google.com> | 2018-11-02 10:45:12 -0700 |
---|---|---|
committer | Max Bires <jbires@google.com> | 2019-02-10 23:36:23 +0000 |
commit | 6669421021d127235734a4e13afd830da78c687d (patch) | |
tree | 0ff226be1e0210e192196d5832a174c87860f8be /keystore/include | |
parent | fe2a27d9a92784e6ee3e3a3e18c1d89ab220f22f (diff) | |
download | security-6669421021d127235734a4e13afd830da78c687d.tar.gz |
Adding KEY_PERMANENTLY_INVALIDATED to ResponseCode
This response code needs to be added in the condition where a super
encrypted key blob fails to be read in after a user changes their pin.
Currently, the error code being sent back is VALUE_CORRUPTED, which is
incorrect.
Bug: 118883532
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/AuthBoundKeyTest.java
Change-Id: I188948e6e2e66903ee259108db9b8d26d11ca92c
Merged-In: I188948e6e2e66903ee259108db9b8d26d11ca92c
Diffstat (limited to 'keystore/include')
-rw-r--r-- | keystore/include/keystore/keystore.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keystore/include/keystore/keystore.h b/keystore/include/keystore/keystore.h index a1d4c812..3aed8c2f 100644 --- a/keystore/include/keystore/keystore.h +++ b/keystore/include/keystore/keystore.h @@ -44,6 +44,7 @@ enum class ResponseCode : int32_t { SIGNATURE_INVALID = 14, OP_AUTH_NEEDED = 15, // Auth is needed for this operation before it can be used. KEY_ALREADY_EXISTS = 16, + KEY_PERMANENTLY_INVALIDATED = 17, }; /* |