summaryrefslogtreecommitdiffstats
path: root/core/java/android/security
diff options
context:
space:
mode:
authorChad Brubaker <cbrubaker@google.com>2015-05-29 12:32:51 -0700
committerChad Brubaker <cbrubaker@google.com>2015-06-04 10:06:00 -0700
commit8a07701f3817ad0b76b82cfc464868e8f57e359d (patch)
treedc91789c92d2253d39d0d9dd5d79ce30e2d589b5 /core/java/android/security
parent85f4b7b38cedddfb0ed9f57555fb81aceca786ac (diff)
downloadframeworks_base-8a07701f3817ad0b76b82cfc464868e8f57e359d.zip
frameworks_base-8a07701f3817ad0b76b82cfc464868e8f57e359d.tar.gz
frameworks_base-8a07701f3817ad0b76b82cfc464868e8f57e359d.tar.bz2
Add optional additional entropy to finish
If provided the extra entropy will be added to the device before calling finish. If entropy is provided and the device does not support supplying additional entropy then finish will fail with KM_ERROR_UNIMPLEMENTED. (cherry-picked from commit 9ce30624a448f439e19960d0dd88103c04676e7d) Change-Id: If26be118bf382604f6f8e96e833b76e6f9e94d58
Diffstat (limited to 'core/java/android/security')
-rw-r--r--core/java/android/security/IKeystoreService.aidl3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/security/IKeystoreService.aidl b/core/java/android/security/IKeystoreService.aidl
index 2097d5a..409542d 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);
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);