pub struct ObliviousTransfer {
pub variant: OTVariant,
pub security_parameter: usize,
}Expand description
Oblivious transfer (OT) protocol.
Fields§
§variant: OTVariant§security_parameter: usizeImplementations§
Source§impl ObliviousTransfer
impl ObliviousTransfer
pub fn new(variant: OTVariant, sec: usize) -> Self
pub fn is_fundamental(&self) -> bool
pub fn n_messages(&self) -> usize
Trait Implementations§
Source§impl Clone for ObliviousTransfer
impl Clone for ObliviousTransfer
Source§fn clone(&self) -> ObliviousTransfer
fn clone(&self) -> ObliviousTransfer
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 moreAuto Trait Implementations§
impl Freeze for ObliviousTransfer
impl RefUnwindSafe for ObliviousTransfer
impl Send for ObliviousTransfer
impl Sync for ObliviousTransfer
impl Unpin for ObliviousTransfer
impl UnsafeUnpin for ObliviousTransfer
impl UnwindSafe for ObliviousTransfer
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