Skip to content

Commit

Permalink
fix kuznyechik
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Aug 9, 2024
1 parent 2c76cd9 commit c524271
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kuznyechik/src/neon/backends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<'a> ParBlocksSizeUser for EncBackend<'a> {

impl<'a> BlockCipherEncBackend for EncBackend<'a> {
#[inline]
fn encrypt_block(&mut self, block: InOut<'_, '_, Block>) {
fn encrypt_block(&self, block: InOut<'_, '_, Block>) {
let k = self.0;
unsafe {
let (in_ptr, out_ptr) = block.into_raw();
Expand All @@ -212,7 +212,7 @@ impl<'a> BlockCipherEncBackend for EncBackend<'a> {
}

#[inline]
fn encrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>) {
fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>) {
let k = self.0;
unsafe {
let (in_ptr, out_ptr) = blocks.into_raw();
Expand Down Expand Up @@ -255,7 +255,7 @@ impl<'a> ParBlocksSizeUser for DecBackend<'a> {

impl<'a> BlockCipherDecBackend for DecBackend<'a> {
#[inline]
fn decrypt_block(&mut self, block: InOut<'_, '_, Block>) {
fn decrypt_block(&self, block: InOut<'_, '_, Block>) {
let k = self.0;
unsafe {
let (in_ptr, out_ptr) = block.into_raw();
Expand All @@ -277,7 +277,7 @@ impl<'a> BlockCipherDecBackend for DecBackend<'a> {
}
}
#[inline]
fn decrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks<Self>>) {
fn decrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>) {
let k = self.0;
unsafe {
let (in_ptr, out_ptr) = blocks.into_raw();
Expand Down

0 comments on commit c524271

Please sign in to comment.