xor: Efficient XOR masking

[ codec, data, gpl, library ] [ Propose Tags ]

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.


[Index] [Quick Jump]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,
Change log CHANGELOG.md
Dependencies base (>=4.5 && <5), bytestring (>=0.10.4 && <0.13), ghc-byteorder (>= && <4.12) [details]
License GPL-2.0-or-later
Copyright © 2020 Herbert Valerio Riedel
Author Herbert Valerio Riedel
Maintainer Andreas Abel
Revised Revision 3 made by AndreasAbel at 2024-04-23T07:43:52Z
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 2023-07-19T14:00:21Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 1 direct, 2 indirect [details]
Downloads 1603 total (27 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-07-19 [all 1 reports]