Skip to content

Commit 95a139f

Browse files
committed
Avoid some unnecessary decryption ops
1 parent 985d8eb commit 95a139f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/us/q3q/fido2/FIDO2Applet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ private boolean checkCredential(byte[] credentialBuffer, short credentialIndex,
27452745

27462746
boolean matches = false;
27472747

2748-
if (allowHighSecurity) {
2748+
if (allowHighSecurity && (!pinSet || transientStorage.getPinProtocolInUse() != 0)) {
27492749
extractCredentialMixed(credentialBuffer, credentialIndex,
27502750
outputBuffer, outputOffset,
27512751
rkNum, false);

0 commit comments

Comments
 (0)