Struct ring_compat::signature::Error [−][src]
pub struct Error { /* fields omitted */ }
This is supported on crate feature
signature
only.Signature errors.
This type is deliberately opaque as to avoid sidechannel leakage which could potentially be used recover signing private keys or forge signatures (e.g. BB’06).
When the std
feature is enabled, it impls std::error::Error
and
supports an optional std::error::Error::source
, which can be used by
things like remote signers (e.g. HSM, KMS) to report I/O or auth errors.
Implementations
impl Error
[src]
impl Error
[src]pub fn new() -> Error
[src]
Create a new error with no associated source
pub fn from_source(
source: impl Into<Box<dyn Error + 'static + Sync + Send, Global>>
) -> Error
[src]
source: impl Into<Box<dyn Error + 'static + Sync + Send, Global>>
) -> Error
Create a new error with an associated source.
NOTE: The “source” should NOT be used to propagate cryptographic errors e.g. signature parsing or verification errors. The intended use cases are for propagating errors related to external signers, e.g. communication/authentication errors with HSMs, KMS, etc.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl !UnwindSafe for Error