Struct blind_rsa_signatures::SecretKey[][src]

pub struct SecretKey(pub RsaPrivateKey);
Expand description

An RSA secret key

Tuple Fields

0: RsaPrivateKey

Implementations

Constructs a new SecretKey.

Sign a blinded message

Methods from Deref<Target = RsaPrivateKey>

Get the public key from the private key, cloning n and e.

Generally this is not needed since RsaPrivateKey implements the PublicKey trait, but it can occationally be useful to discard the private information entirely.

Returns the private exponent of the key.

Returns the prime factors.

Performs basic sanity checks on the key. Returns Ok(()) if everything is good, otherwise an approriate error.

Decrypt the given message.

Decrypt the given message.

Uses rng to blind the decryption process.

Sign the given digest.

Sign the given digest.

Use rng for blinding.

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.