Skip to main content

import_secret_key_jwk

Function import_secret_key_jwk 

Source
pub async fn import_secret_key_jwk(
    variant: EcdhVariant,
    jwk: impl Into<String>,
    options: AgreementKeyOptions,
) -> Result<AgreementSecretKey, Error>
Expand description

Import a static secret key from an EC private JWK (as JSON text) whose crv matches the declared variant’s curve.