#[non_exhaustive]pub enum SignatureAlgorithm {
EcdsaP256Sha256,
EcdsaP384Sha384,
Ed25519,
MlDsa44,
MlDsa65,
MlDsa87,
}Expand description
A cosigner signature algorithm (Section 5.3.3 of the draft).
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.
EcdsaP256Sha256
ECDSA over P-256 with SHA-256.
EcdsaP384Sha384
ECDSA over P-384 with SHA-384.
Ed25519
Ed25519 (RFC 8032).
MlDsa44
ML-DSA-44 (FIPS 204).
MlDsa65
ML-DSA-65 (FIPS 204).
MlDsa87
ML-DSA-87 (FIPS 204).
Implementations§
Source§impl SignatureAlgorithm
impl SignatureAlgorithm
Sourcepub fn from_algorithm_oid(oid: &str) -> Option<Self>
pub fn from_algorithm_oid(oid: &str) -> Option<Self>
Identify an algorithm by its X.509 AlgorithmIdentifier OID, as carried in the CA’s MTCCertificationAuthority extension or configured directly.
Trait Implementations§
Source§impl Clone for SignatureAlgorithm
impl Clone for SignatureAlgorithm
impl Copy for SignatureAlgorithm
Source§impl Debug for SignatureAlgorithm
impl Debug for SignatureAlgorithm
impl Eq for SignatureAlgorithm
Source§impl PartialEq for SignatureAlgorithm
impl PartialEq 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