pub struct X25519;Expand description
X25519(RFC 7748)密钥交换组。
Trait Implementations§
Source§impl SupportedKxGroup for X25519
impl SupportedKxGroup for X25519
Source§fn start(&self) -> Result<Box<dyn ActiveKeyExchange>, RustlsError>
fn start(&self) -> Result<Box<dyn ActiveKeyExchange>, RustlsError>
Start a key exchange. Read more
Source§fn name(&self) -> NamedGroup
fn name(&self) -> NamedGroup
Named group the SupportedKxGroup operates in. Read more
Source§fn start_and_complete(
&self,
peer_pub_key: &[u8],
) -> Result<CompletedKeyExchange, Error>
fn start_and_complete( &self, peer_pub_key: &[u8], ) -> Result<CompletedKeyExchange, Error>
Start and complete a key exchange, in one operation. Read more
Source§fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>
fn ffdhe_group(&self) -> Option<FfdheGroup<'static>>
FFDHE group the
SupportedKxGroup operates in. Read moreSource§fn usable_for_version(&self, _version: ProtocolVersion) -> bool
fn usable_for_version(&self, _version: ProtocolVersion) -> bool
Return
true if this should be offered/selected with the given version. Read moreAuto Trait Implementations§
impl Freeze for X25519
impl RefUnwindSafe for X25519
impl Send for X25519
impl Sync for X25519
impl Unpin for X25519
impl UnsafeUnpin for X25519
impl UnwindSafe for X25519
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