Skip to main content

import_key_jwk

Function import_key_jwk 

Source
pub async fn import_key_jwk(
    variant: AesVariant,
    jwk: String,
    options: KwKeyOptions,
) -> Result<KwKey, Error>
Expand description

Import an RFC 7517 JSON Web Key as an AES-KW key of the declared variant. The key must be an oct key whose alg, if present, names the declared variant ("A128KW"/"A192KW"/"A256KW"); otherwise as aes-gcm.import-key-jwk.