xor: Efficient XOR masking

[ codec, data, gpl, library ] [ Propose Tags ] [ Report a vulnerability ]

This package provides efficient implementations of routines for applying bitwise XOR masks to binary data.

The currently supported operations (see Data.XOR API documentation for more details) are applying

  • 8-bit wide XOR masks or

  • 32-bit wide XOR masks

to binary data represented by

  • Strict ByteStrings,

  • Lazy ByteStrings,

  • ShortByteStrings (i.e. ByteArray#s), or

  • CStringLen (i.e. Ptrs).

The performance is comparable to portable ISO C99 implementations but this library is implemented as pure Haskell and is thereby compatible with compile targets such as GHCJS.

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1.0, 0.0.1.1, 0.0.1.2, 0.0.1.3
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), bytestring (>=0.10.4 && <0.13), ghc-byteorder (>=4.11.0.0 && <4.12) [details]
Tested with ghc ==9.10.1, ghc ==9.8.2, ghc ==9.6.5, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2
License GPL-2.0-or-later
Copyright © 2020 Herbert Valerio Riedel
Author Herbert Valerio Riedel
Maintainer Andreas Abel
Category Data, Codec
Bug tracker https://github.com/haskell-hvr/xor/issues
Source repo head: git clone https://github.com/haskell-hvr/xor.git
Uploaded by AndreasAbel at 2024-06-25T09:09:28Z
Distributions LTSHaskell:0.0.1.3, NixOS:0.0.1.3, Stackage:0.0.1.3
Reverse Dependencies 1 direct, 2 indirect [details]
Downloads 1765 total (28 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-06-25 [all 1 reports]