Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4857d701 authored by Ellen Arteca's avatar Ellen Arteca Committed by Gerrit Code Review
Browse files

Merge "Mitigate LSKF leaks in RecoverableKeyStoreManager" into main

parents 548ee385 562ea603
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1082,7 +1082,8 @@ public class RecoverableKeyStoreManager {
            int keyguardCredentialsType = lockPatternUtilsToKeyguardType(savedCredentialType);
            try (LockscreenCredential credential =
                    createLockscreenCredential(keyguardCredentialsType, decryptedCredentials)) {
                // TODO(b/254335492): remove decryptedCredentials
                Arrays.fill(decryptedCredentials, (byte) 0);
                decryptedCredentials = null;
                VerifyCredentialResponse verifyResponse =
                        lockSettingsService.verifyCredential(credential, userId, 0);
                return handleVerifyCredentialResponse(verifyResponse, userId);