Skip to main content

import_encryption_key_spki

Function import_encryption_key_spki 

Source
pub async fn import_encryption_key_spki(
    variant: RsaVariant,
    spki: impl Into<Vec<u8>>,
) -> Result<EncryptionKey, Error>
Expand description

Import a public key as an X.509 SubjectPublicKeyInfo (DER). Admission follows the RSA family contract (see the WIT rsa interface) plus the 2048–8192-bit window.