AKIS can handle bigger data blocks, but that causes GET_RESPONSE calls.

So for a 300 byte file, this saves one transaction (244 + 56) instead of
(244 + 11 + 45).


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3273 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
gurer 2007-09-23 10:19:43 +00:00
parent 780b4afe8a
commit 4dd4d52921
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ akis_init(sc_card_t *card)
card->name = "AKIS";
card->cla = 0x00;
card->max_pin_len = 16;
if (card->max_recv_size > 244)
card->max_recv_size = 244;
flags = SC_ALGORITHM_RSA_RAW | SC_ALGORITHM_RSA_PAD_PKCS1;
_sc_card_add_rsa_alg(card, 2048, flags, 0);