pub enum MeshIdentityError {
BadPubkey,
SignatureShape,
SignatureInvalid,
}Expand description
Why a mesh peer’s identity-key signature over the Noise handshake hash
failed verify_mesh_identity.
The mesh-identity signature is the channel-binding step the mutually
attested mesh layers on top of the attestation document: it proves the
enclave that produced the attestation (and announced
crate::attestation::AttestedIdentity::control_pubkey in the doc’s
user_data) is the same party terminating this Noise channel, by
signing the channel’s handshake hash with the matching private key.
Variants§
BadPubkey
The announced 65-byte SEC1 pubkey did not decode as a P-256 point.
SignatureShape
The signature was not a 64-byte raw r||s ECDSA P-256 signature.
SignatureInvalid
The signature did not verify over the handshake hash under the announced pubkey.
Trait Implementations§
Source§impl Debug for MeshIdentityError
impl Debug for MeshIdentityError
Source§impl Display for MeshIdentityError
impl Display for MeshIdentityError
Source§impl Error for MeshIdentityError
impl Error for MeshIdentityError
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 MeshIdentityError
impl RefUnwindSafe for MeshIdentityError
impl Send for MeshIdentityError
impl Sync for MeshIdentityError
impl Unpin for MeshIdentityError
impl UnsafeUnpin for MeshIdentityError
impl UnwindSafe for MeshIdentityError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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