module

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:

AliasClassStandard
SHA224SecureHashWith224BitDigestFIPS 180-4
SHA256SecureHashWith256BitDigestFIPS 180-4
SHA384SecureHashWith384BitDigestFIPS 180-4
SHA512SecureHashWith512BitDigestFIPS 180-4
SHA512_256SecureHashWith512BitStateAnd256BitDigestFIPS 180-4
HMAC(D)HashBasedMessageAuthenticationCode(D)RFC 2104
HKDF(D)HashBasedKeyDerivationFunction(D)RFC 5869
XChaCha20Poly1305AuthenticatedEncryptionWithExtendedNonceChaCha20AndPoly1305draft-irtf-cfrg-xchacha-03
ChaCha20Poly1305AuthenticatedEncryptionWithChaCha20AndPoly1305RFC 8439
AESGCMAdvancedEncryptionStandardInGaloisCounterModeFIPS 197, SP 800-38D
X25519DiffieHellmanOverCurve25519RFC 7748
Ed25519EdwardsCurveSignaturesOverCurve25519RFC 8032
P256EllipticCurveP256 (ECDSA with RFC 6979 nonces, ECDH)FIPS 186-5, SP 800-186, RFC 6979
P384EllipticCurveP384 (ECDSA verification)FIPS 186-5, SP 800-186
RSARivestShamirAdlemanRFC 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