Struct osshkeys::keys::dsa::DsaPublicKey
source · pub struct DsaPublicKey { /* private fields */ }
Expand description
Represent the DSA public key
Implementations§
Trait Implementations§
source§impl Clone for DsaPublicKey
impl Clone for DsaPublicKey
source§fn clone(&self) -> DsaPublicKey
fn clone(&self) -> DsaPublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DsaPublicKey
impl Debug for DsaPublicKey
source§impl Display for DsaPublicKey
impl Display for DsaPublicKey
source§impl From<DsaPublicKey> for PublicKey
impl From<DsaPublicKey> for PublicKey
source§fn from(inner: DsaPublicKey) -> PublicKey
fn from(inner: DsaPublicKey) -> PublicKey
Converts to this type from the input type.
source§impl Key for DsaPublicKey
impl Key for DsaPublicKey
source§impl PartialEq<DsaPublicKey> for DsaPublicKey
impl PartialEq<DsaPublicKey> for DsaPublicKey
source§impl PublicParts for DsaPublicKey
impl PublicParts for DsaPublicKey
source§fn verify(&self, data: &[u8], sig: &[u8]) -> Result<bool, Error>
fn verify(&self, data: &[u8], sig: &[u8]) -> Result<bool, Error>
Verify the data with a detached signature, returning true if the signature is not malformed
source§fn fingerprint(&self, hash: FingerprintHash) -> OsshResult<Vec<u8>>
fn fingerprint(&self, hash: FingerprintHash) -> OsshResult<Vec<u8>>
Hash the blob of the public key to generate the fingerprint
source§fn fingerprint_randomart(&self, hash: FingerprintHash) -> OsshResult<String>
fn fingerprint_randomart(&self, hash: FingerprintHash) -> OsshResult<String>
Draw an ASCII-art picture from the fingerprint, also known as “randomart”
Auto Trait Implementations§
impl RefUnwindSafe for DsaPublicKey
impl Send for DsaPublicKey
impl Sync for DsaPublicKey
impl Unpin for DsaPublicKey
impl UnwindSafe for DsaPublicKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more