summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2015-06-03 05:21:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-03 05:22:02 +0000
commit56396c7f5b54d165b46969ea3152abbb23cf792f (patch)
treee2fe365536f492750d0097ef3208884f4100cc66 /core
parentd49288352908e8cbc9a001e13df2eb35e78deb1a (diff)
parent966486e134c901ea61195b352fdd81476b3639b4 (diff)
downloadframeworks_base-56396c7f5b54d165b46969ea3152abbb23cf792f.zip
frameworks_base-56396c7f5b54d165b46969ea3152abbb23cf792f.tar.gz
frameworks_base-56396c7f5b54d165b46969ea3152abbb23cf792f.tar.bz2
Merge "Track changes to the keystore binder API" into mnc-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/security/IKeystoreService.aidl2
-rw-r--r--core/java/android/security/keymaster/OperationResult.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/security/IKeystoreService.aidl b/core/java/android/security/IKeystoreService.aidl
index 30ea8e7..2097d5a 100644
--- a/core/java/android/security/IKeystoreService.aidl
+++ b/core/java/android/security/IKeystoreService.aidl
@@ -65,7 +65,7 @@ interface IKeystoreService {
ExportResult exportKey(String alias, int format, in KeymasterBlob clientId,
in KeymasterBlob appId);
OperationResult begin(IBinder appToken, String alias, int purpose, boolean pruneable,
- in KeymasterArguments params, in byte[] entropy, out KeymasterArguments operationParams);
+ 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);
int abort(IBinder handle);
diff --git a/core/java/android/security/keymaster/OperationResult.java b/core/java/android/security/keymaster/OperationResult.java
index 9b46ad3..911a05a 100644
--- a/core/java/android/security/keymaster/OperationResult.java
+++ b/core/java/android/security/keymaster/OperationResult.java
@@ -31,6 +31,7 @@ public class OperationResult implements Parcelable {
public final long operationHandle;
public final int inputConsumed;
public final byte[] output;
+ public final KeymasterArguments outParams;
public static final Parcelable.Creator<OperationResult> CREATOR = new
Parcelable.Creator<OperationResult>() {
@@ -49,6 +50,7 @@ public class OperationResult implements Parcelable {
operationHandle = in.readLong();
inputConsumed = in.readInt();
output = in.createByteArray();
+ outParams = KeymasterArguments.CREATOR.createFromParcel(in);
}
@Override
@@ -63,5 +65,6 @@ public class OperationResult implements Parcelable {
out.writeLong(operationHandle);
out.writeInt(inputConsumed);
out.writeByteArray(output);
+ outParams.writeToParcel(out, flags);
}
}