summaryrefslogtreecommitdiff
path: root/strciphr.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-11-27 21:09:48 -0500
committerJeffrey Walton <noloader@gmail.com>2021-11-27 21:09:48 -0500
commit9dbb3c47aa8b60080aa4ed06a460f0fe3d2869c2 (patch)
treef555fdac11b57350229b5003defb8857a9c5bdad /strciphr.h
parent2bce06d5dbd3f53ebfcff44eef467667e44d8839 (diff)
downloadcryptopp-git-9dbb3c47aa8b60080aa4ed06a460f0fe3d2869c2.tar.gz
Update documentation (GH #1088)
Diffstat (limited to 'strciphr.h')
-rw-r--r--strciphr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/strciphr.h b/strciphr.h
index 5df2fe72..22cd8c24 100644
--- a/strciphr.h
+++ b/strciphr.h
@@ -320,6 +320,12 @@ public:
/// ChaCha20 chacha(key, keySize);
/// chacha.ProcessData(cipher, plain, size);
/// </pre>
+ /// \details You should use distinct buffers for inString and outString. If the buffers
+ /// are the same, then the data will be copied to an internal buffer to avoid GCC alias
+ /// violations. The internal copy will impact performance.
+ /// \sa <A HREF="https://github.com/weidai11/cryptopp/issues/1088">Issue 1088, 36% loss
+ /// of performance with AES</A>, <A HREF="https://github.com/weidai11/cryptopp/issues/101">Issue
+ /// 1010, HIGHT cipher troubles with FileSource</A>
void ProcessData(byte *outString, const byte *inString, size_t length);
/// \brief Resynchronize the cipher
@@ -578,6 +584,12 @@ public:
/// ChaCha20 chacha(key, keySize);
/// chacha.ProcessData(cipher, plain, size);
/// </pre>
+ /// \details You should use distinct buffers for inString and outString. If the buffers
+ /// are the same, then the data will be copied to an internal buffer to avoid GCC alias
+ /// violations. The internal copy will impact performance.
+ /// \sa <A HREF="https://github.com/weidai11/cryptopp/issues/1088">Issue 1088, 36% loss
+ /// of performance with AES</A>, <A HREF="https://github.com/weidai11/cryptopp/issues/101">Issue
+ /// 1010, HIGHT cipher troubles with FileSource</A>
void ProcessData(byte *outString, const byte *inString, size_t length);
/// \brief Resynchronize the cipher