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

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

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.5 && <4.19), bytestring (>=0.10.4 && <0.13), ghc-byteorder (>=4.11.0.0 && <4.12) [details]
Tested with ghc ==9.6.2, ghc ==9.4.5, 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, ghc ==7.10.3, ghc ==7.8.4, ghc ==7.6.3, ghc ==7.4.2
License GPL-2.0-or-later
Copyright © 2020 Herbert Valerio Riedel
Author Herbert Valerio Riedel
Maintainer https://github.com/haskell-hvr/xor
Revised Revision 3 made by AndreasAbel at 2023-07-07T19:24:07Z
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.3, NixOS:0.0.1.3, Stackage:0.0.1.3
Reverse Dependencies 1 direct, 2 indirect [details]
Downloads 1763 total (33 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]