pub struct ServerHello {
pub server_key_package: HybridKeyPackage,
pub ciphertext: HybridCiphertext,
pub server_verify_key: HybridVerifyingKey,
pub signature: HybridSignature,
pub session_id: [u8; 32],
pub early_data_accepted: bool,
}Expand description
Server hello message (response to ClientHello)
Fields§
§server_key_package: HybridKeyPackageServer’s hybrid public key
ciphertext: HybridCiphertextEncapsulated secret (ciphertext for client)
server_verify_key: HybridVerifyingKeyServer’s hybrid verifying key
signature: HybridSignatureSignature over handshake transcript
session_id: [u8; 32]Session ID assigned by server
early_data_accepted: booltrue iff the server decrypted and accepted the client’s 0-RTT
early-data. false when there was none, the resumption ticket was
unknown/expired, the blob exceeded the size cap, or AEAD decryption
failed — in every false case the handshake still completes as a
normal 1-RTT exchange.
Trait Implementations§
Source§impl BorshDeserialize for ServerHello
impl BorshDeserialize for ServerHello
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ServerHello
impl BorshSerialize for ServerHello
Source§impl Clone for ServerHello
impl Clone for ServerHello
Source§fn clone(&self) -> ServerHello
fn clone(&self) -> ServerHello
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 moreAuto Trait Implementations§
impl Freeze for ServerHello
impl RefUnwindSafe for ServerHello
impl Send for ServerHello
impl Sync for ServerHello
impl Unpin for ServerHello
impl UnsafeUnpin for ServerHello
impl UnwindSafe for ServerHello
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