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.
This commit is contained in:
Felix Geyer
2012-05-08 21:33:21 +02:00
parent 7790f2e7ba
commit 38e421d9c1
4 changed files with 81 additions and 17 deletions

View File

@@ -29,6 +29,7 @@ private Q_SLOTS:
void testAes256CbcEncryption();
void testAes256CbcDecryption();
void testSalsa20();
void testPadding();
};
#endif // KEEPASSX_TESTSYMMETRICCIPHER_H