Struct rsa::pkcs1v15::SigningKey

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

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

Implementations

Create a new signing key from the give RSA private 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
Attempt to sign the given prehashed message Digest, returning a digital signature on success, or an error if something went wrong. Read more
Sign the given prehashed message Digest, returning a signature. Read more
Serialize a [SecretDocument] containing a PKCS#8-encoded private key.
Serialize this private key as PEM-encoded PKCS#8 with the given [LineEnding].
Write ASN.1 DER-encoded PKCS#8 private key to the given path
Write ASN.1 DER-encoded PKCS#8 private 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.
Attempt to sign the given prehashed message Digest, returning a digital signature on success, or an error if something went wrong. Read more
Sign the given prehashed message Digest, returning a signature. Read more
Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more
Sign the given message and return a digital signature
Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more
Sign the given message and return a digital signature

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 [SecretDocument] containing a PKCS#1-encoded private key.
Serialize this private key as PEM-encoded PKCS#1 with the given [LineEnding].
Write ASN.1 DER-encoded PKCS#1 private key to the given path.
Write ASN.1 DER-encoded PKCS#1 private 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
Attempt to sign the given message, updating the state, and returning a digital signature on success, or an error if something went wrong. Read more
Sign the given message, update the state, and return a digital signature
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.