pub struct ExchangeProtocol {
pub dh: bool,
pub ecdh: bool,
}Expand description
Key exchange protocol selection
Implements protocols for establishing shared cryptographic keys between parties over insecure channels.
Fields§
§dh: boolDiffie-Hellman key exchange protocol
Allows two parties to establish a shared secret key over a public channel. Forms the basis for many modern key agreement protocols.
ecdh: boolECDH (Elliptic Curve Diffie-Hellman) key exchange
More efficient variant of Diffie-Hellman using elliptic curves. Provides equivalent security with smaller key sizes.
⚠️ Not Implemented: This feature is planned for future releases.
Trait Implementations§
Source§impl Args for ExchangeProtocol
impl Args for ExchangeProtocol
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ExchangeProtocol
impl Debug for ExchangeProtocol
Source§impl Default for ExchangeProtocol
impl Default for ExchangeProtocol
Source§fn default() -> ExchangeProtocol
fn default() -> ExchangeProtocol
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for ExchangeProtocol
impl FromArgMatches for ExchangeProtocol
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ExchangeProtocol
impl RefUnwindSafe for ExchangeProtocol
impl Send for ExchangeProtocol
impl Sync for ExchangeProtocol
impl Unpin for ExchangeProtocol
impl UnsafeUnpin for ExchangeProtocol
impl UnwindSafe for ExchangeProtocol
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