From c52427158010e1b5bbd32c7009f41496ff7bca87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 9 Aug 2024 21:49:19 +0300 Subject: [PATCH] fix kuznyechik --- kuznyechik/src/neon/backends.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kuznyechik/src/neon/backends.rs b/kuznyechik/src/neon/backends.rs index 19158f54..30fd2c0f 100644 --- a/kuznyechik/src/neon/backends.rs +++ b/kuznyechik/src/neon/backends.rs @@ -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(); @@ -212,7 +212,7 @@ impl<'a> BlockCipherEncBackend for EncBackend<'a> { } #[inline] - fn encrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks>) { + fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks>) { let k = self.0; unsafe { let (in_ptr, out_ptr) = blocks.into_raw(); @@ -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(); @@ -277,7 +277,7 @@ impl<'a> BlockCipherDecBackend for DecBackend<'a> { } } #[inline] - fn decrypt_par_blocks(&mut self, blocks: InOut<'_, '_, ParBlocks>) { + fn decrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks>) { let k = self.0; unsafe { let (in_ptr, out_ptr) = blocks.into_raw();