Skip to content

Commit 6fc9e3a

Browse files
committed
Clear forcePinChange on, you know, PNI change
1 parent dc5da82 commit 6fc9e3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@ private byte[] fullyReadReq(APDU apdu, short lc, short amtRead, boolean forceBuf
492492
*/
493493
private short getMapEntryCount(APDU apdu, byte cborMapDeclaration) {
494494
short sb = ub(cborMapDeclaration);
495-
if (sb < 0xA0 || sb > 0xB7) {
495+
if (sb < 0x00A0 || sb > 0x00B7) {
496496
sendErrorByte(apdu, FIDOConstants.CTAP2_ERR_CBOR_UNEXPECTED_TYPE);
497497
}
498-
return (short)(sb - 0xA0);
498+
return (short)(sb - 0x00A0);
499499
}
500500

501501
/**
@@ -6490,6 +6490,7 @@ private void rawSetPIN(APDU apdu, byte[] pinBuf, short offset, short pinLength)
64906490

64916491
highSecurityWrappingKey.clearKey();
64926492
pinWrapKey.clearKey();
6493+
forcePinChange = false;
64936494

64946495
forceInitKeyAgreementKey();
64956496

0 commit comments

Comments
 (0)