Struct rsa::pkcs1v15::VerifyingKey

source ·
pub struct VerifyingKey<D>where
    D: Digest,
{ /* private fields */ }
Expand description

Verifying key for PKCS#1 v1.5 signatures as described in RFC8017 § 8.2.

Implementations

Create a new verifying key from an RSA public key.

Create a new verifying key with a prefix for the digest D.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Verify the signature against the given Digest output.
Serialize a [Document] containing a SPKI-encoded public key.
Serialize this public key as PEM-encoded SPKI with the given [LineEnding].
Write ASN.1 DER-encoded public key to the given path
Write ASN.1 DER-encoded public key to the given path
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Use Self to verify that the provided signature for a given message bytestring is authentic. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Serialize a [Document] containing a PKCS#1-encoded public key.
Serialize this public key as PEM-encoded PKCS#1 with the given line ending.
Write ASN.1 DER-encoded public key to the given path.
Write ASN.1 DER-encoded public key to the given path.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.