Crate nettle

source ·
Expand description

Rust bindings for the Nettle cryptographic library.


  • Authenticated encryption mode with associated data.
  • Block and stream ciphers.
  • Elliptic curve Diffie-Hellman using Mike Hamburg’s Curve448.
  • Elliptic curve Diffie-Hellman using D.J. Bernstein’s Curve25519.
  • The Digital Signature Algorithm (DSA) described in FIPS 186.
  • Types for ECs in Weierstraß form.
  • Diffie-Helman over ECs in Weierstraß form.
  • Elliptic curve variant of the Digital Signature Standard.
  • Mike Hamburg’s “Goldilocks” Edwards curve Ed448.
  • D.J. Bernstein’s “Twisted” Edwards curve Ed25519.
  • Cryptographic hash functions.
  • Key derivation functions
  • Message authentication codes.
  • Mode of operation for block ciphers.
  • Cryptographic random number generators (CRNG).
  • The Rivest, Shamir, Adelman (RSA) cryptosystem.



  • Returns the version of the Nettle library.

Type Aliases§

  • Specialized Result type.