diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-11-27 21:09:48 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-11-27 21:09:48 -0500 |
commit | 9dbb3c47aa8b60080aa4ed06a460f0fe3d2869c2 (patch) | |
tree | f555fdac11b57350229b5003defb8857a9c5bdad /strciphr.h | |
parent | 2bce06d5dbd3f53ebfcff44eef467667e44d8839 (diff) | |
download | cryptopp-git-9dbb3c47aa8b60080aa4ed06a460f0fe3d2869c2.tar.gz |
Update documentation (GH #1088)
Diffstat (limited to 'strciphr.h')
-rw-r--r-- | strciphr.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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
|