Skip to main content

import_verifying_key_jwk

Function import_verifying_key_jwk 

Source
pub async fn import_verifying_key_jwk(
    variant: RsaVariant,
    salt_length: u32,
    jwk: impl Into<String>,
) -> Result<VerifyingKey, Error>
Expand description

Import a public key as an RSA public JWK (kty: "RSA", with n and e, as JSON text); see import_verifying_key_spki for salt_length. An alg member, when present, must be the variant’s JOSE alg ("PS256", "PS384", or "PS512"). See the WIT mac-key.export-key-jwk doc for the package-wide JWK contract.