Skip to content

Commit

Permalink
fix aes
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Aug 9, 2024
1 parent d818df5 commit 2c76cd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aes/src/soft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ macro_rules! define_aes_impl {

impl BlockCipherEncrypt for $name {
fn encrypt_with_backend(&self, f: impl BlockCipherEncClosure<BlockSize = U16>) {
f.call(&mut self.get_enc_backend())
f.call(&self.get_enc_backend())
}
}

impl BlockCipherDecrypt for $name {
fn decrypt_with_backend(&self, f: impl BlockCipherDecClosure<BlockSize = U16>) {
f.call(&mut self.get_dec_backend())
f.call(&self.get_dec_backend())
}
}

Expand Down Expand Up @@ -154,7 +154,7 @@ macro_rules! define_aes_impl {

impl BlockCipherEncrypt for $name_enc {
fn encrypt_with_backend(&self, f: impl BlockCipherEncClosure<BlockSize = U16>) {
f.call(&mut self.get_enc_backend())
f.call(&self.get_enc_backend())
}
}

Expand Down Expand Up @@ -221,7 +221,7 @@ macro_rules! define_aes_impl {

impl BlockCipherDecrypt for $name_dec {
fn decrypt_with_backend(&self, f: impl BlockCipherDecClosure<BlockSize = U16>) {
f.call(&mut self.get_dec_backend());
f.call(&self.get_dec_backend());
}
}

Expand Down

0 comments on commit 2c76cd9

Please sign in to comment.