Detailed Description
This implements CRC32 algorithm. See ITU-T V.42 for the formal specification.
Function Documentation
Perform one-off CRC32 calculation to the specified data.
- Parameters:
-
| data | Input data. |
| nbytes | Length of input data. |
- Returns:
- CRC value of the data.
Finalize CRC32 calculation and retrieve the CRC32 value.
- Parameters:
-
- Returns:
- The current CRC value.
Initialize CRC32 context.
- Parameters:
-
Feed data incrementally to the CRC32 algorithm.
- Parameters:
-
| ctx | CRC32 context. |
| data | Input data. |
| nbytes | Length of the input data. |
- Returns:
- The current CRC32 value.