pub enum Error {
Show variants
AesBadInputData,
AesFeatureUnavailable,
AesHwAccelFailed,
AesInvalidInputLength,
AesInvalidKeyLength,
Arc4HwAccelFailed,
AriaFeatureUnavailable,
AriaHwAccelFailed,
AriaInvalidInputLength,
Asn1AllocFailed,
Asn1BufTooSmall,
Asn1InvalidData,
Asn1InvalidLength,
Asn1LengthMismatch,
Asn1OutOfData,
Asn1UnexpectedTag,
Base64BufferTooSmall,
Base64InvalidCharacter,
BlowfishHwAccelFailed,
BlowfishInvalidInputLength,
CamelliaHwAccelFailed,
CamelliaInvalidInputLength,
CcmAuthFailed,
CcmBadInput,
CcmHwAccelFailed,
Chacha20BadInputData,
Chacha20FeatureUnavailable,
Chacha20HwAccelFailed,
ChachapolyAuthFailed,
ChachapolyBadState,
CipherAllocFailed,
CipherAuthFailed,
CipherBadInputData,
CipherFeatureUnavailable,
CipherFullBlockExpected,
CipherHwAccelFailed,
CipherInvalidContext,
CipherInvalidPadding,
CmacHwAccelFailed,
CtrDrbgEntropySourceFailed,
CtrDrbgFileIoError,
CtrDrbgInputTooBig,
CtrDrbgRequestTooBig,
DesHwAccelFailed,
DesInvalidInputLength,
DhmAllocFailed,
DhmBadInputData,
DhmCalcSecretFailed,
DhmFileIoError,
DhmHwAccelFailed,
DhmInvalidFormat,
DhmMakeParamsFailed,
DhmMakePublicFailed,
DhmReadParamsFailed,
DhmReadPublicFailed,
DhmSetGroupFailed,
EcpAllocFailed,
EcpBadInputData,
EcpBufferTooSmall,
EcpFeatureUnavailable,
EcpHwAccelFailed,
EcpInvalidKey,
EcpRandomFailed,
EcpSigLenMismatch,
EcpVerifyFailed,
EntropyFileIoError,
EntropyMaxSources,
EntropyNoSourcesDefined,
EntropyNoStrongSource,
EntropySourceFailed,
GcmAuthFailed,
GcmBadInput,
GcmHwAccelFailed,
HkdfBadInputData,
HmacDrbgEntropySourceFailed,
HmacDrbgFileIoError,
HmacDrbgInputTooBig,
HmacDrbgRequestTooBig,
Md2HwAccelFailed,
Md4HwAccelFailed,
Md5HwAccelFailed,
MdAllocFailed,
MdBadInputData,
MdFeatureUnavailable,
MdFileIoError,
MdHwAccelFailed,
MpiAllocFailed,
MpiBadInputData,
MpiBufferTooSmall,
MpiDivisionByZero,
MpiFileIoError,
MpiInvalidCharacter,
MpiNegativeValue,
MpiNotAcceptable,
NetAcceptFailed,
NetBadInputData,
NetBindFailed,
NetBufferTooSmall,
NetConnReset,
NetConnectFailed,
NetInvalidContext,
NetListenFailed,
NetPollFailed,
NetRecvFailed,
NetSendFailed,
NetSocketFailed,
NetUnknownHost,
OidBufTooSmall,
OidNotFound,
PadlockDataMisaligned,
PemAllocFailed,
PemBadInputData,
PemFeatureUnavailable,
PemInvalidData,
PemInvalidEncIv,
PemNoHeaderFooterPresent,
PemPasswordMismatch,
PemPasswordRequired,
PemUnknownEncAlg,
PkAllocFailed,
PkBadInputData,
PkFeatureUnavailable,
PkFileIoError,
PkHwAccelFailed,
PkInvalidAlg,
PkInvalidPubkey,
PkKeyInvalidFormat,
PkKeyInvalidVersion,
PkPasswordMismatch,
PkPasswordRequired,
PkSigLenMismatch,
PkTypeMismatch,
PkUnknownNamedCurve,
PkUnknownPkAlg,
Pkcs12BadInputData,
Pkcs12FeatureUnavailable,
Pkcs12PasswordMismatch,
Pkcs12PbeInvalidFormat,
Pkcs5BadInputData,
Pkcs5FeatureUnavailable,
Pkcs5InvalidFormat,
Pkcs5PasswordMismatch,
Poly1305BadInputData,
Poly1305FeatureUnavailable,
Poly1305HwAccelFailed,
Ripemd160HwAccelFailed,
RsaBadInputData,
RsaHwAccelFailed,
RsaInvalidPadding,
RsaKeyCheckFailed,
RsaKeyGenFailed,
RsaOutputTooLarge,
RsaPrivateFailed,
RsaPublicFailed,
RsaRngFailed,
RsaUnsupportedOperation,
RsaVerifyFailed,
Sha1HwAccelFailed,
Sha256HwAccelFailed,
Sha512HwAccelFailed,
SslAllocFailed,
SslAsyncInProgress,
SslBadHsCertificate,
SslBadHsCertificateRequest,
SslBadHsCertificateVerify,
SslBadHsChangeCipherSpec,
SslBadHsClientHello,
SslBadHsClientKeyExchange,
SslBadHsClientKeyExchangeCs,
SslBadHsClientKeyExchangeRp,
SslBadHsFinished,
SslBadHsNewSessionTicket,
SslBadHsProtocolVersion,
SslBadHsServerHello,
SslBadHsServerHelloDone,
SslBadHsServerKeyExchange,
SslBadInputData,
SslBufferTooSmall,
SslCaChainRequired,
SslCertificateRequired,
SslCertificateTooLarge,
SslClientReconnect,
SslCompressionFailed,
SslConnEof,
SslContinueProcessing,
SslCounterWrapping,
SslFatalAlertMessage,
SslFeatureUnavailable,
SslHelloVerifyRequired,
SslHwAccelFailed,
SslHwAccelFallthrough,
SslInternalError,
SslInvalidMac,
SslInvalidRecord,
SslInvalidVerifyHash,
SslNoCipherChosen,
SslNoClientCertificate,
SslNoRng,
SslNoUsableCiphersuite,
SslNonFatal,
SslPeerCloseNotify,
SslPeerVerifyFailed,
SslPkTypeMismatch,
SslPrivateKeyRequired,
SslSessionTicketExpired,
SslTimeout,
SslUnexpectedMessage,
SslUnexpectedRecord,
SslUnknownCipher,
SslUnknownIdentity,
SslWaitingServerHelloRenego,
SslWantRead,
SslWantWrite,
X509AllocFailed,
X509BadInputData,
X509BufferTooSmall,
X509CertUnknownFormat,
X509CertVerifyFailed,
X509FatalError,
X509FeatureUnavailable,
X509FileIoError,
X509InvalidAlg,
X509InvalidDate,
X509InvalidExtensions,
X509InvalidFormat,
X509InvalidName,
X509InvalidSerial,
X509InvalidSignature,
X509InvalidVersion,
X509SigMismatch,
X509UnknownOid,
X509UnknownSigAlg,
X509UnknownVersion,
XteaHwAccelFailed,
XteaInvalidInputLength,
Other(c_int),
Utf8Error(Option<Utf8Error>),
// some variants omitted
}