pub enum CryptoError {
}Expand description
Errors originating from cryptographic operations and primitive transformations.
Variants§
EcdsaSign(String)
Failure during ECDSA P-256 signature generation.
EcdsaVerify(String)
Failure during ECDSA P-256 signature verification.
InvalidKey(String)
The provided key data or PEM/DER encoding is invalid.
InvalidPoint(String)
The elliptic curve point coordinates are invalid or not on curve NIST P-256.
Base64Decode(String)
Base64 decoding failed due to malformed characters or padding.
Json(String)
JSON serialization or deserialization failed.
Rng(String)
The cryptographic random number generator failed.
Hmac(String)
HMAC key initialization or digest computation failed.
Pem(String)
PEM certificate/key decoding error.
Seal(String)
Authenticated encryption (sealing) failed.
Open(String)
Authenticated decryption (opening) failed, typically due to a tag mismatch or wrong key.
InvalidEnvelope(String)
A sealed envelope was structurally invalid (e.g. truncated).
Utf8(String)
Decrypted plaintext was not valid UTF-8.
Trait Implementations§
Source§impl Clone for CryptoError
impl Clone for CryptoError
Source§impl Debug for CryptoError
impl Debug for CryptoError
Source§impl Display for CryptoError
impl Display for CryptoError
impl Eq for CryptoError
Source§impl Error for CryptoError
impl Error for CryptoError
1.30.0 · 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
use the Display impl or to_string()