diff options
| author | 2015-05-29 21:31:52 +0000 | |
|---|---|---|
| committer | 2015-05-29 21:31:52 +0000 | |
| commit | 0189c6efed4f36db0661d827d998a49bc34ece12 (patch) | |
| tree | 84a66049f12d6a55fcbb88c897dabb7d7e6e5920 | |
| parent | 57e82aad718f42ea12292b5c063d2c2ea1538bc4 (diff) | |
| parent | dd78330140ad0e02fc693fc1f5bf041adcf64a1f (diff) | |
am dd783301: Merge "Add optional additional entropy to finish"
* commit 'dd78330140ad0e02fc693fc1f5bf041adcf64a1f':
Add optional additional entropy to finish
| -rw-r--r-- | core/java/android/security/IKeystoreService.aidl | 3 | ||||
| -rw-r--r-- | keystore/java/android/security/KeyStore.java | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/core/java/android/security/IKeystoreService.aidl b/core/java/android/security/IKeystoreService.aidl index 30ea8e7e81d3..4a0107ded8f8 100644 --- a/core/java/android/security/IKeystoreService.aidl +++ b/core/java/android/security/IKeystoreService.aidl @@ -67,7 +67,8 @@ interface IKeystoreService { OperationResult begin(IBinder appToken, String alias, int purpose, boolean pruneable, in KeymasterArguments params, in byte[] entropy, out KeymasterArguments operationParams); OperationResult update(IBinder token, in KeymasterArguments params, in byte[] input); - OperationResult finish(IBinder token, in KeymasterArguments params, in byte[] signature); + OperationResult finish(IBinder token, in KeymasterArguments params, in byte[] signature, + in byte[] entropy); int abort(IBinder handle); boolean isOperationAuthorized(IBinder token); int addAuthToken(in byte[] authToken); diff --git a/keystore/java/android/security/KeyStore.java b/keystore/java/android/security/KeyStore.java index 2558929632e3..c85c3a865412 100644 --- a/keystore/java/android/security/KeyStore.java +++ b/keystore/java/android/security/KeyStore.java @@ -474,15 +474,20 @@ public class KeyStore { } } - public OperationResult finish(IBinder token, KeymasterArguments arguments, byte[] signature) { + public OperationResult finish(IBinder token, KeymasterArguments arguments, byte[] signature, + byte[] entropy) { try { - return mBinder.finish(token, arguments, signature); + return mBinder.finish(token, arguments, signature, entropy); } catch (RemoteException e) { Log.w(TAG, "Cannot connect to keystore", e); return null; } } + public OperationResult finish(IBinder token, KeymasterArguments arguments, byte[] signature) { + return finish(token, arguments, signature, null); + } + public int abort(IBinder token) { try { return mBinder.abort(token); |