diff options
Diffstat (limited to 'src/block/noekeon_simd')
-rw-r--r-- | src/block/noekeon_simd/noekeon_simd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/noekeon_simd/noekeon_simd.cpp b/src/block/noekeon_simd/noekeon_simd.cpp index c36f269a4..be7ca86da 100644 --- a/src/block/noekeon_simd/noekeon_simd.cpp +++ b/src/block/noekeon_simd/noekeon_simd.cpp @@ -103,7 +103,8 @@ void Noekeon_SIMD::encrypt_n(const byte in[], byte out[], u32bit blocks) const blocks -= 4; } - Noekeon::encrypt_n(in, out, blocks); + if(blocks) + Noekeon::encrypt_n(in, out, blocks); } /* @@ -159,7 +160,8 @@ void Noekeon_SIMD::decrypt_n(const byte in[], byte out[], u32bit blocks) const blocks -= 4; } - Noekeon::decrypt_n(in, out, blocks); + if(blocks) + Noekeon::decrypt_n(in, out, blocks); } } |