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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes