diff --git a/NEWS b/NEWS index c17e0a0..03f6dfb 100644 --- a/NEWS +++ b/NEWS @@ -55,6 +55,7 @@ API Changes see API documentation - nfc_target_init() have an additional argument: nfc_target_t to describe the wanted target + - append_iso14443a_crc() was renamed to iso14443a_crc_append() - New iso14443a_locate_historical_bytes() to locate historical bytes in ATS diff --git a/examples/nfc-anticol.c b/examples/nfc-anticol.c index 7b2eb58..d890c6a 100644 --- a/examples/nfc-anticol.c +++ b/examples/nfc-anticol.c @@ -204,7 +204,7 @@ main (int argc, char *argv[]) //Prepare and send CL1 Select-Command memcpy (abtSelectTag + 2, abtRx, 5); - append_iso14443a_crc (abtSelectTag, 7); + iso14443a_crc_append (abtSelectTag, 7); transmit_bytes (abtSelectTag, 9); abtSak = abtRx[0]; @@ -237,7 +237,7 @@ main (int argc, char *argv[]) // Selection abtSelectTag[0] = 0x95; memcpy (abtSelectTag + 2, abtRx, 5); - append_iso14443a_crc (abtSelectTag, 7); + iso14443a_crc_append (abtSelectTag, 7); transmit_bytes (abtSelectTag, 9); abtSak = abtRx[0]; @@ -268,7 +268,7 @@ main (int argc, char *argv[]) // Prepare and send final Select-Command abtSelectTag[0] = 0x97; memcpy (abtSelectTag + 2, abtRx, 5); - append_iso14443a_crc (abtSelectTag, 7); + iso14443a_crc_append (abtSelectTag, 7); transmit_bytes (abtSelectTag, 9); abtSak = abtRx[0]; } @@ -276,12 +276,12 @@ main (int argc, char *argv[]) // Request ATS, this only applies to tags that support ISO 14443A-4 if (abtRx[0] & SAK_FLAG_ATS_SUPPORTED) { - append_iso14443a_crc(abtRats, 2); + iso14443a_crc_append(abtRats, 2); transmit_bytes (abtRats, 4); } // Done, halt the tag now - append_iso14443a_crc(abtHalt, 2); + iso14443a_crc_append(abtHalt, 2); transmit_bytes (abtHalt, 4); printf ("\nFound tag with\n UID: "); diff --git a/include/nfc/nfc.h b/include/nfc/nfc.h index 0910a9a..6dea5e0 100644 --- a/include/nfc/nfc.h +++ b/include/nfc/nfc.h @@ -106,7 +106,7 @@ extern "C" { /* Misc. functions */ NFC_EXPORT void iso14443a_crc (byte_t * pbtData, size_t szLen, byte_t * pbtCrc); - NFC_EXPORT void append_iso14443a_crc (byte_t * pbtData, size_t szLen); + NFC_EXPORT void iso14443a_crc_append (byte_t * pbtData, size_t szLen); NFC_EXPORT byte_t * iso14443a_locate_historical_bytes (byte_t * pbtAts, size_t szAts, size_t * pszTk); NFC_EXPORT const char *nfc_version (void); diff --git a/libnfc/iso14443-subr.c b/libnfc/iso14443-subr.c index 032c57a..b97bd71 100644 --- a/libnfc/iso14443-subr.c +++ b/libnfc/iso14443-subr.c @@ -48,7 +48,7 @@ iso14443a_crc (byte_t * pbtData, size_t szLen, byte_t * pbtCrc) } void -append_iso14443a_crc (byte_t * pbtData, size_t szLen) +iso14443a_crc_append (byte_t * pbtData, size_t szLen) { iso14443a_crc (pbtData, szLen, pbtData + szLen); }