pub enum ErsError {
HashMismatch {
expected: HashAlgorithm,
actual: HashAlgorithm,
},
UntrustedTsa(String),
BrokenChain(u32),
UnsupportedAlgorithm(HashAlgorithm),
}Expand description
Errors during ERS operations.
Variants§
HashMismatch
Hash algorithm mismatch.
UntrustedTsa(String)
TSA not trusted.
BrokenChain(u32)
Hash chain broken.
UnsupportedAlgorithm(HashAlgorithm)
The record uses an algorithm the verifier can’t hash with.
The evidence-record data model stores fixed 32-byte digests,
which fits SHA-256 but not SHA-384 (48 bytes) or SHA-512
(64 bytes). Supporting those requires widening the hash
fields to Vec<u8> — tracked as a follow-up. Verification
refuses rather than truncating a stronger digest, which would
weaken it.
Trait Implementations§
Source§impl Error for ErsError
impl Error for ErsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ErsError
impl RefUnwindSafe for ErsError
impl Send for ErsError
impl Sync for ErsError
impl Unpin for ErsError
impl UnsafeUnpin for ErsError
impl UnwindSafe for ErsError
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