Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7185286 commit 5022adbCopy full SHA for 5022adb
1 file changed
java/ql/src/Security/CWE/CWE-287/AndroidInsecureLocalAuthenticationGood.java
@@ -26,16 +26,16 @@ private Cipher getCipher() {
26
+ KeyProperties.ENCRYPTION_PADDING_PKCS7);
27
}
28
29
-public prompt() {
+public prompt(byte[] encryptedData) {
30
Cipher cipher = getCipher();
31
SecretKey secretKey = getSecretKey();
32
cipher.init(Cipher.DECRYPT_MODE, secretKey);
33
34
biometricPrompt.authenticate(
35
- new BiometricPrompt.CryptoObject(cipher);
+ new BiometricPrompt.CryptoObject(cipher),
36
cancellationSignal,
37
executor,
38
- new BiometricPrompt.AuthenticationCallback {
+ new BiometricPrompt.AuthenticationCallback() {
39
@Override
40
// GOOD: This authentication callback uses the result to decrypt some data.
41
public void onAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result) {
0 commit comments