pub struct SecP256R1;Expand description
secp256r1(NIST P-256)密钥交换组。
Trait Implementations§
Source§impl SupportedKxGroup for SecP256R1
impl SupportedKxGroup for SecP256R1
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 SecP256R1
impl RefUnwindSafe for SecP256R1
impl Send for SecP256R1
impl Sync for SecP256R1
impl Unpin for SecP256R1
impl UnsafeUnpin for SecP256R1
impl UnwindSafe for SecP256R1
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