Package1.0.6Cryptography
crypton
Cryptography Primitives sink
- Version1.0.6
- 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. 6 - Sourcecrypton-1.
0. 6 on Hackage
Modules
- Crypto.Cipher.AES
- Crypto.Cipher.AESGCMSIVImplementation of AES-GCM-SIV, an AEAD scheme with nonce misuse resistance
- Crypto.Cipher.Blowfish
- Crypto.Cipher.CAST5
- Crypto.Cipher.CamelliaCamellia support. only 128 bit variant available for now.
- Crypto.Cipher.ChaCha
- Crypto.Cipher.ChaChaPoly1305A simple AEAD scheme using ChaCha20 and Poly1305. See
- Crypto.Cipher.DES
- Crypto.Cipher.RC4Simple implementation of the RC4 stream cipher.
- Crypto.Cipher.Salsa
- Crypto.Cipher.TripleDES
- Crypto.Cipher.Twofish
- Crypto.Cipher.TypesSymmetric cipher basic types
- Crypto.Cipher.Utils
- Crypto.Cipher.XSalsaImplementation of XSalsa20 algorithm
- Crypto.ConstructHash.MiyaguchiPreneelProvide the hash function construction method from block cipher
- Crypto.Data.AFISHaskell implementation of the Anti-forensic information splitter
- Crypto.Data.PaddingVarious cryptographic padding commonly used for block ciphers
- Crypto.ECCElliptic Curve Cryptography
- Crypto.ECC.Edwards25519Arithmetic primitives over curve edwards25519. Twisted Edwards curves are a familly of elliptic curves allowing
- Crypto.Error
- Crypto.HashGeneralized cryptographic hash interface, that you can use with cryptographic hash
- Crypto.Hash.AlgorithmsDefinitions of known hash algorithms
- Crypto.Hash.IOGeneralized impure cryptographic hash interface
- Crypto.KDF.Argon2Argon2 hashing function (P-H-C winner) Recommended to use this module qualified File started from Argon2.hs, from Oliver Charles
- Crypto.KDF.BCryptPassword encoding and validation using bcrypt. Example usage: import Crypto.KDF.BCrypt (hashPassword, validatePassword) import qualified …
- Crypto.KDF.BCryptPBKDFPort of the bcrypt_pbkdf key derivation function from OpenBSD
- Crypto.KDF.HKDFKey Derivation Function based on HMAC See RFC5869
- Crypto.KDF.PBKDF2Password Based Key Derivation Function 2
- Crypto.KDF.ScryptScrypt key derivation function as defined in Colin Percival's paper
- Crypto.MAC.CMACProvide the CMAC (Cipher based Message Authentification Code) base algorithm.
- Crypto.MAC.HMACProvide the HMAC (Hash based Message Authentification Code) base algorithm.
- Crypto.MAC.KMACProvide the KMAC (Keccak Message Authentication Code) algorithm, derived from
- Crypto.MAC.KeyedBlake2Expose a MAC interface to the keyed Blake2 algorithms
- Crypto.MAC.Poly1305Poly1305 implementation
- Crypto.Number.Basic
- Crypto.Number.F2mThis module provides basic arithmetic operations over F₂m. Performance is
- Crypto.Number.Generate
- Crypto.Number.ModArithmetic
- Crypto.Number.NatNumbers at type level. This module provides extensions to GHC.TypeLits and GHC.TypeNats useful
- Crypto.Number.Prime
- Crypto.Number.SerializeFast serialization primitives for integer
- Crypto.Number.Serialize.LEFast serialization primitives for integer (little endian)
- Crypto.OTPOne-time password implementation as defined by the
- Crypto.PubKey.Curve25519Curve25519 support
- Crypto.PubKey.Curve448Curve448 support Internally uses Decaf point compression to omit the cofactor
- Crypto.PubKey.DH
- Crypto.PubKey.DSAAn implementation of the Digital Signature Algorithm (DSA)
- Crypto.PubKey.ECC.DHElliptic curve Diffie Hellman
- Crypto.PubKey.ECC.ECDSAWARNING: Signature operations may leak the private key. Signature verification
- Crypto.PubKey.ECC.GenerateSignature generation.
- Crypto.PubKey.ECC.P256P256 support
- Crypto.PubKey.ECC.PrimElliptic Curve Arithmetic. WARNING: These functions are vulnerable to timing attacks.
- Crypto.PubKey.ECC.Types
- Crypto.PubKey.ECDSAElliptic Curve Digital Signature Algorithm, with the parameterized
- Crypto.PubKey.ECIESIES with Elliptic curve https://en.wikipedia.org/wiki/Integrated_Encryption_Scheme This is a simple cryptographic system between 2 partie…
- Crypto.PubKey.Ed25519Ed25519 support
- Crypto.PubKey.Ed448Ed448 support Internally uses Decaf point compression to omit the cofactor
- Crypto.PubKey.EdDSAEdDSA signature generation and verification, implemented in Haskell and
- Crypto.PubKey.MaskGenFunction
- Crypto.PubKey.RSA
- Crypto.PubKey.RSA.OAEPRSA OAEP mode
- Crypto.PubKey.RSA.PKCS15
- Crypto.PubKey.RSA.PSS
- Crypto.PubKey.RSA.Prim
- Crypto.PubKey.RSA.Types
- Crypto.PubKey.Rabin.BasicRabin cryptosystem for public-key cryptography and digital signature.
- Crypto.PubKey.Rabin.ModifiedModified-Rabin public-key digital signature algorithm.
- Crypto.PubKey.Rabin.OAEPOAEP padding scheme.
- Crypto.PubKey.Rabin.RWRabin-Williams cryptosystem for public-key encryption and digital signature.
- Crypto.PubKey.Rabin.Types
- Crypto.Random
- Crypto.Random.Entropy
- Crypto.Random.Entropy.Unsafe
- Crypto.Random.EntropyPool
- Crypto.Random.Types
- Crypto.System.CPUGives information about crypton runtime environment.
- Crypto.TutorialExamples of how to use crypton.
Internal modules · 2
- Crypto.Number.Serialize.InternalFast serialization primitives for integer using raw pointers
- Crypto.Number.Serialize.Internal.LEFast 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
6 packages- base-4.22.0.0with GHC
- basement-0.0.16in this set
- bytestring-0.12.2.0with GHC
- deepseq-1.5.1.0with GHC
- integer-gmp-1.1with GHC
- memory-0.18.0in this set
Used by in this set · 18
- byron-spec-ledger-1.1.0.1
- cardano-addresses-4.0.2
- cardano-api-11.7.0.0
- cardano-crypto-1.3.0
- cardano-crypto-class-2.5.1.0
- cardano-crypto-wrapper-1.7.0.0
- cardano-ledger-byron-1.3.0.0
- cardano-prelude-test-0.1.0.5
- crypton-x509-1.8.0
- crypton-x509-store-1.8.0
- crypton-x509-validation-1.8.0
- dns-4.2.0
- hpke-0.0.0
- http-client-tls-0.3.6.4
- solana-haskell-sdk-1.3.0.0
- tls-2.2.2
- web3-crypto-1.1.0.0
- web3-polkadot-1.1.0.1