hex-in

Results 12 comments of hex-in

> Is it possible to implement CRC-32 calculation of GSM32 like in this document: [link](https://www.etsi.org/deliver/etsi_ts/102300_102399/10236101/02.04.01_60/ts_10236101v020401p.pdf) page 140? OK, No problem.

> On MacOS, running python 3.10, `pip install libscrc` returns the following error: > > ```python > ERROR: Could not find a version that satisfies the requirement libscrc (from versions:...

> I get the exact same error when using the **python:3.10-alpine** docker image: > > ``` > ERROR: Could not find a version that satisfies the requirement libscrc (from versions:...

> I was able to clone this repo to build + install libscrc 1.8 on my python 3.10.3's version of python, so I think this might just be a pip...

> > Python 3.10 (or 3.9) using Docker container with Alpine (or Debian buster) - **Failed**: > > https://pastebin.com/3vXM6WiY > > Sorry. No gcc was installed. Below is a snippet...

> I get the exact same error when using the **python:3.10-alpine** docker image: > > ``` > ERROR: Could not find a version that satisfies the requirement libscrc (from versions:...

Please provide me with some data and the CRC32 results for this data. I want to verify the calculation results. Above, Thank you.

![image](https://github.com/hex-in/libscrc/assets/46981583/8539a14a-fa9d-4080-ab0f-e1c7588fb5ee) polynomial = 0x04C11DB7L

```python def crc32_gsm(data: bytes) -> int: # Generator polynomial POLY = 0x04C11DB7 # Initial remainder crc = 0x00000000 # Process each byte in the data for byte in data: crc...