#[non_exhaustive]pub enum KeyAlgorithm {
P256,
P384,
MlDsa87,
}Expand description
The key algorithm of a generated identity, chosen with
IdentityBuilder::key_algorithm.
P-256 is the default: it is what Identity::generate and
Identity::open_or_create make. The CNSA profiles need more: cnsa-1.0 P-384,
cnsa-2.0 ML-DSA-87.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
P256
ECDSA over P-256 with SHA-256.
P384
ECDSA over P-384 with SHA-384.
MlDsa87
ML-DSA-87 (FIPS 204). Only with the aws-lc feature; a peer uses it with
Crypto::AwsLc, as ring has no ML-DSA.
Trait Implementations§
Source§impl Clone for KeyAlgorithm
impl Clone for KeyAlgorithm
impl Copy for KeyAlgorithm
Source§impl Debug for KeyAlgorithm
impl Debug for KeyAlgorithm
Source§impl Default for KeyAlgorithm
impl Default for KeyAlgorithm
impl Eq for KeyAlgorithm
Source§impl Hash for KeyAlgorithm
impl Hash for KeyAlgorithm
Source§impl PartialEq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
impl StructuralPartialEq for KeyAlgorithm
Auto Trait Implementations§
impl Freeze for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnsafeUnpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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