if (key_size != LENGTH_EC_FP_256)
ISOException.throwIt(key_size);
This is non-standard behavior that violates ISO7816. For instance, when I send the following APDU to the card, the response will be 9000 (= command correct). However, this command is invalid (wrong length).
The problem is in the following code snippet:
This is non-standard behavior that violates
ISO7816
. For instance, when I send the followingAPDU
to the card, the response will be9000
(= command correct). However, this command is invalid (wrong length).