Beryl::Crypto::V1
The first generation of Beryl's algorithms, each under a name that states what it is and a short alias that matches its common name:
| Alias | Class | Standard |
|---|---|---|
SHA224 | SecureHashWith224BitDigest | FIPS 180-4 |
SHA256 | SecureHashWith256BitDigest | FIPS 180-4 |
SHA384 | SecureHashWith384BitDigest | FIPS 180-4 |
SHA512 | SecureHashWith512BitDigest | FIPS 180-4 |
SHA512_256 | SecureHashWith512BitStateAnd256BitDigest | FIPS 180-4 |
HMAC(D) | HashBasedMessageAuthenticationCode(D) | RFC 2104 |
HKDF(D) | HashBasedKeyDerivationFunction(D) | RFC 5869 |
XChaCha20Poly1305 | AuthenticatedEncryptionWithExtendedNonceChaCha20AndPoly1305 | draft-irtf-cfrg-xchacha-03 |
ChaCha20Poly1305 | AuthenticatedEncryptionWithChaCha20AndPoly1305 | RFC 8439 |
AESGCM | AdvancedEncryptionStandardInGaloisCounterMode | FIPS 197, SP 800-38D |
X25519 | DiffieHellmanOverCurve25519 | RFC 7748 |
Ed25519 | EdwardsCurveSignaturesOverCurve25519 | RFC 8032 |
P256 | EllipticCurveP256 (ECDSA with RFC 6979 nonces, ECDH) | FIPS 186-5, SP 800-186, RFC 6979 |
P384 | EllipticCurveP384 (ECDSA verification) | FIPS 186-5, SP 800-186 |
RSA | RivestShamirAdleman | RFC 8017 (PKCS #1 v1.5 and PSS signatures, OAEP) |
Code that must keep producing the same bytes names its algorithm here. Code
that wants today's recommended choice calls Beryl::Crypto.digest,
Beryl::Crypto.authenticate, Beryl::Crypto.derive_key or
Beryl::Crypto.encrypt, whose algorithm
may move to a later generation.
Nested types
- Beryl::Crypto::V1::AEAD
- Beryl::Crypto::V1::AESGCM
- Beryl::Crypto::V1::AdvancedEncryptionStandardInGaloisCounterMode
- Beryl::Crypto::V1::AuthenticatedEncryption
- Beryl::Crypto::V1::AuthenticatedEncryptionWithChaCha20AndPoly1305
- Beryl::Crypto::V1::AuthenticatedEncryptionWithExtendedNonceChaCha20AndPoly1305
- Beryl::Crypto::V1::BlockHashFunction
- Beryl::Crypto::V1::ChaCha20Poly1305
- Beryl::Crypto::V1::DiffieHellmanOverCurve25519
- Beryl::Crypto::V1::Ed25519
- Beryl::Crypto::V1::EdwardsCurveSignaturesOverCurve25519
- Beryl::Crypto::V1::EllipticCurveP256
- Beryl::Crypto::V1::EllipticCurveP384
- Beryl::Crypto::V1::HKDF
- Beryl::Crypto::V1::HMAC
- Beryl::Crypto::V1::HashBasedKeyDerivationFunction(D)
- Beryl::Crypto::V1::HashBasedMessageAuthenticationCode(D)
- Beryl::Crypto::V1::P256
- Beryl::Crypto::V1::P384
- Beryl::Crypto::V1::RSA
- Beryl::Crypto::V1::RivestShamirAdleman
- Beryl::Crypto::V1::SHA224
- Beryl::Crypto::V1::SHA256
- Beryl::Crypto::V1::SHA384
- Beryl::Crypto::V1::SHA512
- Beryl::Crypto::V1::SHA512_256
- Beryl::Crypto::V1::SecureHashWith224BitDigest
- Beryl::Crypto::V1::SecureHashWith256BitDigest
- Beryl::Crypto::V1::SecureHashWith32BitWords
- Beryl::Crypto::V1::SecureHashWith384BitDigest
- Beryl::Crypto::V1::SecureHashWith512BitDigest
- Beryl::Crypto::V1::SecureHashWith512BitStateAnd256BitDigest
- Beryl::Crypto::V1::SecureHashWith64BitWords
- Beryl::Crypto::V1::SignatureFormat
- Beryl::Crypto::V1::X25519
- Beryl::Crypto::V1::XChaCha20Poly1305