About

Metadata

  • Last updated , by teo
  • License BSD-2-Clause
  • Categories Cryptography
  • Maintained by: Eugene Kirpichov <ekirpichov@gmail.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.8.1
  2. 9.6.3
  3. 9.4.8
  4. 9.2.8
  5. 9.0.2
  6. 8.10.7

Package Flags

Use the -f option with cabal commands to enable flags

    pkg-config (on by default)

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

    have_builtin_prefetch (off by default)

    The cxx compiler has the __builtin_prefetch intrinsic.

    have_mm_prefetch (off by default)

    Targeting X86 and the compiler has the _mm_prefetch intrinsic.

    have_sse42 (off by default)

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

    have_arm64_crc32c (off by default)

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

    have_strong_getauxval (off by default)

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

    have_weak_getauxval (off by default)

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

Readme

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.