X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ae6ead3dc84acd074be24c0da5efd94ea7a0b225..2ce218042d2aebdfa4c5a58f19e6550f367c5d81:/common/crc32.c diff --git a/common/crc32.c b/common/crc32.c index 69d770f4..176c3c8f 100644 --- a/common/crc32.c +++ b/common/crc32.c @@ -1,11 +1,8 @@ -#include -#include #include "crc32.h" #define htole32(x) (x) #define CRC32_PRESET 0xFFFFFFFF - static void crc32_byte (uint32_t *crc, const uint8_t value); static void crc32_byte (uint32_t *crc, const uint8_t value) { @@ -21,7 +18,7 @@ static void crc32_byte (uint32_t *crc, const uint8_t value) { } } -void crc32 (const uint8_t *data, const size_t len, uint8_t *crc) { +void crc32_ex (const uint8_t *data, const size_t len, uint8_t *crc) { uint32_t desfire_crc = CRC32_PRESET; for (size_t i = 0; i < len; i++) { crc32_byte (&desfire_crc, data[i]); @@ -31,5 +28,5 @@ void crc32 (const uint8_t *data, const size_t len, uint8_t *crc) { } void crc32_append (uint8_t *data, const size_t len) { - crc32 (data, len, data + len); -} + crc32_ex (data, len, data + len); +} \ No newline at end of file