Skip to main content

unwrap_secret_key_jwk

Function unwrap_secret_key_jwk 

Source
pub async fn unwrap_secret_key_jwk(
    input: UnwrapInput,
    options: AgreementKeyOptions,
) -> Result<SecretKey, Error>
Expand description

Mint a static secret key from unwrapped key material (see the wrapping interface): input’s bytes are read as an OKP private JWK, subject to import-secret-key-jwk’s contract plus the unwrap-path use/key_ops checks (see README.md, “JWK contract”). input is consumed.

The minted key’s grants and extractability come from options alone (the W3C Web Cryptography API’s unwrapKey model).