diff options
Diffstat (limited to 'fw/crc.py')
-rw-r--r-- | fw/crc.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fw/crc.py b/fw/crc.py deleted file mode 100644 index 043c6e9..0000000 --- a/fw/crc.py +++ /dev/null @@ -1,8 +0,0 @@ -import ctypes -import os -lib = ctypes.CDLL(os.path.join(os.path.dirname(__file__), '_crc.so')) -lib.crc32.restype = ctypes.c_uint32 -def crc(data): - if type(data) is not bytes: - raise TypeError('This only works with bytes') - return lib.crc32(data, len(data)) |