pub struct MinimalDecryptionKey {
pub p: BigInt,
pub q: BigInt,
}Expand description
Private decryption key with no precomputed values.
Used e.g. for serialization of DecryptionKey.
Fields§
§p: BigInt§q: BigIntTrait Implementations§
Source§impl Clone for MinimalDecryptionKey
impl Clone for MinimalDecryptionKey
Source§fn clone(&self) -> MinimalDecryptionKey
fn clone(&self) -> MinimalDecryptionKey
Returns a duplicate of the value. Read more
1.0.0 · 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 MinimalDecryptionKey
impl Debug for MinimalDecryptionKey
Source§impl<'de> Deserialize<'de> for MinimalDecryptionKey
impl<'de> Deserialize<'de> for MinimalDecryptionKey
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<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
impl<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
Source§fn from(dk: &'e DecryptionKey) -> Self
fn from(dk: &'e DecryptionKey) -> Self
Converts to this type from the input type.
Source§impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
Source§impl<'e> From<MinimalDecryptionKey> for DecryptionKey
impl<'e> From<MinimalDecryptionKey> for DecryptionKey
Source§fn from(dk: MinimalDecryptionKey) -> Self
fn from(dk: MinimalDecryptionKey) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MinimalDecryptionKey
impl PartialEq for MinimalDecryptionKey
Source§impl Serialize for MinimalDecryptionKey
impl Serialize for MinimalDecryptionKey
impl StructuralPartialEq for MinimalDecryptionKey
Auto Trait Implementations§
impl Freeze for MinimalDecryptionKey
impl RefUnwindSafe for MinimalDecryptionKey
impl Send for MinimalDecryptionKey
impl Sync for MinimalDecryptionKey
impl Unpin for MinimalDecryptionKey
impl UnwindSafe for MinimalDecryptionKey
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