From 0274a9a552503800f4dcfeb90a5af61386aa7ed9 Mon Sep 17 00:00:00 2001 From: mamoniot Date: Mon, 27 Mar 2023 13:29:32 -0400 Subject: [PATCH] updated comments --- zssp/src/zssp.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/zssp/src/zssp.rs b/zssp/src/zssp.rs index bf100f649..f0d4fcf6a 100644 --- a/zssp/src/zssp.rs +++ b/zssp/src/zssp.rs @@ -66,13 +66,20 @@ pub enum ReceiveResult<'a, 'b, Application: ApplicationLayer> { /// /// A FIPS/NIST compliant variant of Noise_XK with hybrid Kyber1024 PQ data forward secrecy. pub struct Session<'a, Application: ApplicationLayer> { + /// The receive vontext associated with this session, + /// only this context can receive messages from the remote peer. + /// **Read-only** pub context: &'a Context<'a, Application>, - /// This side's locally unique session ID + /// This side's locally unique session ID. + /// **Read-only** pub id: SessionId, - /// An arbitrary application defined object associated with each session + /// An arbitrary application defined object associated with each session. + /// **Read-only** pub application_data: Application::Data, + /// The static public key of the remote peer. + /// **Read-only** pub static_public_key: P384PublicKey, send_counter: AtomicU64,