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.

Modules

[Index] [Quick Jump]

Downloads

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

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1.0, 0.0.1.1
Change log CHANGELOG.md
Dependencies base (>=4.5 && <4.18), bytestring (>=0.10.4 && <0.12), ghc-byteorder (>=4.11.0.0 && <4.12) [details]
License GPL-2.0-or-later
Copyright © 2020 Herbert Valerio Riedel
Author Herbert Valerio Riedel
Maintainer https://github.com/haskell-hvr/xor
Revised Revision 1 made by AndreasAbel at 2022-08-12T21:03:11Z
Category Data, Codec
Bug tracker https://github.com/haskell-hvr/xor/issues
Source repo head: git clone https://github.com/hvr/xor.git
Uploaded by AndreasAbel at 2022-02-16T16:40:10Z
Distributions LTSHaskell:0.0.1.1, NixOS:0.0.1.1, Stackage:0.0.1.1
Downloads 1176 total (28 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]