summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-17 13:20:56 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-17 13:20:56 -0400
commitffc1d4d9f72ce3eb35f0c465ea4cd37f5d812620 (patch)
tree23dd46ff39cd07e609e13bc920c196b4528a70c2
parent585397d172fea45fd7cc6adfa63c6dcd110499af (diff)
downloadcryptopp-git-ffc1d4d9f72ce3eb35f0c465ea4cd37f5d812620.tar.gz
Update comments
-rw-r--r--strciphr.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/strciphr.cpp b/strciphr.cpp
index fb8d94b9..e0bbd26d 100644
--- a/strciphr.cpp
+++ b/strciphr.cpp
@@ -234,17 +234,6 @@ void CFB_CipherTemplate<BASE>::ProcessData(byte *outString, const byte *inString
// It almost feels as if the compiler does not see the string is transformed
// in-place so it short-circuits the transform. However, if we use a stand-alone
// reproducer with the same data then the issue is _not_ present.
- //
- // One workaround is a distinct and aligned temporary buffer. It [mostly] works
- // as expected but requires an extra allocation (casts not shown):
- //
- // std::string temp(inString, length);
- // policy.Iterate(outString, &temp[0], cipherDir, length / bytesPerIteration);
- //
- // Another workaround is:
- //
- // memcpy(outString, inString, length);
- // policy.Iterate(outString, outString, cipherDir, length / bytesPerIteration);
byte* savedOutString = outString;
size_t savedLength = length;