The hecc package

[Tags:bsd3, deprecated, library]
Deprecated. in favor of eccrypto

Pure math & algorithms for Elliptic Curve Cryptography in Haskell

[Skip to Readme]


Versions 0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.4,,,
Dependencies base (>=3 && <5) [details]
License OtherLicense
Copyright (c) Marcel Fourné, 2009
Author Marcel Fourné
Maintainer Marcel Fourné (
Category Cryptography
Uploaded Wed Sep 9 16:02:01 UTC 2009 by MarcelFourne
Distributions NixOS:
Downloads 2280 total (11 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for hecc

Readme for hecc-0.1


RSA just doesn't cut it anymore for fast public-key crypto. Keys are large for reasonable security making it quite slow...
Enter elliptic curves: smaller numbers are necessary and everything is faster. Maybe this library is not for embedded system usage, but now people can experiment with ECC for those use-cases where otherwise some form of RSA would be chosen.


This is the Haskell-Elliptic-Curve-Cryptography-library, or maybe more appropriately atm it is only the basic math for many ECC-algorithms the user of this library may wish to implement.
As an example the EC-variant of the Diffie-Hellman key-exchange is included which shows how the values can be computed with this library.
Also included is a basic speed-test (a point multiplication) for the NIST Curve P-256 (the author wants some usage results and performance-numbers... so...).

------- _not_ stable right now! This is only some ECC-playground. If anybody wants to use the library in its current state for serious cryptographic uses, then by all means contact the author!

The Code began as a prototyped script and has since been polished, but this is best-effort work in progress!


Some algorithms using these primitives will likely follow (also: better versions of the primitives).