pub struct SecretKey {
pub n: BigUint,
pub d: BigUint,
}
Fields§
§n: BigUint
§d: BigUint
Implementations§
Source§impl SecretKey
impl SecretKey
Sourcepub fn new(_n: &BigUint, _d: &BigUint) -> Result<Self, &'static str>
pub fn new(_n: &BigUint, _d: &BigUint) -> Result<Self, &'static str>
Generate a SecretKey struct from n and d co-prime factors.
Trait Implementations§
Source§impl From<(&BigUint, &BigUint)> for SecretKey
Given n and d co-prime factors.
Returns a SecretKey Struct (without checking it’s correctness)
impl From<(&BigUint, &BigUint)> for SecretKey
Given n and d co-prime factors. Returns a SecretKey Struct (without checking it’s correctness)
impl StructuralPartialEq for SecretKey
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
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