Merge pull request #2685 from open-keychain/fix_changing_admin_key__issue_2684

Don't explicitly clear PIN when verifying admin PIN
This commit is contained in:
Dominik Schürmann
2021-04-03 14:29:07 +02:00
committed by GitHub

View File

@@ -414,7 +414,6 @@ public class SecurityTokenConnection {
// delete secrets from memory
Arrays.fill(pin, (byte) 0);
Arrays.fill(transformedPin, (byte) 0);
adminPin.removeFromMemory();
ResponseApdu response = communicate(verifyPw3Command);
if (!response.isSuccess()) {