#[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 Ord for EcdsaVariant
impl Ord for EcdsaVariant
Source§fn cmp(&self, other: &EcdsaVariant) -> Ordering
fn cmp(&self, other: &EcdsaVariant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 ==.Source§impl PartialOrd for EcdsaVariant
impl PartialOrd for EcdsaVariant
impl Copy for EcdsaVariant
impl Eq 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