aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/aont/package.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constructs/aont/package.cpp')
-rw-r--r--src/constructs/aont/package.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constructs/aont/package.cpp b/src/constructs/aont/package.cpp
index e10087060..1e25a3b24 100644
--- a/src/constructs/aont/package.cpp
+++ b/src/constructs/aont/package.cpp
@@ -49,7 +49,7 @@ void aont_package(RandomNumberGenerator& rng,
u32bit left = std::min<u32bit>(cipher->BLOCK_SIZE,
input_len - cipher->BLOCK_SIZE * i);
- buf.clear();
+ zeroise(buf);
copy_mem(&buf[0], output + cipher->BLOCK_SIZE * i, left);
for(u32bit j = 0; j != 4; ++j)
@@ -95,7 +95,7 @@ void aont_unpackage(BlockCipher* cipher,
u32bit left = std::min<u32bit>(cipher->BLOCK_SIZE,
input_len - cipher->BLOCK_SIZE * (i+1));
- buf.clear();
+ zeroise(buf);
copy_mem(&buf[0], input + cipher->BLOCK_SIZE * i, left);
for(u32bit j = 0; j != 4; ++j)