pub trait Import<'a, A: Algorithm, P: Parts> {
    type Blob: AsRef<Blob<ErasedKeyBlob>> + 'a;

    // Provided method
    fn import(
        algo: A,
        provider: &AsymmetricAlgorithm,
        blob: Self::Blob
    ) -> Result<AsymmetricKey<A, P>> { ... }
}
Expand description

Import asymmetric key using the raw key data format.

Required Associated Types§

Provided Methods§

source

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

Implementors§

source§

impl<'a> Import<'a, AsymmetricAlgorithmId, Private> for AsymmetricKey<AsymmetricAlgorithmId, Private>

source§

impl<'a> Import<'a, AsymmetricAlgorithmId, Public> for AsymmetricKey<AsymmetricAlgorithmId, Public>

source§

impl<'a> Import<'a, Dh, Private> for AsymmetricKey<Dh, Private>

source§

impl<'a> Import<'a, Dh, Public> for AsymmetricKey<Dh, Public>

source§

impl<'a> Import<'a, Dsa, Private> for AsymmetricKey<Dsa, Private>

source§

impl<'a> Import<'a, Dsa, Public> for AsymmetricKey<Dsa, Public>

source§

impl<'a> Import<'a, Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>

source§

impl<'a> Import<'a, Ecdh<Curve25519>, Public> for AsymmetricKey<Ecdh<Curve25519>, Public>

source§

impl<'a> Import<'a, Ecdh<NistP256>, Private> for AsymmetricKey<Ecdh<NistP256>, Private>

source§

impl<'a> Import<'a, Ecdh<NistP256>, Public> for AsymmetricKey<Ecdh<NistP256>, Public>

source§

impl<'a> Import<'a, Ecdh<NistP384>, Private> for AsymmetricKey<Ecdh<NistP384>, Private>

source§

impl<'a> Import<'a, Ecdh<NistP384>, Public> for AsymmetricKey<Ecdh<NistP384>, Public>

source§

impl<'a> Import<'a, Ecdh<NistP521>, Private> for AsymmetricKey<Ecdh<NistP521>, Private>

source§

impl<'a> Import<'a, Ecdh<NistP521>, Public> for AsymmetricKey<Ecdh<NistP521>, Public>

source§

impl<'a> Import<'a, Ecdsa<NistP256>, Private> for AsymmetricKey<Ecdsa<NistP256>, Private>

source§

impl<'a> Import<'a, Ecdsa<NistP256>, Public> for AsymmetricKey<Ecdsa<NistP256>, Public>

source§

impl<'a> Import<'a, Ecdsa<NistP384>, Private> for AsymmetricKey<Ecdsa<NistP384>, Private>

source§

impl<'a> Import<'a, Ecdsa<NistP384>, Public> for AsymmetricKey<Ecdsa<NistP384>, Public>

source§

impl<'a> Import<'a, Ecdsa<NistP521>, Private> for AsymmetricKey<Ecdsa<NistP521>, Private>

source§

impl<'a> Import<'a, Ecdsa<NistP521>, Public> for AsymmetricKey<Ecdsa<NistP521>, Public>

source§

impl<'a> Import<'a, Rsa, Private> for AsymmetricKey<Rsa, Private>

source§

impl<'a> Import<'a, Rsa, Public> for AsymmetricKey<Rsa, Public>