Package1.0.4Cryptography
crypton
Cryptography Primitives sink
- Version1.0.4
- CategoryCryptography
- LicenceBSD-3-Clause
- AuthorVincent Hanquez <vincent@snarc.org>
- MaintainerKazu Yamamoto <kazu@iij.ad.jp>
- Homepagegithub.com/kazu-yamamoto/crypton
- Pinned byhackage crypton 1.0.4
- Sourcehackage.haskell.org/package/crypton-1.0.4
Modules
80 modules- Crypto.Cipher.AES3
- Crypto.Cipher.AESGCMSIV5Implementation of AES-GCM-SIV, an AEAD scheme with nonce misuse resistance
- Crypto.Cipher.Blowfish5
- Crypto.Cipher.CAST51
- Crypto.Cipher.Camellia1Camellia support. only 128 bit variant available for now.
- Crypto.Cipher.ChaCha8
- Crypto.Cipher.ChaChaPoly130516A simple AEAD scheme using ChaCha20 and Poly1305. See
- Crypto.Cipher.DES1
- Crypto.Cipher.RC44Simple implementation of the RC4 stream cipher.
- Crypto.Cipher.Salsa4
- Crypto.Cipher.TripleDES4
- Crypto.Cipher.Twofish3
- Crypto.Cipher.Types22Symmetric cipher basic types
- Crypto.Cipher.Utils1
- Crypto.Cipher.XSalsa5Implementation of XSalsa20 algorithm
- Crypto.ConstructHash.MiyaguchiPreneel3Provide the hash function construction method from block cipher
- Crypto.Data.AFIS2Haskell implementation of the Anti-forensic information splitter
- Crypto.Data.Padding3Various cryptographic padding commonly used for block ciphers
- Crypto.ECC12Elliptic Curve Cryptography
- Crypto.ECC.Edwards2551917Arithmetic primitives over curve edwards25519. Twisted Edwards curves are a familly of elliptic curves allowing
- Crypto.Error7
- Crypto.Hash16Generalized cryptographic hash interface, that you can use with cryptographic hash
- Crypto.Hash.Algorithms46Definitions of known hash algorithms
- Crypto.Hash.IO7Generalized impure cryptographic hash interface
- Crypto.KDF.Argon28Argon2 hashing function (P-H-C winner) Recommended to use this module qualified File started from Argon2.hs, from Oliver Charles
- Crypto.KDF.BCrypt4Password encoding and validation using bcrypt. Example usage: import Crypto.KDF.BCrypt (hashPassword, validatePassword) import qualified …
- Crypto.KDF.BCryptPBKDF3Port of the bcrypt_pbkdf key derivation function from OpenBSD
- Crypto.KDF.HKDF5Key Derivation Function based on HMAC See RFC5869
- Crypto.KDF.PBKDF27Password Based Key Derivation Function 2
- Crypto.KDF.Scrypt2Scrypt key derivation function as defined in Colin Percival's paper
- Crypto.MAC.CMAC3Provide the CMAC (Cipher based Message Authentification Code) base algorithm.
- Crypto.MAC.HMAC8Provide the HMAC (Hash based Message Authentification Code) base algorithm.
- Crypto.MAC.KMAC8Provide the KMAC (Keccak Message Authentication Code) algorithm, derived from
- Crypto.MAC.KeyedBlake29Expose a MAC interface to the keyed Blake2 algorithms
- Crypto.MAC.Poly13059Poly1305 implementation
- Crypto.Number.Basic7
- Crypto.Number.F2m11This module provides basic arithmetic operations over F₂m. Performance is
- Crypto.Number.Generate5
- Crypto.Number.ModArithmetic7
- Crypto.Number.Nat6Numbers at type level. This module provides extensions to GHC.TypeLits and GHC.TypeNats useful
- Crypto.Number.Prime9
- Crypto.Number.Serialize4Fast serialization primitives for integer
- Crypto.Number.Serialize.LE4Fast serialization primitives for integer (little endian)
- Crypto.OTP11One-time password implementation as defined by the
- Crypto.PubKey.Curve255199Curve25519 support
- Crypto.PubKey.Curve4489Curve448 support Internally uses Decaf point compression to omit the cofactor
- Crypto.PubKey.DH9
- Crypto.PubKey.DSA14An implementation of the Digital Signature Algorithm (DSA)
- Crypto.PubKey.ECC.DH7Elliptic curve Diffie Hellman
- Crypto.PubKey.ECC.ECDSA20WARNING: Signature operations may leak the private key. Signature verification
- Crypto.PubKey.ECC.Generate2Signature generation.
- Crypto.PubKey.ECC.P25631P256 support
- Crypto.PubKey.ECC.Prim11Elliptic Curve Arithmetic. WARNING: These functions are vulnerable to timing attacks.
- Crypto.PubKey.ECC.Types13
- Crypto.PubKey.ECDSA17Elliptic Curve Digital Signature Algorithm, with the parameterized
- Crypto.PubKey.ECIES2IES with Elliptic curve https://en.wikipedia.org/wiki/Integrated_Encryption_Scheme This is a simple cryptographic system between 2 partie…
- Crypto.PubKey.Ed2551914Ed25519 support
- Crypto.PubKey.Ed44814Ed448 support Internally uses Decaf point compression to omit the cofactor
- Crypto.PubKey.EdDSA18EdDSA signature generation and verification, implemented in Haskell and
- Crypto.PubKey.MaskGenFunction2
- Crypto.PubKey.RSA7
- Crypto.PubKey.RSA.OAEP6RSA OAEP mode
- Crypto.PubKey.RSA.PKCS1510
- Crypto.PubKey.RSA.PSS11
- Crypto.PubKey.RSA.Prim2
- Crypto.PubKey.RSA.Types10
- Crypto.PubKey.Rabin.Basic10Rabin cryptosystem for public-key cryptography and digital signature.
- Crypto.PubKey.Rabin.Modified5Modified-Rabin public-key digital signature algorithm.
- Crypto.PubKey.Rabin.OAEP4OAEP padding scheme.
- Crypto.PubKey.Rabin.RW8Rabin-Williams cryptosystem for public-key encryption and digital signature.
- Crypto.PubKey.Rabin.Types2
- Crypto.Random16
- Crypto.Random.Entropy1
- Crypto.Random.Entropy.Unsafe4
- Crypto.Random.EntropyPool4
- Crypto.Random.Types4
- Crypto.System.CPU2Gives information about crypton runtime environment.
- Crypto.Tutorial0Examples of how to use crypton.
Internal modules · 2
- Crypto.Number.Serialize.Internal3Fast serialization primitives for integer using raw pointers
- Crypto.Number.Serialize.Internal.LE3Fast serialization primitives for integer using raw pointers (little endian)
Description
A repository of cryptographic primitives.
Symmetric ciphers: AES, DES, 3DES, CAST5, Blowfish, Twofish, Camellia, RC4, Salsa, XSalsa, ChaCha. Hash: SHA1, SHA2, SHA3, SHAKE, MD2, MD4, MD5, Keccak, Skein, Ripemd, Tiger, Whirlpool, Blake2 MAC: HMAC, KMAC, Poly1305 Asymmetric crypto: DSA, RSA, DH, ECDH, ECDSA, ECC, Curve25519, Curve448, Ed25519, Ed448 Key Derivation Function: PBKDF2, Scrypt, HKDF, Argon2, BCrypt, BCryptPBKDF Cryptographic Random generation: System Entropy, Deterministic Random Generator Data related: Anti-Forensic Information Splitter (AFIS)
If anything cryptographic related is missing from here, submit a pull request to have it added. This package strives to be a cryptographic kitchen sink that provides cryptography for everyone.
Evaluate the security related to your requirements before using.
Read Crypto.Tutorial for a quick start guide.
Depends on
7 packages- base-4.20.2.0with GHC
- basement-0.0.16in this set
- bytestring-0.12.2.0with GHC
- deepseq-1.5.0.0with GHC
- ghc-prim-0.12.0with GHC
- integer-gmp-1.1with GHC
- memory-0.18.0in this set