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§
- Public
Key - An RSA public key parsed from a PKCS#1
SubjectPublicKeyInfoDER 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.