pub struct DecryptingKey { /* private fields */ }Available on crate feature
private-key only.Expand description
Decryption key for PKCS#1 v1.5 decryption as described in RFC8017 § 7.2.
Implementations§
Source§impl DecryptingKey
impl DecryptingKey
Sourcepub fn new(key: RsaPrivateKey) -> Self
pub fn new(key: RsaPrivateKey) -> Self
Create a new verifying key from an RSA public key.
Trait Implementations§
Source§impl Clone for DecryptingKey
impl Clone for DecryptingKey
Source§fn clone(&self) -> DecryptingKey
fn clone(&self) -> DecryptingKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecryptingKey
impl Debug for DecryptingKey
Source§impl Decryptor for DecryptingKey
impl Decryptor for DecryptingKey
Source§impl<'de> Deserialize<'de> for DecryptingKey
impl<'de> Deserialize<'de> for DecryptingKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EncryptingKeypair for DecryptingKey
impl EncryptingKeypair for DecryptingKey
Source§type EncryptingKey = GenericEncryptingKey<BoxedUint, BoxedMontyParams>
type EncryptingKey = GenericEncryptingKey<BoxedUint, BoxedMontyParams>
Encrypting key type for this keypair.
Source§fn encrypting_key(&self) -> EncryptingKey
fn encrypting_key(&self) -> EncryptingKey
Get the encrypting key which can encrypt messages to be decrypted by
the decryption key portion of this keypair.
Source§impl PartialEq for DecryptingKey
impl PartialEq for DecryptingKey
Source§fn eq(&self, other: &DecryptingKey) -> bool
fn eq(&self, other: &DecryptingKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RandomizedDecryptor for DecryptingKey
impl RandomizedDecryptor for DecryptingKey
Source§impl Serialize for DecryptingKey
impl Serialize for DecryptingKey
impl StructuralPartialEq for DecryptingKey
impl ZeroizeOnDrop for DecryptingKey
Auto Trait Implementations§
impl Freeze for DecryptingKey
impl RefUnwindSafe for DecryptingKey
impl Send for DecryptingKey
impl Sync for DecryptingKey
impl Unpin for DecryptingKey
impl UnsafeUnpin for DecryptingKey
impl UnwindSafe for DecryptingKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more