s|append_iso14443a_crc|iso14443a_crc_append|.

This commit is contained in:
Romain Tartiere 2010-10-29 11:07:22 +00:00
parent 8dac813e53
commit 7278740a03
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ AC_CHECK_LIB([crypto], [DES_ecb_encrypt], [], [AC_MSG_ERROR([Cannot find libcryp
AC_CHECK_HEADER([openssl/des.h], [], [AC_MSG_ERROR([Cannot find openssl headers.])])
# Checks for pkg-config modules.
LIBNFC_REQUIRED_VERSION=1.3.9
LIBNFC_REQUIRED_VERSION="1.4.0"
PKG_CHECK_MODULES([LIBNFC], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.])])
PKG_CONFIG_REQUIRES="libnfc"

View file

@ -142,7 +142,7 @@ mifare_cryto_preprocess_data (MifareTag tag, void *data, size_t *nbytes, int com
// Fill in the crypto buffer with data ...
memcpy (res, data, *nbytes);
// ... CRC ...
append_iso14443a_crc (res, *nbytes);
iso14443a_crc_append (res, *nbytes);
// ... and 0 padding
bzero ((uint8_t *)(res) + *nbytes + 2, edl - *nbytes - 2);