Skip to main content

import_key_jwk

Function import_key_jwk 

Source
pub async fn import_key_jwk(
    variant: AesVariant,
    jwk: impl Into<String>,
    options: AeadKeyOptions,
) -> Result<Aead, Error>
Expand description

Import an RFC 7517 oct JSON Web Key (as JSON text) as an AES-GCM key of the declared variant. See the WIT mac-key.export-key-jwk doc for the package-wide JWK contract.