aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-28 12:23:02 -0400
committerJack Lloyd <[email protected]>2018-09-28 12:23:02 -0400
commitb9fa8833edf13f0535aa57b53528992198f639fe (patch)
treecaf0e6ec92811ce4c63ee19462253572af46bb34 /src/lib/block
parent7f91d977e718a07ee8a40c325fa70d6baf319ea9 (diff)
Use correct array length in Serpent AVX2
Not an actual problem, but flagged by Coverity
Diffstat (limited to 'src/lib/block')
-rw-r--r--src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp b/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp
index 4e4420d58..92ea909a8 100644
--- a/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp
+++ b/src/lib/block/serpent/serpent_avx2/serpent_avx2.cpp
@@ -50,7 +50,7 @@ namespace Botan {
B0 = B0.rotr<13>(); \
} while(0)
-void Serpent::avx2_encrypt_8(const uint8_t in[64], uint8_t out[64]) const
+void Serpent::avx2_encrypt_8(const uint8_t in[128], uint8_t out[128]) const
{
SIMD_8x32 B0 = SIMD_8x32::load_le(in);
SIMD_8x32 B1 = SIMD_8x32::load_le(in + 32);
@@ -99,7 +99,7 @@ void Serpent::avx2_encrypt_8(const uint8_t in[64], uint8_t out[64]) const
B3.store_le(out + 96);
}
-void Serpent::avx2_decrypt_8(const uint8_t in[64], uint8_t out[64]) const
+void Serpent::avx2_decrypt_8(const uint8_t in[128], uint8_t out[128]) const
{
SIMD_8x32 B0 = SIMD_8x32::load_le(in);
SIMD_8x32 B1 = SIMD_8x32::load_le(in + 32);