digest: CRC32 and Adler32 hashes for bytestrings

[ bsd2, cryptography, library ] [ Propose Tags ]

This package provides efficient hash implementations for strict and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are implemented as FFI bindings to efficient code from zlib.

Flags

Manual Flags

NameDescriptionDefault
have_builtin_prefetch

The cxx compiler has the __builtin_prefetch intrinsic.

Disabled
have_mm_prefetch

Targeting X86 and the compiler has the _mm_prefetch intrinsic.

Disabled
have_sse42

Can be enabled to improve performance of CRC32C if targeting X86 and the compiler has the _mm_crc32_u{8,32,64} intrinsics.

Disabled
have_arm64_crc32c

Targeting ARM and the compiler has the __crc32c{b,h,w,d} and the vmull_p64 intrinsics.

Disabled
have_strong_getauxval

The system libraries have the getauxval function in the sys/auxv.h header. Should be true on Linux and Android API level 20+.

Disabled
have_weak_getauxval

The compiler supports defining getauxval as a weak symbol. Should be true for any compiler that supports attribute((weak)).

Disabled
Automatic Flags
NameDescriptionDefault
pkg-config

Use pkg-config(1) to locate zlib library.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.0.1, 0.0.0.2, 0.0.0.3, 0.0.0.4, 0.0.0.5, 0.0.0.6, 0.0.0.7, 0.0.0.8, 0.0.0.9, 0.0.1.0, 0.0.1.1, 0.0.1.2, 0.0.1.3, 0.0.1.4, 0.0.1.5, 0.0.1.6, 0.0.1.7, 0.0.2.0, 0.0.2.1
Change log CHANGELOG.md
Dependencies base (>=4.12 && <5), bytestring (>=0.10 && <0.13), zlib [details]
License BSD-2-Clause
Copyright (c) 2009 Eugene Kirpichov
Author Eugene Kirpichov <ekirpichov@gmail.com>
Maintainer Eugene Kirpichov <ekirpichov@gmail.com>
Category Cryptography
Source repo head: git clone https://github.com/TeofilC/digest
Uploaded by teo at 2024-02-10T14:26:08Z
Distributions Arch:0.0.1.7, Debian:0.0.1.2, Fedora:0.0.1.7, FreeBSD:0.0.1.2, LTSHaskell:0.0.2.1, NixOS:0.0.2.1, Stackage:0.0.2.1, openSUSE:0.0.2.0
Reverse Dependencies 23 direct, 255 indirect [details]
Downloads 125200 total (390 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]