pub struct KemSession { /* private fields */ }Expand description
A decapsulation session.
Implementations§
Source§impl KemSession
impl KemSession
Sourcepub fn new(params: KemSessionParams) -> Self
pub fn new(params: KemSessionParams) -> Self
Create a new decapsulation session.
Provide the local share. Must be called before round 1.
Sourcepub fn submit_partial(
&mut self,
partial: PartialDecryption,
) -> Result<(), KemError>
pub fn submit_partial( &mut self, partial: PartialDecryption, ) -> Result<(), KemError>
Submit a partial decryption from another party.
Sourcepub fn state(&self) -> KemSessionState
pub fn state(&self) -> KemSessionState
Current session state.
Sourcepub fn created_at(&self) -> DateTime<Utc>
pub fn created_at(&self) -> DateTime<Utc>
When the session was created.
Sourcepub fn params(&self) -> &KemSessionParams
pub fn params(&self) -> &KemSessionParams
Session parameters.
Auto Trait Implementations§
impl Freeze for KemSession
impl RefUnwindSafe for KemSession
impl Send for KemSession
impl Sync for KemSession
impl Unpin for KemSession
impl UnsafeUnpin for KemSession
impl UnwindSafe for KemSession
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