Enum thrussh_keys::key::PublicKey
[−]
[src]
pub enum PublicKey { // some variants omitted }
Public key
Methods
impl PublicKey
[src]
pub fn parse(algo: &[u8], pubkey: &[u8]) -> Result<Self, Error>
[src]
Parse a public key in SSH format.
impl PublicKey
[src]
pub fn name(&self) -> &'static str
[src]
Algorithm name for that key.
pub fn verify_detached(&self, buffer: &[u8], sig: &[u8]) -> bool
[src]
Verify a signature.
Trait Implementations
impl Eq for PublicKey
[src]
impl PartialEq for PublicKey
[src]
fn eq(&self, __arg_0: &PublicKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PublicKey) -> bool
[src]
This method tests for !=
.
impl Debug for PublicKey
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PublicKeyBase64 for PublicKey
[src]
fn public_key_base64(&self) -> String
[src]
Create the base64 part of the public key blob.