pub struct ClientCryptoContext {
pub shared_key: Option<Aes256GcmSiv>,
pub client_private: EphemeralSecret,
pub client_public: String,
pub server_public: Option<String>,
}
Expand description
Represents the server from the perspective of a client
Fields§
§client_private: EphemeralSecret
§client_public: String
§server_public: Option<String>
Implementations§
source§impl ClientCryptoContext
impl ClientCryptoContext
pub fn new() -> Self
pub fn is_complete(&self) -> bool
pub fn get_public_key_domain(&self, base_domain: &String) -> String
Auto Trait Implementations§
impl Freeze for ClientCryptoContext
impl RefUnwindSafe for ClientCryptoContext
impl Send for ClientCryptoContext
impl Sync for ClientCryptoContext
impl Unpin for ClientCryptoContext
impl UnwindSafe for ClientCryptoContext
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