Remove unused AEAD error type. (#540)

This commit is contained in:
th4s
2024-07-29 09:32:04 +02:00
committed by GitHub
parent 3201c38ad7
commit bdebd7a9b2

View File

@@ -17,24 +17,6 @@ pub mod aes_gcm;
use async_trait::async_trait;
use mpz_garble::value::ValueRef;
/// An error that can occur during AEAD operations.
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum AeadError {
#[error(transparent)]
BlockCipherError(#[from] block_cipher::BlockCipherError),
#[error(transparent)]
StreamCipherError(#[from] tlsn_stream_cipher::StreamCipherError),
#[error(transparent)]
UniversalHashError(#[from] tlsn_universal_hash::UniversalHashError),
#[error("Corrupted Tag")]
CorruptedTag,
#[error("Validation Error: {0}")]
ValidationError(String),
#[error(transparent)]
IoError(#[from] std::io::Error),
}
/// This trait defines the interface for AEADs.
#[async_trait]
pub trait Aead: Send {