Skip to main content

Module rsa

Module rsa 

Source
Expand description

RSA encryption and signatures. RSA encryption and signatures.

§Algorithms

  • PKCS#1 v1.5 (RFC 8017): encryption and signature padding
  • OAEP (RFC 8017): optimal asymmetric encryption padding
  • RSASSA-PSS (RFC 8017 / PKCS#1 v2.2 §8.1): modern signature padding
  • Key sizes: 512 (tests only), 1024 (tests), 2048, 3072, 4096 bits

§Modules

  • bigint: Big integer arithmetic (up to 4096-bit)
  • rsa: RSA core key generation, raw encrypt/decrypt
  • pkcs1: PKCS#1 v1.5 padding for encryption and signatures
  • oaep: OAEP padding for encryption
  • pss: RSASSA-PSS signatures (the modern RSA signature padding)

Modules§

bigint
Big integer arithmetic for RSA (up to ~4096-bit numbers).
oaep
RSA-OAEP encryption padding (RFC 8017 / PKCS#1 v2.2 §7.1).
pkcs1
PKCS#1 v1.5 padding for encryption and signatures (RFC 8017).
pss
RSASSA-PSS signatures (RFC 8017 / PKCS#1 v2.2 §8.1).
rsa
RSA core operations (RFC 8017 / PKCS#1 v2.2): key generation, raw encrypt / decrypt with the Chinese Remainder Theorem (CRT).