Enum matrix_sdk::encryption::SignatureError
source · pub enum SignatureError {
UnsupportedAlgorithm,
InvalidKeyId(Error),
MissingSigningKey,
UserIdMismatch,
NotAnObject,
NoSignatureFound,
VerificationError(SignatureError),
InvalidKey(KeyError),
InvalidSignature,
SigningKeyChanged(Option<Box<Ed25519PublicKey>>, Option<Box<Ed25519PublicKey>>),
JsonError(CanonicalJsonError),
StoreError(CryptoStoreError),
}
e2e-encryption
only.Expand description
Error type describing different errors that happen when we check or create signatures for a Matrix JSON object.
Variants§
UnsupportedAlgorithm
The signature was made using an unsupported algorithm.
InvalidKeyId(Error)
The ID of the signing key isn’t a valid key ID.
MissingSigningKey
The signing key that should create or check a signature is missing.
UserIdMismatch
The user id of signing key differs from the user id that provided the signature.
NotAnObject
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
NoSignatureFound
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
VerificationError(SignatureError)
The signature couldn’t be verified.
InvalidKey(KeyError)
The public key isn’t a valid ed25519 key.
InvalidSignature
The signature could not be decoded.
SigningKeyChanged(Option<Box<Ed25519PublicKey>>, Option<Box<Ed25519PublicKey>>)
The signing key that used to sign the object has been changed.
JsonError(CanonicalJsonError)
The signed object couldn’t be deserialized.
StoreError(CryptoStoreError)
The store ran into an error.
Trait Implementations§
source§impl Debug for SignatureError
impl Debug for SignatureError
source§impl Display for SignatureError
impl Display for SignatureError
source§impl Error for SignatureError
impl Error for SignatureError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<CanonicalJsonError> for SignatureError
impl From<CanonicalJsonError> for SignatureError
source§fn from(source: CanonicalJsonError) -> SignatureError
fn from(source: CanonicalJsonError) -> SignatureError
source§impl From<CryptoStoreError> for SignatureError
impl From<CryptoStoreError> for SignatureError
source§fn from(source: CryptoStoreError) -> SignatureError
fn from(source: CryptoStoreError) -> SignatureError
source§impl From<Error> for SignatureError
impl From<Error> for SignatureError
source§fn from(e: Error) -> SignatureError
fn from(e: Error) -> SignatureError
source§impl From<Error> for SignatureError
impl From<Error> for SignatureError
source§fn from(source: Error) -> SignatureError
fn from(source: Error) -> SignatureError
source§impl From<KeyError> for SignatureError
impl From<KeyError> for SignatureError
source§fn from(source: KeyError) -> SignatureError
fn from(source: KeyError) -> SignatureError
source§impl From<SignatureError> for DehydrationError
impl From<SignatureError> for DehydrationError
source§fn from(source: SignatureError) -> DehydrationError
fn from(source: SignatureError) -> DehydrationError
source§impl From<SignatureError> for ManualVerifyError
impl From<SignatureError> for ManualVerifyError
source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
source§impl From<SignatureError> for SignatureError
impl From<SignatureError> for SignatureError
source§fn from(source: SignatureError) -> SignatureError
fn from(source: SignatureError) -> SignatureError
Auto Trait Implementations§
impl !RefUnwindSafe for SignatureError
impl Send for SignatureError
impl Sync for SignatureError
impl Unpin for SignatureError
impl !UnwindSafe for SignatureError
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>