Skip to main content

import_key_jwk

Function import_key_jwk 

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

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