[][src]Trait bundled_crypto::algo::hash::asymmetric::KeyPair

pub trait KeyPair: Key {
    type Private;
    type Public;
    fn public_key(&self) -> &Self::Public;
fn private_key(&self) -> Option<&Self::Private>; }

Associated Types

type Private

type Public

Loading content...

Required methods

fn public_key(&self) -> &Self::Public

fn private_key(&self) -> Option<&Self::Private>

Loading content...

Implementors

impl KeyPair for bundled_crypto::algo::hash::ecc::ed25519::KeyPair[src]

type Private = SecretKey

type Public = PublicKey

impl KeyPair for bundled_crypto::algo::hash::rsa::pss_sha384_mgf1_65537::KeyPair[src]

type Private = PKey<Private>

type Public = PKey<Public>

Loading content...