pub enum SignatureScheme {
Pkcs1WithSha256 = 1_025,
Pkcs1WithSha384 = 1_281,
Pkcs1WithSha512 = 1_537,
PssWithSha256 = 2_052,
PssWithSha384 = 2_053,
PssWithSha512 = 2_054,
EcdsaWithP256AndSha256 = 1_027,
EcdsaWithP384AndSha384 = 1_283,
EcdsaWithP521AndSha512 = 1_539,
Ed25519 = 2_055,
Pkcs1WithSha1 = 513,
EcdsaWithSha1 = 515,
}Expand description
A TLS signature scheme, which names a signature and hash together ([RFC 8446] §4.2.3).
Variants§
Pkcs1WithSha256 = 1_025
PKCS1_WITH_SHA256 (0x0401).
Pkcs1WithSha384 = 1_281
PKCS1_WITH_SHA384 (0x0501).
Pkcs1WithSha512 = 1_537
PKCS1_WITH_SHA512 (0x0601).
PssWithSha256 = 2_052
PSS_WITH_SHA256 (0x0804).
PssWithSha384 = 2_053
PSS_WITH_SHA384 (0x0805).
PssWithSha512 = 2_054
PSS_WITH_SHA512 (0x0806).
EcdsaWithP256AndSha256 = 1_027
ECDSA_WITH_P256_AND_SHA256 (0x0403).
EcdsaWithP384AndSha384 = 1_283
ECDSA_WITH_P384_AND_SHA384 (0x0503).
EcdsaWithP521AndSha512 = 1_539
ECDSA_WITH_P521_AND_SHA512 (0x0603).
Ed25519 = 2_055
ED25519 (0x0807).
Pkcs1WithSha1 = 513
PKCS1_WITH_SHA1 (0x0201).
EcdsaWithSha1 = 515
ECDSA_WITH_SHA1 (0x0203).
Trait Implementations§
Source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
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 SignatureScheme
Source§impl Debug for SignatureScheme
impl Debug for SignatureScheme
impl Eq for SignatureScheme
Source§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnsafeUnpin for SignatureScheme
impl UnwindSafe for SignatureScheme
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.