Skip to main content

Module rsa

Module rsa 

Source
Expand description

RSA signature verification: PKCS#1 v1.5 and RSA-PSS (RFC 8017).

Implements modular exponentiation and padding verification for rsa_pkcs1_sha256 / sha384 / sha512 and rsa_pss_* schemes.

Only verification is supported; signing is not implemented.

Structs§

PublicKey
An RSA public key parsed from a PKCS#1 SubjectPublicKeyInfo DER blob.

Constants§

DIGEST_INFO_SHA256_PREFIX
SHA-256 DigestInfo prefix for RSA PKCS#1 v1.5.
DIGEST_INFO_SHA384_PREFIX
SHA-384 DigestInfo prefix for RSA PKCS#1 v1.5.
DIGEST_INFO_SHA512_PREFIX
SHA-512 DigestInfo prefix for RSA PKCS#1 v1.5.

Functions§

verify_pkcs1_sha256
Convenience: verify RSA-PKCS1-SHA256.
verify_pkcs1_sha384
Convenience: verify RSA-PKCS1-SHA384.
verify_pkcs1_sha512
Convenience: verify RSA-PKCS1-SHA512.
verify_pss_sha256
Convenience: verify RSA-PSS-SHA256.
verify_pss_sha384
Convenience: verify RSA-PSS-SHA384.
verify_pss_sha512
Convenience: verify RSA-PSS-SHA512.