Mirage_cryptoSimpler crypto
Mirage-crypto is a cryptographic library.
The overarching API principle is simply mapping inputs to outputs, wherever feasible.
Similar algorithms in the same class (like hashes or block ciphers) are presented as distinct modules sharing the same signature.
The opam package mirage-crypto-rng provides a cryptographically secure pseudo-random number generator, the package mirage-crypto-pk provides public key cryptography.
module Hash : sig ... endHashes.
module Poly1305 : sig ... endThe poly1305 message authentication code
module type AEAD = sig ... endAuthenticated encryption with associated data.
module Cipher_block : sig ... endBlock ciphers.
module Chacha20 : sig ... endThe ChaCha20 cipher proposed by D.J. Bernstein.
module Cipher_stream : sig ... endStreaming ciphers.