pub struct DecryptionContext { /* private fields */ }Expand description
A decryption context.
Implementations§
Source§impl DecryptionContext
impl DecryptionContext
pub fn generate_no_sort<CB>(mmax: Option<u32>, cb: Option<CB>) -> Vec<MGEntry>
pub fn generate_sort(mgs: &mut Vec<MGEntry>)
pub fn generate<CB>(mmax: Option<u32>, cb: Option<CB>) -> Self
pub fn load_from_file(path: Option<&str>) -> Result<Self, Box<dyn Error>>
pub fn save_to_file(&self, path: Option<&str>) -> Result<(), Box<dyn Error>>
pub fn interpolation_search(&self, mg: &[u8; 32]) -> Option<u32>
pub fn decrypt_to_mg( privkey: &PrivateKey, c: &Cipher, ) -> Result<CompressedEdwardsY, ()>
pub fn decrypt_cipher( &self, privkey: &PrivateKey, c: &Cipher, ) -> Result<u32, ()>
Trait Implementations§
Source§impl Clone for DecryptionContext
impl Clone for DecryptionContext
Source§fn clone(&self) -> DecryptionContext
fn clone(&self) -> DecryptionContext
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 From<DecryptionContext> for Vec<u8>
impl From<DecryptionContext> for Vec<u8>
Source§fn from(dec_ctx: DecryptionContext) -> Self
fn from(dec_ctx: DecryptionContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecryptionContext
impl RefUnwindSafe for DecryptionContext
impl Send for DecryptionContext
impl Sync for DecryptionContext
impl Unpin for DecryptionContext
impl UnsafeUnpin for DecryptionContext
impl UnwindSafe for DecryptionContext
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