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,

source

pub fn new(key: RsaPublicKey) -> VerifyingKey<D>

Create a new RSASSA-PSS verifying key. Digest output size is used as a salt length.

source

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,

source§

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,

§

type Params = AnyRef<'static>

Algorithm parameters.
source§

const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs1::ALGORITHM_ID

AlgorithmIdentifier for this structure.
source§

impl<D> Clone for VerifyingKey<D>
where D: Digest,

source§

fn clone(&self) -> VerifyingKey<D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<D> Debug for VerifyingKey<D>
where D: Debug + Digest,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>

source§

fn verify_digest(&self, digest: D, signature: &Signature) -> Result<(), Error>

Verify the signature against the given Digest output.
source§

impl<D> EncodePublicKey for VerifyingKey<D>
where D: Digest,

source§

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>

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>

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>

Write ASN.1 DER-encoded public key to the given path
source§

impl<D> From<RsaPublicKey> for VerifyingKey<D>
where D: Digest,

source§

fn from(key: RsaPublicKey) -> VerifyingKey<D>

Converts to this type from the input type.
source§

impl<D> PrehashVerifier<Signature> for VerifyingKey<D>

source§

fn verify_prehash( &self, prehash: &[u8], signature: &Signature, ) -> Result<(), Error>

Use Self to verify that the provided signature for a given message prehash is authentic. Read more
source§

impl<D> Verifier<Signature> for VerifyingKey<D>

source§

fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

Use Self to verify that the provided signature for a given message bytestring is authentic. Read more