Skip to content

Unwise to change key number on failure #4

@joseluu

Description

@joseluu

In file NfcUtils.java around line 79, the software allocates a new key in case of failure when using the currently selected key.

This does not fit with the current user interface, as the newKeyIndex is not shown nor reflected by the user's choice from the UI.
So if the card reader, misreads or mistransmits the APDU or if the user gesture with the card is too fast, then another key is used, another address is shown at the user interface without the ability to know it and reach it for subsequent transactions.

I removed the if (e.getSw1Sw2() == SW_KEY_WITH_IDX_NOT_AVAILABLE) { ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions