Small optimization; don't unnecessarily clear buffers.

This commit is contained in:
Stephen Anthony 2023-01-08 21:52:24 -03:30
parent 6ba428ff37
commit d05957510a
1 changed files with 5 additions and 5 deletions

View File

@ -168,8 +168,8 @@ void MD5::transform(const uInt8* const block)
state[2] += c; state[2] += c;
state[3] += d; state[3] += d;
// Zeroize sensitive information. // Zeroize sensitive information (not required for Stella)
x.fill(0); // x.fill(0);
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -237,9 +237,9 @@ void MD5::finalize()
// Store state in digest // Store state in digest
encode(digest.data(), state.data(), 16); encode(digest.data(), state.data(), 16);
// Zeroize sensitive information // Zeroize sensitive information (not required for Stella)
buffer.fill(0); // buffer.fill(0);
count.fill(0); // count.fill(0);
finalized = true; finalized = true;
} }