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