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: CipherKeyOptions,
) -> Result<CipherKey, Error>
Expand description

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