Skip to main content

Module rsassa_pkcs1_v15

Module rsassa_pkcs1_v15 

Source
Expand description

rsassa-pkcs1-v15-verify key creation (RFC 8017 §8.2), plus — behind the rsa-sign cargo feature — rsassa-pkcs1-v15-sign.

Functions§

import_verifying_key_jwk
Import a public key as an RSA public JWK (kty: "RSA", with n and e, as JSON text). An alg member, when present, must be the variant’s JOSE alg ("RS256", "RS384", or "RS512"). See the WIT mac-key.export-key-jwk doc for the package-wide JWK contract.
import_verifying_key_spki
Import a public key as an X.509 SubjectPublicKeyInfo (DER). The declared variant binds the digest at mint; admission follows the RSA family contract (see the WIT rsa interface).

Type Aliases§

RsaVariant