Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2012-05-08 23:33:21 +0400
committerFelix Geyer <debfx@fobos.de>2012-05-08 23:46:01 +0400
commit38e421d9c1ecc41f6161b0121a55aa3a59889c7f (patch)
tree2e4cecdd2f74169dd2d03f2a24ed4bcd7a9d8780 /src/streams/SymmetricCipherStream.h
parent7790f2e7baa6231bf268bed515ce2c774bf98f93 (diff)
Fix padding handling in SymmetricCipherStream.
The implementation had two issues: - It didn't add a block full of padding when the input size was a multiple of the block size. - It didn't strip the padding when reading data.
Diffstat (limited to 'src/streams/SymmetricCipherStream.h')
-rw-r--r--src/streams/SymmetricCipherStream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/streams/SymmetricCipherStream.h b/src/streams/SymmetricCipherStream.h
index b236cf66e..6a4c9fdee 100644
--- a/src/streams/SymmetricCipherStream.h
+++ b/src/streams/SymmetricCipherStream.h
@@ -41,7 +41,7 @@ protected:
private:
bool readBlock();
- bool writeBlock();
+ bool writeBlock(bool lastBlock);
const QScopedPointer<SymmetricCipher> m_cipher;
QByteArray m_buffer;