Skip to main content

import_public_key_spki

Function import_public_key_spki 

Source
pub async fn import_public_key_spki(
    variant: EcdhVariant,
    spki: impl Into<Vec<u8>>,
) -> Result<AgreementPublicKey, Error>
Expand description

Import a peer’s public key from an X.509 SubjectPublicKeyInfo (DER) whose encoded curve matches the declared variant’s.