pub enum AttestError {
UnknownSuite(String),
UnknownDiscipline(String),
DisciplineMismatch {
marker: SignatureDiscipline,
input: SignatureDiscipline,
},
KeyMismatch,
InvalidSignature,
}Expand description
Typed rejection for the v2 attestation paths — fail closed, never a skipped check (REQ-701/REQ-708, LangSec discipline).
Variants§
UnknownSuite(String)
The named suite is not implemented by this verifier (REQ-708: reject, don’t repair — and never skip).
UnknownDiscipline(String)
An unrecognised discipline marker string.
DisciplineMismatch
The signature’s declared discipline does not match the discipline of the verification call — e.g. a v1 signature presented to an envelope (v2) path (REQ-701, review finding 6).
Fields
§
marker: SignatureDisciplineDiscipline the signature declares.
§
input: SignatureDisciplineDiscipline the verification input requires.
KeyMismatch
The presented key is not the attestation’s from key.
InvalidSignature
Cryptographic verification failed over the reconstructed preimage.
Trait Implementations§
Source§impl Clone for AttestError
impl Clone for AttestError
Source§impl Debug for AttestError
impl Debug for AttestError
Source§impl Display for AttestError
impl Display for AttestError
impl Eq for AttestError
Source§impl PartialEq for AttestError
impl PartialEq for AttestError
impl StructuralPartialEq for AttestError
Auto Trait Implementations§
impl Forget for AttestError
impl Freeze for AttestError
impl Move for AttestError
impl RefUnwindSafe for AttestError
impl Send for AttestErrorwhere
RawVecInner: Send,
impl Sync for AttestErrorwhere
RawVecInner: Sync,
impl Unpin for AttestError
impl UnsafeUnpin for AttestError
impl UnwindSafe for AttestErrorwhere
RawVecInner: UnwindSafe,
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