- decryption of sm apdu now working. verification of mac still missing.

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@71 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-04-12 21:22:39 +00:00
parent 535a2ea9f1
commit 985590c3a8
2 changed files with 38 additions and 14 deletions

View File

@@ -828,7 +828,7 @@ err:
int pace_test(sc_card_t *card)
{
__u8 in[16];
__u8 in[16], buf[SC_MAX_APDU_BUFFER_SIZE - 2];
__u8 *out = NULL;
size_t outlen;
struct sm_ctx sctx;
@@ -863,6 +863,8 @@ int pace_test(sc_card_t *card)
apdu.datalen = 2;
apdu.lc = apdu.datalen;
apdu.le = 0x00;
apdu.resp = buf;
apdu.resplen = sizeof buf;
apdu.cse = SC_APDU_CASE_4_SHORT;
SC_TEST_RET(card->ctx, pace_transmit_apdu(&sctx, card, &apdu),