pub enum SigningAlgorithm {
Ed25519,
P256,
P384,
}Expand description
Enumerates the signature algorithms Chio knows how to produce and verify.
Ed25519 is always available. P256 and P384 require the fips
Cargo feature on chio-core-types and route through aws-lc-rs.
This enum serializes as a short lowercase identifier:
"ed25519", "p256", or "p384". When absent from an artifact’s
envelope, consumers MUST treat the algorithm as SigningAlgorithm::Ed25519
for backward compatibility with artifacts produced before this module
existed.
Variants§
Ed25519
Edwards-curve signature on Curve25519. Default, non-FIPS.
P256
ECDSA on NIST P-256 / secp256r1 with SHA-256. Requires fips feature.
P384
ECDSA on NIST P-384 / secp384r1 with SHA-384. Requires fips feature.
Implementations§
Source§impl SigningAlgorithm
impl SigningAlgorithm
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true when this algorithm is the default (Ed25519).
Useful for #[serde(skip_serializing_if)] helpers that keep Ed25519
artifacts byte-identical to the historical format.
Trait Implementations§
Source§impl Clone for SigningAlgorithm
impl Clone for SigningAlgorithm
Source§fn clone(&self) -> SigningAlgorithm
fn clone(&self) -> SigningAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more