Expand description
RSA-PSS verification-key minting (RFC 8017 §8.1), as the Web Cryptography API serves it.
The variant binds the digest at mint (WebCrypto’s
RsaHashedImportParams), and — unlike WebCrypto, whose saltLength
is a per-operation parameter — the salt length binds at mint too: a
granted key verifies exactly one PSS parameterization, so
salt-length confusion is unrepresentable (see README.md, “Design
notes”). The MGF1 digest is the message digest, as WebCrypto fixes
it. Keys report algorithm-name "RSA-PSS", the variant’s digest,
and the modulus length.
Functions§
- import_
verifying_ key_ jwk - Import a public key as an RSA public JWK (
kty: "RSA", withnande); seeimport-verifying-key-spkiforsalt-length, andmac-key.export-key-jwkfor the package-wide JWK contract. Analgmember, when present, must be the variant’s JOSE alg ("PS256","PS384", or"PS512"). - import_
verifying_ key_ spki - Import a public key as an X.509 SubjectPublicKeyInfo (DER).
Admission follows the family contract (see
rsa).