pub struct Combinedcipher {
pub cipher: [u8; 1120],
/* private fields */
}Expand description
The combinated shared to share between persons to obtain the secret key as well as the shared_key on server side
Fields§
§cipher: [u8; 1120]Implementations§
Source§impl Combinedcipher
impl Combinedcipher
Sourcepub fn new(
key: &Combinedkey,
pubkey: &Combinedpub,
) -> Result<Combinedcipher, PqxError>
pub fn new( key: &Combinedkey, pubkey: &Combinedpub, ) -> Result<Combinedcipher, PqxError>
Generate the cipher from private key of server, public key of client to be sent to client.
Trait Implementations§
Source§impl Clone for Combinedcipher
impl Clone for Combinedcipher
Source§fn clone(&self) -> Combinedcipher
fn clone(&self) -> Combinedcipher
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 moreSource§impl Debug for Combinedcipher
impl Debug for Combinedcipher
Source§impl Drop for Combinedcipher
impl Drop for Combinedcipher
Source§impl PartialEq for Combinedcipher
impl PartialEq for Combinedcipher
impl Eq for Combinedcipher
impl StructuralPartialEq for Combinedcipher
Auto Trait Implementations§
impl Freeze for Combinedcipher
impl RefUnwindSafe for Combinedcipher
impl Send for Combinedcipher
impl Sync for Combinedcipher
impl Unpin for Combinedcipher
impl UnwindSafe for Combinedcipher
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