pub enum VerifyError {
BadFingerprint,
FingerprintMismatch,
Signature(CertError),
}Expand description
Errors verifying a received same-machine attestation. Every variant is a fall-through (the receiver drops the same-machine fast-path and proceeds with standard pairing), never a hard failure of the pull.
Variants§
BadFingerprint
machine_fingerprint field is not valid base64 or not 32 bytes.
FingerprintMismatch
The attestation’s fingerprint does not match the receiver’s own machine
— i.e. the sender is not actually on this (machine, OS user). The
hostile-forge mitigation (§C step 5) and the legitimate different-uid
case (AC-SM2) both land here.
Signature(CertError)
Signature did not verify under the inline op_pubkey over the canonical
message (tampered field, wrong key, or signed-vs-published mismatch —
AC-SM3).
Trait Implementations§
Source§impl Debug for VerifyError
impl Debug for VerifyError
Source§impl Display for VerifyError
impl Display for VerifyError
impl Eq for VerifyError
Source§impl PartialEq for VerifyError
impl PartialEq for VerifyError
impl StructuralPartialEq for VerifyError
Auto Trait Implementations§
impl Freeze for VerifyError
impl RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl UnsafeUnpin for VerifyError
impl UnwindSafe for VerifyError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.