Fix operation auth bound keys.
CryptoObject still called the legacy AndroidKeystoreProvider which did
not return the correct operation handle for per operation auth bound
keys.
Bug: 184804041
Bug: 185181377
Test: CtsVerifier->Security->Biometric Tests->2a Strong Biometrics +
Crypto
Merged-In: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
Change-Id: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
This commit is contained in:
@@ -18,7 +18,7 @@ package android.hardware.biometrics;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.security.identity.IdentityCredential;
|
||||
import android.security.keystore.AndroidKeyStoreProvider;
|
||||
import android.security.keystore2.AndroidKeyStoreProvider;
|
||||
|
||||
import java.security.Signature;
|
||||
|
||||
|
||||
@@ -62,10 +62,8 @@ public class AndroidKeyStoreProvider extends Provider {
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static long getKeyStoreOperationHandle(Object cryptoPrimitive) {
|
||||
if (cryptoPrimitive == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
return 0;
|
||||
return android.security.keystore2.AndroidKeyStoreProvider
|
||||
.getKeyStoreOperationHandle(cryptoPrimitive);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user