Files
33f409ceba9a22f8067ea5b10317f7b9a8d3f705
swift /test /unit
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年04月30日 22:01:00 -05:00
2025年03月06日 12:35:43 -08:00