Struct rsa::pss::VerifyingKey
source · pub struct VerifyingKey<D>where
D: Digest,{ /* private fields */ }
Expand description
Verifying key for checking the validity of RSASSA-PSS signatures as described in RFC8017 § 8.1.
Implementations§
source§impl<D> VerifyingKey<D>where
D: Digest,
impl<D> VerifyingKey<D>where D: Digest,
sourcepub fn new(key: RsaPublicKey) -> Self
pub fn new(key: RsaPublicKey) -> Self
Create a new RSASSA-PSS verifying key.
Trait Implementations§
source§impl<D> AsRef<RsaPublicKey> for VerifyingKey<D>where
D: Digest,
impl<D> AsRef<RsaPublicKey> for VerifyingKey<D>where D: Digest,
source§fn as_ref(&self) -> &RsaPublicKey
fn as_ref(&self) -> &RsaPublicKey
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<D> Clone for VerifyingKey<D>where
D: Digest,
impl<D> Clone for VerifyingKey<D>where D: Digest,
source§impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>where
D: Digest + FixedOutputReset,
impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>where D: Digest + FixedOutputReset,
source§impl<D> EncodePublicKey for VerifyingKey<D>where
D: Digest,
impl<D> EncodePublicKey for VerifyingKey<D>where D: Digest,
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.§fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
Serialize this public key as PEM-encoded SPKI with the given [
LineEnding
].source§impl<D> From<RsaPublicKey> for VerifyingKey<D>where
D: Digest,
impl<D> From<RsaPublicKey> for VerifyingKey<D>where D: Digest,
source§fn from(key: RsaPublicKey) -> Self
fn from(key: RsaPublicKey) -> Self
Converts to this type from the input type.
source§impl<D> From<VerifyingKey<D>> for RsaPublicKeywhere
D: Digest,
impl<D> From<VerifyingKey<D>> for RsaPublicKeywhere D: Digest,
source§fn from(key: VerifyingKey<D>) -> Self
fn from(key: VerifyingKey<D>) -> Self
Converts to this type from the input type.
source§impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest + FixedOutputReset,
impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where D: Digest + FixedOutputReset,
Auto Trait Implementations§
impl<D> RefUnwindSafe for VerifyingKey<D>where D: RefUnwindSafe,
impl<D> Send for VerifyingKey<D>where D: Send,
impl<D> Sync for VerifyingKey<D>where D: Sync,
impl<D> Unpin for VerifyingKey<D>where D: Unpin,
impl<D> UnwindSafe for VerifyingKey<D>where D: UnwindSafe,
Blanket Implementations§
source§impl<T> EncodeRsaPublicKey for Twhere
T: EncodePublicKey,
impl<T> EncodeRsaPublicKey for Twhere T: EncodePublicKey,
source§fn to_pkcs1_der(&self) -> Result<Document, Error>
fn to_pkcs1_der(&self) -> Result<Document, Error>
Serialize a [
Document
] containing a PKCS#1-encoded public key.source§fn to_pkcs1_pem(&self, line_ending: LineEnding) -> Result<String, Error>
fn to_pkcs1_pem(&self, line_ending: LineEnding) -> Result<String, Error>
Serialize this public key as PEM-encoded PKCS#1 with the given line ending.