Skip to content

Commit 5022adb

Browse files
Fixes to qhelp example
1 parent 7185286 commit 5022adb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/src/Security/CWE/CWE-287/AndroidInsecureLocalAuthenticationGood.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ private Cipher getCipher() {
2626
+ KeyProperties.ENCRYPTION_PADDING_PKCS7);
2727
}
2828

29-
public prompt() {
29+
public prompt(byte[] encryptedData) {
3030
Cipher cipher = getCipher();
3131
SecretKey secretKey = getSecretKey();
3232
cipher.init(Cipher.DECRYPT_MODE, secretKey);
3333

3434
biometricPrompt.authenticate(
35-
new BiometricPrompt.CryptoObject(cipher);
35+
new BiometricPrompt.CryptoObject(cipher),
3636
cancellationSignal,
3737
executor,
38-
new BiometricPrompt.AuthenticationCallback {
38+
new BiometricPrompt.AuthenticationCallback() {
3939
@Override
4040
// GOOD: This authentication callback uses the result to decrypt some data.
4141
public void onAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result) {

0 commit comments

Comments
 (0)