Type Alias mas_jose::jwa::Ps512VerifyingKey
source · pub type Ps512VerifyingKey = VerifyingKey<Sha512>;
Aliased Type§
struct Ps512VerifyingKey { /* private fields */ }
Implementations
source§impl<D> VerifyingKey<D>where
D: Digest,
impl<D> VerifyingKey<D>where
D: Digest,
sourcepub fn new(key: RsaPublicKey) -> VerifyingKey<D>
pub fn new(key: RsaPublicKey) -> VerifyingKey<D>
Create a new RSASSA-PSS verifying key. Digest output size is used as a salt length.
sourcepub fn new_with_salt_len(key: RsaPublicKey, salt_len: usize) -> VerifyingKey<D>
pub fn new_with_salt_len(key: RsaPublicKey, salt_len: usize) -> VerifyingKey<D>
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> AssociatedAlgorithmIdentifier for VerifyingKey<D>where
D: Digest,
impl<D> AssociatedAlgorithmIdentifier for VerifyingKey<D>where
D: Digest,
source§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs1::ALGORITHM_ID
const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs1::ALGORITHM_ID
AlgorithmIdentifier
for this structure.source§impl<D> Clone for VerifyingKey<D>where
D: Digest,
impl<D> Clone for VerifyingKey<D>where
D: Digest,
source§fn clone(&self) -> VerifyingKey<D>
fn clone(&self) -> VerifyingKey<D>
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<D> Debug for VerifyingKey<D>
impl<D> Debug for VerifyingKey<D>
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, Error>
fn to_public_key_der(&self) -> Result<Document, Error>
Serialize a
Document
containing a SPKI-encoded public key.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>
Serialize this public key as PEM-encoded SPKI with the given
LineEnding
.source§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>
Write ASN.1 DER-encoded public key to the given path
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>
Write ASN.1 DER-encoded public key to the given path
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) -> VerifyingKey<D>
fn from(key: RsaPublicKey) -> VerifyingKey<D>
Converts to this type from the input type.