[Haskell-cafe] [ANN] New releases of crypto-api, DRBG, commsec, commsec-keyexchange, and cipher-aes128
thomas.dubuisson at gmail.com
Wed Apr 24 00:04:40 CEST 2013
I have recently released new versions of:
- crypto-api: An interface for cryptographic algorithms such as
block ciphers, hashes, and secure random number generators. This
version includes Klondike's cbcMac and SIV modes of operation - much
thanks to his numerous patches.
- DRBG: A set of deterministic random bit generators (aka CPRNGs)
based on NIST 800-90.
- commsec: A communications security package that provides data in
transit security using AES-128 GCM without any external, C library,
- commsec-keyexchange: A key exchange tool that leverages RSA keys
to establish connection's for use with the commsec package.
- cipher-aes128: A re-packaging of Vincent Hanquez's excellent AES routines.
Crypto-API was first released in 2010 with an aim of providing an
interface useful to consumers of cryptographic algorithms and
providers of those algorithms. It includes classes for block, stream,
and asymmetric ciphers as well as for random number generators,
hashes, and signature algorithms.
Recent changes include:
- Added SIV and cbcMac thanks to Klondike. NOTE: Some of this code is
only conditionally included via a compile time flag due to GHC's slow
compilation of the CPoly module.
- Moved block cipher modes into the type classes, allowing use of
high-speed C or ASM mode implementations.
- More generator query methods in the CryptoRandomGen class.
- Updated build dependencies
- Move operations and expose them from Crypto.Util
DRBG implements the Hash and HMAC based generators specified in NIST
SP 800-90. A generator using block ciphers in CTR mode is also
provided, but is not based on the special publication.
==CommSec and CommSec-KeyExchange==
Together, these packages provide a way to start from shared RSA keys
and obtain a thread-safe secure communications channel. A
pull-request is currently out to crypto-pubkey-openssh that would
allow the reading and use of RSA keys generated by ssh-keygen.
These packages aim to be "morally correct" in that they perform the
correct operations at an equivalent computational cost of a properly
vetted system, but are not themselves vetted for critical use. For
small messages, commsec performs faster than the non-threadsafe
secure-sockets counterpart. For larger messages the performance is
not as competitive due to the GCM routine not being fully optimized.
This package has performance benefits (vs cipher-aes) due to
function-pointer rewriting that allows us to avoid excessive checking
of the CPU info . This package is hopefully going to be
short-lived with the optimizations getting folded into Vincent's
'cipher-aes' once things are mature enough. A windows tester would
Comments and patches are welcome. Sorry if I forgot to thank anyone
who contributed, many of these projects have been neglected and I lose
context in the interim.
Thomas M. DuBuisson
 https://github.com/vincenthz/hs-cipher-aes/issues/8 - Up to 40%
faster for small operations.
More information about the Haskell-Cafe