enum LeafKeyType {
Rsa {
modulus_bits: usize,
},
EcdsaP256,
EcdsaP384,
}Expand description
The leaf key types the SDK can sign handshakes for.
Variants§
Implementations§
Source§impl LeafKeyType
impl LeafKeyType
Sourcefn from_spki(spki: &[u8]) -> Option<Self>
fn from_spki(spki: &[u8]) -> Option<Self>
Reads the key type from the DER AlgorithmIdentifier at the start of an SPKI. DER encodes
each identifier as a single byte string, so comparing prefixes is exact.
fn accepts(self, scheme: TlsSigScheme) -> bool
Sourcefn is_verifiable(self) -> bool
fn is_verifiable(self) -> bool
RSA keys outside 2048 to 8192 bits are only checked for a successful signature, since the rustls providers reject them.
Trait Implementations§
Source§impl Clone for LeafKeyType
impl Clone for LeafKeyType
Source§fn clone(&self) -> LeafKeyType
fn clone(&self) -> LeafKeyType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LeafKeyType
Source§impl Debug for LeafKeyType
impl Debug for LeafKeyType
impl Eq for LeafKeyType
Source§impl PartialEq for LeafKeyType
impl PartialEq for LeafKeyType
impl StructuralPartialEq for LeafKeyType
Auto Trait Implementations§
impl Freeze for LeafKeyType
impl RefUnwindSafe for LeafKeyType
impl Send for LeafKeyType
impl Sync for LeafKeyType
impl Unpin for LeafKeyType
impl UnsafeUnpin for LeafKeyType
impl UnwindSafe for LeafKeyType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more