pub struct SignatureAlgorithm(pub u16);Expand description
TLS signature algorithm identifier (IANA two-byte code point).
§Example
use stygian_browser::tls::SignatureAlgorithm;
let ecdsa = SignatureAlgorithm::ECDSA_SECP256R1_SHA256;
assert_eq!(ecdsa.0, 0x0403);Tuple Fields§
§0: u16Implementations§
Source§impl SignatureAlgorithm
impl SignatureAlgorithm
Sourcepub const ECDSA_SECP256R1_SHA256: Self
pub const ECDSA_SECP256R1_SHA256: Self
ecdsa_secp256r1_sha256.
Sourcepub const RSA_PSS_RSAE_SHA256: Self
pub const RSA_PSS_RSAE_SHA256: Self
rsa_pss_rsae_sha256.
Sourcepub const RSA_PKCS1_SHA256: Self
pub const RSA_PKCS1_SHA256: Self
rsa_pkcs1_sha256.
Sourcepub const ECDSA_SECP384R1_SHA384: Self
pub const ECDSA_SECP384R1_SHA384: Self
ecdsa_secp384r1_sha384.
Sourcepub const RSA_PSS_RSAE_SHA384: Self
pub const RSA_PSS_RSAE_SHA384: Self
rsa_pss_rsae_sha384.
Sourcepub const RSA_PKCS1_SHA384: Self
pub const RSA_PKCS1_SHA384: Self
rsa_pkcs1_sha384.
Sourcepub const RSA_PSS_RSAE_SHA512: Self
pub const RSA_PSS_RSAE_SHA512: Self
rsa_pss_rsae_sha512.
Sourcepub const RSA_PKCS1_SHA512: Self
pub const RSA_PKCS1_SHA512: Self
rsa_pkcs1_sha512.
Sourcepub const ECDSA_SECP521R1_SHA512: Self
pub const ECDSA_SECP521R1_SHA512: Self
ecdsa_secp521r1_sha512.
Sourcepub const RSA_PKCS1_SHA1: Self
pub const RSA_PKCS1_SHA1: Self
rsa_pkcs1_sha1 (legacy).
Sourcepub const ECDSA_SHA1: Self
pub const ECDSA_SHA1: Self
ecdsa_sha1 (legacy).
Trait Implementations§
Source§impl Clone for SignatureAlgorithm
impl Clone for SignatureAlgorithm
Source§fn clone(&self) -> SignatureAlgorithm
fn clone(&self) -> SignatureAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureAlgorithm
impl Debug for SignatureAlgorithm
Source§impl<'de> Deserialize<'de> for SignatureAlgorithm
impl<'de> Deserialize<'de> for SignatureAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SignatureAlgorithm
impl Display for SignatureAlgorithm
Source§impl Hash for SignatureAlgorithm
impl Hash for SignatureAlgorithm
Source§impl PartialEq for SignatureAlgorithm
impl PartialEq for SignatureAlgorithm
Source§impl Serialize for SignatureAlgorithm
impl Serialize for SignatureAlgorithm
impl Copy for SignatureAlgorithm
impl Eq for SignatureAlgorithm
impl StructuralPartialEq for SignatureAlgorithm
Auto Trait Implementations§
impl Freeze for SignatureAlgorithm
impl RefUnwindSafe for SignatureAlgorithm
impl Send for SignatureAlgorithm
impl Sync for SignatureAlgorithm
impl Unpin for SignatureAlgorithm
impl UnsafeUnpin for SignatureAlgorithm
impl UnwindSafe for SignatureAlgorithm
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.