1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//! Human-readable algorithm name strings.
//!
//! Each constant is the canonical display name returned by
//! [`identify_signature_algorithm`](crate::identify_signature_algorithm) and
//! [`identify_public_key_algorithm`](crate::identify_public_key_algorithm).
//! Use them instead of raw string literals when matching or comparing
//! algorithm names:
//!
//! ```rust,ignore
//! use synta_certificate::{names, identify_signature_algorithm};
//!
//! match identify_signature_algorithm(oid) {
//! names::SHA256_WITH_RSA => { /* common RSA path */ }
//! names::ECDSA_WITH_SHA256 | names::ECDSA_WITH_SHA384 => { /* EC path */ }
//! names::ML_DSA_65 => { /* post-quantum path */ }
//! _ => {}
//! }
//! ```
// ── ML-DSA (FIPS 204) ─────────────────────────────────────────────────────────
/// Display name for ML-DSA-44.
pub const ML_DSA_44: &str = "ML-DSA-44";
/// Display name for ML-DSA-65.
pub const ML_DSA_65: &str = "ML-DSA-65";
/// Display name for ML-DSA-87.
pub const ML_DSA_87: &str = "ML-DSA-87";
// ── ML-KEM (FIPS 203) ─────────────────────────────────────────────────────────
/// Display name for ML-KEM-512.
pub const ML_KEM_512: &str = "ML-KEM-512";
/// Display name for ML-KEM-768.
pub const ML_KEM_768: &str = "ML-KEM-768";
/// Display name for ML-KEM-1024.
pub const ML_KEM_1024: &str = "ML-KEM-1024";
// ── EdDSA (RFC 8410) ──────────────────────────────────────────────────────────
/// Display name for Ed25519.
pub const ED25519: &str = "Ed25519";
/// Display name for Ed448.
pub const ED448: &str = "Ed448";
// ── RSA signature variants (PKCS #1 / RFC 4055) ───────────────────────────────
/// Display name for MD5 with RSA Encryption (`md5WithRSAEncryption`).
pub const MD5_WITH_RSA: &str = "MD5WithRSA";
/// Display name for SHA-1 with RSA Encryption (`sha1WithRSAEncryption`).
pub const SHA1_WITH_RSA: &str = "SHA1WithRSA";
/// Display name for SHA-256 with RSA Encryption (`sha256WithRSAEncryption`).
pub const SHA256_WITH_RSA: &str = "SHA256WithRSA";
/// Display name for SHA-384 with RSA Encryption (`sha384WithRSAEncryption`).
pub const SHA384_WITH_RSA: &str = "SHA384WithRSA";
/// Display name for SHA-512 with RSA Encryption (`sha512WithRSAEncryption`).
pub const SHA512_WITH_RSA: &str = "SHA512WithRSA";
/// Fallback display name for unrecognized PKCS #1 RSA OIDs.
pub const RSA: &str = "RSA";
// ── ECDSA signature variants (ANSI X9.62 / RFC 5758) ─────────────────────────
/// Display name for ECDSA with SHA-1 (`ecdsa-with-SHA1`).
pub const ECDSA_WITH_SHA1: &str = "ECDSAWithSHA1";
/// Display name for ECDSA with SHA-256 (`ecdsa-with-SHA256`).
pub const ECDSA_WITH_SHA256: &str = "ECDSAWithSHA256";
/// Display name for ECDSA with SHA-384 (`ecdsa-with-SHA384`).
pub const ECDSA_WITH_SHA384: &str = "ECDSAWithSHA384";
/// Display name for ECDSA with SHA-512 (`ecdsa-with-SHA512`).
pub const ECDSA_WITH_SHA512: &str = "ECDSAWithSHA512";
/// Fallback display name for unrecognized ECDSA / EC public-key OIDs.
pub const ECDSA: &str = "ECDSA";
// ── DSA (FIPS 186) ────────────────────────────────────────────────────────────
/// Display name for DSA.
pub const DSA: &str = "DSA";
// ── DSA (FIPS 186) — already above; no change needed ─────────────────────────
// ── RFC 9925 Unsigned ─────────────────────────────────────────────────────────
/// Display name for the unsigned signature algorithm (`id-alg-unsigned`, RFC 9925).
pub const UNSIGNED: &str = "Unsigned";
// ── Fallback ──────────────────────────────────────────────────────────────────
/// Fallback name returned for unrecognized OIDs.
pub const OTHER: &str = "Other";