Module nettle::rsa

source ·
Expand description

The Rivest, Shamir, Adelman (RSA) cryptosystem.

Structs§

Constants§

Traits§

  • Marker trait for hash algorithms usable for PKCS#1 signatures.
  • A hash function usable for PSS.

Functions§

  • Decrypts ciphertext using public/private.
  • Decrypts ciphertext using public/private.
  • Encrypts plaintext using public, producing ciphertext.
  • Generates a fresh RSA key pair usable for signing and encryption.
  • Creates a PKCS#1.5 padded RSA signature for digest_info || digest.
  • Signs the message hashed with hash using public/private, producing signature.
  • Signs the message hashed by hash using salt and the key pair public/private, producing signature.
  • Verifies a PKCS#1.5 padded RSA signature for digest_info || digest.
  • Verifies signature of the data hashed by hash using public.
  • Verifies signature of the data hashed by hash using a salt of salt_len bytes and the key public.