X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d889dacc9d6a45b41deca907042d97221a06e9a5..fd4f21b766a715303f0b1436c9970f5965e644dc:/client/util.c diff --git a/client/util.c b/client/util.c index 9b99cdf1..e4add6c0 100644 --- a/client/util.c +++ b/client/util.c @@ -498,6 +498,9 @@ void xor(unsigned char *dst, unsigned char *src, size_t len) { int32_t le24toh (uint8_t data[3]) { return (data[2] << 16) | (data[1] << 8) | data[0]; } +uint32_t le32toh (uint8_t *data) { + return (uint32_t)( (data[3]<<24) | (data[2]<<16) | (data[1]<<8) | data[0]); +} // RotateLeft - Ultralight, Desfire, works on byte level // 00-01-02 >> 01-02-00