Struct WebPkiSupportedAlgorithms
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§
§impl WebPkiSupportedAlgorithms
impl WebPkiSupportedAlgorithms
pub fn supported_schemes(&self) -> Vec<SignatureScheme>
pub fn supported_schemes(&self) -> Vec<SignatureScheme>
Return all the scheme
items in mapping
, maintaining order.
Trait Implementations§
§impl Clone for WebPkiSupportedAlgorithms
impl Clone for WebPkiSupportedAlgorithms
§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§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more