nettle: safe nettle binding

[ cryptography, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

safe binding for the nettle (http://www.lysator.liu.se/~nisse/nettle/nettle.html) library. Tested with 3.10.2, might work with 4.x.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
usepkgconfig

Use pkg-config to check for library dependences

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.1.1, 0.4
Dependencies base (>=4.9 && <5), bytestring (>=0.10.8 && <0.13), crypton (>=1.1.0 && <1.2), ram (>=0.20.1 && <0.23), tagged (>=0.8.5 && <0.9) [details]
Tested with ghc ==9.14.1 || ==9.12.4 || ==9.10.3 || ==9.8.1 || ==9.6.4 || ==9.4.8
License MIT
Copyright Stefan Bühler <stbuehler@web.de>
Author Stefan Bühler <stbuehler@web.de>
Maintainer Clint Adams <clint@debian.org>
Uploaded by ClintAdams at 2026-09-21T16:39:49Z
Category Cryptography
Home page https://github.com/stbuehler/haskell-nettle
Bug tracker https://github.com/stbuehler/haskell-nettle/issues
Source repo head: git clone https://github.com/stbuehler/haskell-nettle
Distributions Arch:0.3.1.1, LTSHaskell:0.3.1.1, Stackage:0.4
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 6580 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-09-21 [all 1 reports]

Readme for nettle-0.4

[back to package description]

haskell-nettle

This is the source repository for the "nettle" cabal package, which is a safe binding to the nettle library (tested with 3.9.1, 3.10.1, and 3.10.2, might work with 4.0.

The binding supports all hash functions, cipher functions, cipher modes and keyed hash functions (apart from Poly1305-AES) included in nettle (additionally the AEAD-CCM cipher mode is implemented in pure haskell).

Not included are the PBKDF2 key derivation functions, the public-key algorithms (RSA, DSA, elliptic curves, ECDSA), the pseudo-random generators (lagged Fibonacci and Yarrow), and the base64/base16 encoding/decoding functions.

Also not included are the undocumented ASN1, PGP, PKCS1 and "s-expression" functions.

The haddock generated documentation is available at http://stbuehler.github.io/haskell-nettle/

The test vectors were extracted from the nettle library and ported to haskell; they come from different sources.