pub struct PqServerResponse {
pub x25519_pub: [u8; 32],
pub kyber_ciphertext: Vec<u8>,
}Expand description
Server response bundle: X25519 public key + Kyber ciphertext.
Fields§
§x25519_pub: [u8; 32]Server X25519 public key (32 bytes).
kyber_ciphertext: Vec<u8>Kyber768 ciphertext encapsulating the Kyber shared secret.
Implementations§
Trait Implementations§
Source§impl Clone for PqServerResponse
impl Clone for PqServerResponse
Source§fn clone(&self) -> PqServerResponse
fn clone(&self) -> PqServerResponse
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 PqServerResponse
impl RefUnwindSafe for PqServerResponse
impl Send for PqServerResponse
impl Sync for PqServerResponse
impl Unpin for PqServerResponse
impl UnsafeUnpin for PqServerResponse
impl UnwindSafe for PqServerResponse
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