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
.
pub fn blind_sign(
&self,
blind_msg: impl AsRef<[u8]>,
_options: &Options
) -> Result<BlindSignature, Error>
pub fn blind_sign(
&self,
blind_msg: impl AsRef<[u8]>,
_options: &Options
) -> Result<BlindSignature, Error>
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.
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.
Trait Implementations
Performs the conversion.
type Target = RsaPrivateKey
type Target = RsaPrivateKey
The resulting type after dereferencing.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self