pub struct ModExpProtectParams<'a> {
pub base: &'a [u8],
pub exponent: &'a [u8],
pub modulus: &'a [u8],
pub phi: &'a [u8],
}Expand description
Parameters for modular exponentiation with protection (side-channel resistant)
Fields§
§base: &'a [u8]Base value
exponent: &'a [u8]Exponent
modulus: &'a [u8]Modulus n
phi: &'a [u8]Phi(n) = (p-1)(q-1) for RSA
Auto Trait Implementations§
impl<'a> Freeze for ModExpProtectParams<'a>
impl<'a> RefUnwindSafe for ModExpProtectParams<'a>
impl<'a> Send for ModExpProtectParams<'a>
impl<'a> Sync for ModExpProtectParams<'a>
impl<'a> Unpin for ModExpProtectParams<'a>
impl<'a> UnwindSafe for ModExpProtectParams<'a>
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