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-07-01 23:58:45 +0400
committerFelix Geyer <debfx@fobos.de>2012-07-01 23:58:45 +0400
commit782223a643fd09edc58f4407bb4d8357003f07cf (patch)
treeb7b982a56db291a84e36af64d9a1583ffdf8d117 /tests/TestKeePass2RandomStream.cpp
parentc844c6b712b8a5a81b847a2675db0e3c8b20bc0b (diff)
Coding style fixes.
Diffstat (limited to 'tests/TestKeePass2RandomStream.cpp')
-rw-r--r--tests/TestKeePass2RandomStream.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/TestKeePass2RandomStream.cpp b/tests/TestKeePass2RandomStream.cpp
index 5e2e381cb..f3523bcf6 100644
--- a/tests/TestKeePass2RandomStream.cpp
+++ b/tests/TestKeePass2RandomStream.cpp
@@ -34,7 +34,7 @@ void TestKeePass2RandomStream::initTestCase()
void TestKeePass2RandomStream::test()
{
const QByteArray key("\x11\x22\x33\x44\x55\x66\x77\x88");
- const int SIZE = 128;
+ const int Size = 128;
SymmetricCipher cipher(SymmetricCipher::Salsa20, SymmetricCipher::Stream, SymmetricCipher::Encrypt,
@@ -46,13 +46,13 @@ void TestKeePass2RandomStream::test()
"1e36b26bd1ebc670d1bd1d665620abf74f78a7f6d29809585a97daec58c6b050"));
QByteArray cipherPad;
- cipherPad.fill('\0', SIZE);
+ cipherPad.fill('\0', Size);
cipher.processInPlace(cipherPad);
QByteArray cipherData;
- cipherData.resize(SIZE);
+ cipherData.resize(Size);
- for (int i = 0; i < SIZE; i++) {
+ for (int i = 0; i < Size; i++) {
cipherData[i] = data[i] ^ cipherPad[i];
}
@@ -73,7 +73,7 @@ void TestKeePass2RandomStream::test()
QByteArray cipherDataEncrypt = cipherEncrypt.process(data);
- QCOMPARE(randomStreamData.size(), SIZE);
+ QCOMPARE(randomStreamData.size(), Size);
QCOMPARE(cipherData, cipherDataEncrypt);
QCOMPARE(randomStreamData, cipherData);
}