pub enum CapabilityCryptoFloor {
AllowClassical,
AllowHybrid,
PqRequired,
}Expand description
Minimum cryptographic posture enforced by the capability validator.
Mirrors the wire form of chio_policy::CryptoFloor and the kernel-side
KernelCryptoFloor. Defined locally in chio-core-types so the
portable verifier (no_std builds, edge runtimes) can branch on the
configured floor without taking a dependency on chio-policy or
chio-kernel. Operators that load a HushSpec policy translate the
parsed floor into this enum at the kernel boundary.
Variants§
AllowClassical
Accept classical-only Ed25519/P-256/P-384 envelopes. Default.
AllowHybrid
Accept either classical-only or hybrid classical-plus-ML-DSA-65 envelopes.
PqRequired
Reject classical-only envelopes; require hybrid signing on every signed capability token.
Implementations§
Source§impl CapabilityCryptoFloor
impl CapabilityCryptoFloor
Sourcepub fn allows_hybrid(&self) -> bool
pub fn allows_hybrid(&self) -> bool
Whether the floor permits hybrid envelopes on the wire.
Sourcepub fn allows_classical_only(&self) -> bool
pub fn allows_classical_only(&self) -> bool
Whether the floor permits classical-only envelopes on the wire.
Trait Implementations§
Source§impl Clone for CapabilityCryptoFloor
impl Clone for CapabilityCryptoFloor
Source§fn clone(&self) -> CapabilityCryptoFloor
fn clone(&self) -> CapabilityCryptoFloor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more