Struct rustls::crypto::WebPkiSupportedAlgorithms
source · pub struct WebPkiSupportedAlgorithms {
pub all: &'static [&'static dyn SignatureVerificationAlgorithm],
pub mapping: &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])],
}
Expand description
Describes which webpki
signature verification algorithms are supported and
how they map to TLS SignatureScheme
s.
Fields§
§all: &'static [&'static dyn SignatureVerificationAlgorithm]
A list of all supported signature verification algorithms.
Used for verifying certificate chains.
The order of this list is not significant.
mapping: &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])]
A mapping from TLS SignatureScheme
s to matching webpki signature verification algorithms.
This is one (SignatureScheme
) to many (SignatureVerificationAlgorithm
) because
(depending on the protocol version) there is not necessary a 1-to-1 mapping.
For TLS1.2, all SignatureVerificationAlgorithm
s are tried in sequence.
For TLS1.3, only the first is tried.
The supported schemes in this mapping is communicated to the peer and the order is significant. The first mapping is our highest preference.
Implementations§
source§impl WebPkiSupportedAlgorithms
impl WebPkiSupportedAlgorithms
sourcepub fn supported_schemes(&self) -> Vec<SignatureScheme>
pub fn supported_schemes(&self) -> Vec<SignatureScheme>
Return all the scheme
items in mapping
, maintaining order.
Trait Implementations§
source§impl Clone for WebPkiSupportedAlgorithms
impl Clone for WebPkiSupportedAlgorithms
source§fn clone(&self) -> WebPkiSupportedAlgorithms
fn clone(&self) -> WebPkiSupportedAlgorithms
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WebPkiSupportedAlgorithms
impl Debug for WebPkiSupportedAlgorithms
impl Copy for WebPkiSupportedAlgorithms
Auto Trait Implementations§
impl Freeze for WebPkiSupportedAlgorithms
impl !RefUnwindSafe for WebPkiSupportedAlgorithms
impl Send for WebPkiSupportedAlgorithms
impl Sync for WebPkiSupportedAlgorithms
impl Unpin for WebPkiSupportedAlgorithms
impl !UnwindSafe for WebPkiSupportedAlgorithms
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)