#[repr(u8)]pub enum EcdsaVariant {
P256Sha256 = 0,
P256Sha384 = 1,
P256Sha512 = 2,
P384Sha256 = 3,
P384Sha384 = 4,
P384Sha512 = 5,
P521Sha512 = 6,
}Expand description
The served curve/digest pairings. Every variant still binds its hash at mint — a key can never be used with a digest its minter did not choose — but the cross pairings of the served curves and SHA-2 digests are representable, as WebCrypto’s per-operation hash makes them on the platform.
Variants§
P256Sha256 = 0
NIST P-256 (secp256r1) with SHA-256.
P256Sha384 = 1
NIST P-256 with SHA-384.
P256Sha512 = 2
NIST P-256 with SHA-512.
P384Sha256 = 3
NIST P-384 with SHA-256.
P384Sha384 = 4
NIST P-384 (secp384r1) with SHA-384.
P384Sha512 = 5
NIST P-384 with SHA-512.
P521Sha512 = 6
NIST P-521 (secp521r1) with SHA-512. Declared because the
WebCrypto registry serves it and enum growth is breaking; no
current implementation of this package serves it — expect
error.unsupported unless composed with a provider that
specifically offers it.
Trait Implementations§
Source§impl Clone for EcdsaVariant
impl Clone for EcdsaVariant
Source§fn clone(&self) -> EcdsaVariant
fn clone(&self) -> EcdsaVariant
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 moreSource§impl Debug for EcdsaVariant
impl Debug for EcdsaVariant
Source§impl From<EcdsaVariant> for EcdsaVariant
impl From<EcdsaVariant> for EcdsaVariant
Source§fn from(variant: EcdsaVariant) -> Self
fn from(variant: EcdsaVariant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EcdsaVariant
impl PartialEq for EcdsaVariant
Source§fn eq(&self, other: &EcdsaVariant) -> bool
fn eq(&self, other: &EcdsaVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl ComponentType for EcdsaVariant
impl Copy for EcdsaVariant
impl Eq for EcdsaVariant
impl Lift for EcdsaVariant
impl Lower for EcdsaVariant
impl StructuralPartialEq for EcdsaVariant
Auto Trait Implementations§
impl Freeze for EcdsaVariant
impl RefUnwindSafe for EcdsaVariant
impl Send for EcdsaVariant
impl Sync for EcdsaVariant
impl Unpin for EcdsaVariant
impl UnsafeUnpin for EcdsaVariant
impl UnwindSafe for EcdsaVariant
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<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<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
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>
Converts
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>
Converts
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