Skip to main content

PgpNativeExt

Trait PgpNativeExt 

Source
pub trait PgpNativeExt {
    // Required methods
    fn secret_key(&self) -> SignedSecretKey;
    fn public_key(&self) -> SignedPublicKey;
    fn secret_key_armor(&self) -> SignedSecretKey;
    fn public_key_armor(&self) -> SignedPublicKey;
}
Expand description

Conversion surface for OpenPGP native key types.

Required Methods§

Source

fn secret_key(&self) -> SignedSecretKey

Parse and return a native SignedSecretKey.

Source

fn public_key(&self) -> SignedPublicKey

Parse and return a native SignedPublicKey.

Source

fn secret_key_armor(&self) -> SignedSecretKey

Parse and return an armored native secret key.

Source

fn public_key_armor(&self) -> SignedPublicKey

Parse and return an armored native public key.

Implementations on Foreign Types§

Source§

impl PgpNativeExt for PgpKeyPair

Implementors§