A pure-rust implementation of various cryptographic algorithms, which no dependencies and no foreign code (specially C or assembly).
Our goals is to support rust cryptography in various constrained environment like embedded devices and web assembly
This is a fork of Rust-Crypto by DaGenix, which we owe a debt of gratitude for starting some good quality pure rust implementations of various cryptographic algorithms.
Notable Differences with the original sources:
- Extended ED25519 support for extended secret key (64 bytes) support
- Proper implementation of ChaChaPoly1305
- Many cryptographic algorithms removed: AES, Blowfish, Fortuna, RC4, RIPEMD160, Whirlpool, MD5, SHA1.
As with everything cryptographic implementations, please make sure it suits your security requirements, and review and audit before using.
Blake2B hash function
Blake2S hash function
ChaCha20 Stream Cipher
ChaCha20Poly1305 is an authenticated symmetric stream cipher based on chacha20 and poly1305
Curve25519 elliptic curve
Cryptographic Hash abstraction definition
ED25519 Signature Scheme
HMAC Key Derivation Function (HKDF) This module implements the HMAC-based Extract-and-Expand Key Derivation Function as specified by https://tools.ietf.org/html/rfc5869.
This module implements the Hmac function - a Message Authentication Code using a Digest.
The mac module defines the Message Authentication Code (
This module implements the PBKDF2 Key Derivation Function as specified by http://tools.ietf.org/html/rfc2898.
Poly1305 Message Authentication Code (MAC)
An implementation of the SHA-2 cryptographic hash algorithms.
An implementation of the SHA-3 cryptographic hash algorithms.
Abstraction for symmetric cipher