pub enum SubkeyChainError {
BootstrapPubkeyDecode(String),
BootstrapPubkeyLength(usize),
BootstrapPubkeyInvalid(String),
SignatureDecode(String),
SignatureLength(usize),
SubkeyPubkeyLength(usize),
VerifyFailed,
SelfReferential,
}Expand description
Errors produced by verify_subkey_chain.
Variants§
BootstrapPubkeyDecode(String)
bootstrap_pubkey base64url decode failed.
BootstrapPubkeyLength(usize)
bootstrap_pubkey bytes were the wrong length (expect 33).
BootstrapPubkeyInvalid(String)
bootstrap_pubkey bytes do not parse as a valid P-256 point.
SignatureDecode(String)
subkey_binding_signature base64url decode failed.
SignatureLength(usize)
Signature bytes were the wrong length (expect 64).
SubkeyPubkeyLength(usize)
The supplied subkey_pubkey bytes were not 33 (compressed SEC1).
VerifyFailed
Signature did not verify against the binding message under the supplied bootstrap pubkey.
SelfReferential
Chain references a bootstrap pubkey identical to the subkey pubkey — self-referential chains are rejected because they do not prove continuity.
Trait Implementations§
Source§impl Debug for SubkeyChainError
impl Debug for SubkeyChainError
Source§impl Display for SubkeyChainError
impl Display for SubkeyChainError
Source§impl Error for SubkeyChainError
impl Error for SubkeyChainError
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 SubkeyChainError
impl RefUnwindSafe for SubkeyChainError
impl Send for SubkeyChainError
impl Sync for SubkeyChainError
impl Unpin for SubkeyChainError
impl UnsafeUnpin for SubkeyChainError
impl UnwindSafe for SubkeyChainError
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