Hi, in r4668 the APDU validity condition 'apdu->le > 256' was replaced by 'apdu->le > card->max_recv_size'.
It's comprehensible but revealed the ambiguity of the 'max_recv_size'. The unique card's max_recv_size cannot be used to validate all the APDUs of card. For example, not all the cards accept Le = 256 for the 'READ BINARY' command, but the same card returns 256 bytes of the signature with RSA key 2048bit. My question is, should the test 'apdu->le > card->max_recv_size' be removed from the APDU validity control, or in each card driver, that can be sensible to this problem, the (for ex.) 'compute_signature' command have to enveloped by change/restore of 'max_recv_size' . Kind wishes, Viktor. -- Viktor Tarasov <viktor.tara...@opentrust.com> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel