Skip to content

Commit

Permalink
bump pairing slot count to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgamma committed Feb 12, 2025
1 parent 146c049 commit 793c8ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/im/status/keycard/KeycardApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class KeycardApplet extends Applet {
static final byte PIN_LENGTH = 6;
static final byte DEFAULT_PIN_MAX_RETRIES = 3;
static final byte KEY_PATH_MAX_DEPTH = 10;
static final byte PAIRING_MAX_CLIENT_COUNT = 5;
static final byte PAIRING_MAX_CLIENT_COUNT = 100;
static final byte UID_LENGTH = 16;
static final byte MAX_DATA_LENGTH = 127;

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/im/status/keycard/KeycardTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void unpairTest() throws Exception {
}

// Wrong P1
response = cmdSet.unpair((byte) 5);
response = cmdSet.unpair(KeycardApplet.PAIRING_MAX_CLIENT_COUNT);
assertEquals(0x6A86, response.getSw());

// Unpair spare keyset
Expand Down

0 comments on commit 793c8ee

Please sign in to comment.