Trait osshkeys::keys::PublicParts[][src]

pub trait PublicParts: Key {
    fn verify(&self, data: &[u8], sig: &[u8]) -> OsshResult<bool>;
fn blob(&self) -> OsshResult<Vec<u8>>; fn fingerprint(&self, hash: FingerprintHash) -> OsshResult<Vec<u8>> { ... } }
Expand description

A trait for operations of a public key

Required methods

Verify the data with a detached signature, returning true if the signature is not malformed

Return the binary representation of the public key

Provided methods

Hash the blob of the public key to generate the fingerprint

Implementors