diff options
author | Eran Messeri <eranm@google.com> | 2018-03-26 16:43:14 +0100 |
---|---|---|
committer | Eran Messeri <eranm@google.com> | 2018-03-29 10:58:20 +0100 |
commit | 6169239b942fc2f6e8721b219f84b506c106fbe1 (patch) | |
tree | 9826db736692e5d9d870117d4b4be68e770c6fce /keystore/java/android/security/IKeyChainService.aidl | |
parent | 3a5dabbb10861a5cea627936c56693550345b9a8 (diff) |
Utilize verbose KeyChain errors
As KeyChain reports detailed error codes about failure to generate keys
or attestation records for them, log these detailed errors and throw an
exception if the hardware does not support Device ID attestation.
Bug: 72642093
Bug: 73448533
Test: cts-tradefed run commandAndExit cts-dev -s 127.0.0.1:50487 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ib12efcf48c158373e1fc28cc51d67e70282d029e
Diffstat (limited to 'keystore/java/android/security/IKeyChainService.aidl')
-rw-r--r-- | keystore/java/android/security/IKeyChainService.aidl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystore/java/android/security/IKeyChainService.aidl b/keystore/java/android/security/IKeyChainService.aidl index 5a8fa0700328..0d32075d20d2 100644 --- a/keystore/java/android/security/IKeyChainService.aidl +++ b/keystore/java/android/security/IKeyChainService.aidl @@ -33,8 +33,8 @@ interface IKeyChainService { boolean isUserSelectable(String alias); void setUserSelectable(String alias, boolean isUserSelectable); - boolean generateKeyPair(in String algorithm, in ParcelableKeyGenParameterSpec spec); - boolean attestKey(in String alias, in byte[] challenge, in int[] idAttestationFlags, + int generateKeyPair(in String algorithm, in ParcelableKeyGenParameterSpec spec); + int attestKey(in String alias, in byte[] challenge, in int[] idAttestationFlags, out KeymasterCertificateChain chain); boolean setKeyPairCertificate(String alias, in byte[] userCert, in byte[] certChain); |