The T0 byte must not be included in the TCK calculation (ISO/IEC 7816-3

chapter 6.4.5)
This commit is contained in:
kristerw 2000-02-12 22:40:12 +00:00
parent fc8ea8f0c5
commit 8ff64870d4
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: scr.c,v 1.4 1998/07/04 22:18:20 jonathan Exp $ */
/* $NetBSD: scr.c,v 1.5 2000/02/12 22:40:12 kristerw Exp $ */
/*
* Copyright 1997
@ -2898,7 +2898,7 @@ static void ATRSM (struct scr_softc * sc,int cmd)
}
else
{
tck = sc->pIoctlOn->atrBuf[0];
tck = 0;
for (lc = 1; lc < sc->pIoctlOn->atrLen-1; lc++)
{
tck ^= sc->pIoctlOn->atrBuf[lc];