Skip to content

Commit

Permalink
fix: Changes the AeadKey pub type to aes256ctr_poly1305aes::Key
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Nov 13, 2023
1 parent 2162f51 commit 72b0a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/aespoly1305.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use aes256ctr_poly1305aes::{
aead::{self, Aead, AeadInPlace, NewAead},
aead::{self, Aead, AeadInPlace},
Aes256CtrPoly1305Aes,
};
use rand::{thread_rng, RngCore};

use crate::{crypto::CryptoKey, error::CryptoErrorKind, error::RusticResult};

pub(crate) type Nonce = aead::Nonce<Aes256CtrPoly1305Aes>;
pub(crate) type AeadKey = aead::Key<Aes256CtrPoly1305Aes>;
pub(crate) type AeadKey = aes256ctr_poly1305aes::Key;

/// The `Key` is used to encrypt/MAC and check/decrypt data.
///
Expand Down

0 comments on commit 72b0a5b

Please sign in to comment.