#[non_exhaustive]pub enum ProviderInputError {
Show 13 variants
EcdhKey,
ConsumedEphemeralKey,
DhKey,
HkdfParameters,
Pbkdf2Parameters,
ConcatKdfParameters,
LegacyDhKdfParameters,
PrimitiveInitialization(&'static str),
AesCbcFraming,
AesCbcCiphertext,
AesGcmFraming,
AesKeyWrapFraming,
LegacyRsaOaepMgf,
}Expand description
Structured invalid-input reasons returned by cryptographic providers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EcdhKey
An EC scalar or peer point is not valid for the selected named curve.
ConsumedEphemeralKey
An operation-owned ephemeral sender key has already been consumed.
DhKey
Finite-field domain, scalar, or peer fails DH validation.
HkdfParameters
An HKDF request violates the primitive’s parameter or output contract.
Pbkdf2Parameters
A PBKDF2 request has invalid iterations, length, or unrelated context.
ConcatKdfParameters
A ConcatKDF request violates its bit-string or counter contract.
LegacyDhKdfParameters
A legacy DH KDF request has invalid framing or exceeds its byte counter.
PrimitiveInitialization(&'static str)
A primitive rejected a key or IV after its public preconditions were checked.
AesCbcFraming
AES-CBC input does not contain an IV followed by complete blocks.
AesCbcCiphertext
AES-CBC block decryption failed.
AesGcmFraming
AES-GCM input does not contain a nonce and authentication tag.
AesKeyWrapFraming
AES key-wrap input or output framing is invalid.
LegacyRsaOaepMgf
explicit MGF parameters are supported for both RSA-OAEP URIs
Legacy compatibility variant retained for downstream construction and matching.
Explicit MGF parameters are valid for both RSA-OAEP URIs, so current providers never return this reason.
Trait Implementations§
Source§impl Clone for ProviderInputError
impl Clone for ProviderInputError
Source§impl Debug for ProviderInputError
impl Debug for ProviderInputError
Source§impl Display for ProviderInputError
impl Display for ProviderInputError
impl Eq for ProviderInputError
Source§impl Error for ProviderInputError
impl Error for ProviderInputError
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()