diff options
-rw-r--r-- | src/lib/block/threefish/threefish.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/block/threefish/threefish.cpp b/src/lib/block/threefish/threefish.cpp index 958175bb8..c8e2aff85 100644 --- a/src/lib/block/threefish/threefish.cpp +++ b/src/lib/block/threefish/threefish.cpp @@ -221,7 +221,7 @@ void Threefish_512::decrypt_n(const byte in[], byte out[], size_t blocks) const void Threefish_512::set_tweak(const byte tweak[], size_t len) { if(len != 16) - throw Exception("Unsupported twofish tweak length"); + throw Exception("Threefish-512 requires 128 bit tweak"); m_T.resize(3); m_T[0] = load_le<u64bit>(tweak, 0); m_T[1] = load_le<u64bit>(tweak, 1); @@ -246,8 +246,8 @@ void Threefish_512::key_schedule(const byte key[], size_t) void Threefish_512::clear() { - zeroise(m_K); - zeroise(m_T); + zap(m_K); + zap(m_T); } } |