Struct dsa::VerifyingKey
source · pub struct VerifyingKey { /* private fields */ }
Expand description
DSA public key.
Implementations§
source§impl VerifyingKey
impl VerifyingKey
sourcepub fn from_components(components: Components, y: BigUint) -> Result<Self>
pub fn from_components(components: Components, y: BigUint) -> Result<Self>
Construct a new public key from the common components and the public component
sourcepub const fn components(&self) -> &Components
pub const fn components(&self) -> &Components
DSA common components
Trait Implementations§
source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
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 VerifyingKey
impl Debug for VerifyingKey
source§impl DecodePublicKey for VerifyingKey
impl DecodePublicKey for VerifyingKey
§fn from_public_key_der(bytes: &[u8]) -> Result<Self, Error>
fn from_public_key_der(bytes: &[u8]) -> Result<Self, Error>
Deserialize object from ASN.1 DER-encoded [
SubjectPublicKeyInfo
]
(binary format).source§impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere
D: Digest,
impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere
D: Digest,
source§impl EncodePublicKey for VerifyingKey
impl EncodePublicKey for VerifyingKey
source§fn to_public_key_der(&self) -> Result<Document>
fn to_public_key_der(&self) -> Result<Document>
Serialize a [
Document
] containing a SPKI-encoded public key.source§impl PartialEq<VerifyingKey> for VerifyingKey
impl PartialEq<VerifyingKey> for VerifyingKey
source§fn eq(&self, other: &VerifyingKey) -> bool
fn eq(&self, other: &VerifyingKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VerifyingKey> for VerifyingKey
impl PartialOrd<VerifyingKey> for VerifyingKey
source§fn partial_cmp(&self, other: &VerifyingKey) -> Option<Ordering>
fn partial_cmp(&self, other: &VerifyingKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more