mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-08 21:08:04 -05:00
Remove unused AEAD error type. (#540)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user