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 more