pub enum Error {
Show 13 variants
HpkeInvalidOutputLength,
UnknownKdfAlgorithm,
KemInvalidSecretKey,
KemInvalidPublicKey,
KemInvalidCiphertext,
UnknownKemAlgorithm,
UnsupportedKemOperation,
UnknownAeadAlgorithm,
AeadInvalidNonce,
AeadOpenError,
AeadInvalidCiphertext,
InsufficientRandomness,
CryptoLibraryError(String),
}
Expand description
Errors thrown by crate::HpkeCrypto
trait implementations.
Variants§
HpkeInvalidOutputLength
The output length is invalid (too large).
UnknownKdfAlgorithm
Unknown or unsupported KDF algorithm.
KemInvalidSecretKey
Invalid secret key for the KEM.
KemInvalidPublicKey
Invalid public key for the KEM.
KemInvalidCiphertext
Invalid ciphertext for the KEM.
UnknownKemAlgorithm
Unknown or unsupported KEM algorithm,
UnsupportedKemOperation
Unsupported operation for KEM algorithm.
UnknownAeadAlgorithm
Unknown or unsupported AEAD algorithm.
AeadInvalidNonce
Invalid nonce for the AEAD algorithm.
AeadOpenError
Error opening an AEAD cipher text.
AeadInvalidCiphertext
Invalid cipher text for the AEAD algorithm.
InsufficientRandomness
Insufficient randomness to perform the operation.
CryptoLibraryError(String)
A crypto library error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Mutably borrows from an owned value. Read more