Files
swift/test
Tim Burke b65855d715 utils: Add CRCHasher and crc32c implementation
A new CRCHasher class wraps crc functions to mimic the hashlib
hasher interface.

For crc32, use the zlib implementation.

For crc32c, use ISA-L if we can find it; on py38+ this includes the
ISA-L bundled in pyeclib's binary wheels.

If ISA-L is not available, check for kernel crypto API support for crc32c;
use it if available. Otherwise, raise a NotImplementedError.

No callers yet, but these will be used by s3api in a later patch.

Change-Id: Ic0c55e307ce10b56b569c9fee728c445a2300cbd
2025-05-13 12:37:35 -07:00
..
2025-05-13 12:37:35 -07:00
2025-03-07 10:57:46 +00:00
2025-05-13 12:37:35 -07:00
2025-03-05 12:50:21 -08:00