pub type VerifyingKey<D> = GenericVerifyingKey<D, BoxedUint, BoxedMontyParams>;Available on crate feature
alloc only.Expand description
Boxed PKCS#1 v1.5 verifying key alias.
Aliased Type§
pub struct VerifyingKey<D> { /* private fields */ }Trait Implementations§
Source§impl<D> AssociatedAlgorithmIdentifier for VerifyingKey<D>where
D: Digest,
Available on crate feature encoding only.
impl<D> AssociatedAlgorithmIdentifier for VerifyingKey<D>where
D: Digest,
Available on crate feature
encoding only.Source§const ALGORITHM_IDENTIFIER: AlgorithmIdentifierRef<'static> = pkcs1::ALGORITHM_ID
const ALGORITHM_IDENTIFIER: AlgorithmIdentifierRef<'static> = pkcs1::ALGORITHM_ID
AlgorithmIdentifier for this structure.Source§impl<'de, D> Deserialize<'de> for VerifyingKey<D>where
D: Digest + AssociatedOid,
Available on crate feature serde only.
impl<'de, D> Deserialize<'de> for VerifyingKey<D>where
D: Digest + AssociatedOid,
Available on crate feature
serde only.Source§fn deserialize<De>(deserializer: De) -> Result<Self, De::Error>where
De: Deserializer<'de>,
fn deserialize<De>(deserializer: De) -> Result<Self, De::Error>where
De: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<D> EncodePublicKey for VerifyingKey<D>where
D: Digest,
Available on crate feature encoding only.
impl<D> EncodePublicKey for VerifyingKey<D>where
D: Digest,
Available on crate feature
encoding only.Source§fn to_public_key_der(&self) -> Result<Document>
fn to_public_key_der(&self) -> Result<Document>
Source§fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
Available on crate feature
pem only.Serialize this public key as PEM-encoded SPKI with the given
LineEnding. Read moreSource§fn write_public_key_der_file(&self, path: impl AsRef<Path>) -> Result<(), Error>
fn write_public_key_der_file(&self, path: impl AsRef<Path>) -> Result<(), Error>
Available on crate feature
std only.Write ASN.1 DER-encoded public key to the given path. Read more
Source§fn write_public_key_pem_file(
&self,
path: impl AsRef<Path>,
line_ending: LineEnding,
) -> Result<(), Error>
fn write_public_key_pem_file( &self, path: impl AsRef<Path>, line_ending: LineEnding, ) -> Result<(), Error>
Available on crate features
pem and std only.Write ASN.1 PEM-encoded public key to the given path. Read more
Source§impl<D> Serialize for VerifyingKey<D>where
D: Digest,
Available on crate feature serde only.
impl<D> Serialize for VerifyingKey<D>where
D: Digest,
Available on crate feature
serde only.Source§impl<D> SignatureAlgorithmIdentifier for VerifyingKey<D>where
D: Digest + RsaSignatureAssociatedOid,
Available on crate feature encoding only.
impl<D> SignatureAlgorithmIdentifier for VerifyingKey<D>where
D: Digest + RsaSignatureAssociatedOid,
Available on crate feature
encoding only.Source§const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifierRef<'static>
const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifierRef<'static>
AlgorithmIdentifier for the corresponding signature system.Source§impl<D> TryFrom<SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>> for VerifyingKey<D>where
D: Digest + AssociatedOid,
Available on crate feature encoding only.
impl<D> TryFrom<SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>> for VerifyingKey<D>where
D: Digest + AssociatedOid,
Available on crate feature
encoding only.