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-04-19 00:08:22 +0400
committerFelix Geyer <debfx@fobos.de>2012-04-19 00:08:22 +0400
commit2e011d53625da1df14dd0af58961d9daf200d5c7 (patch)
tree3536bff6d6cbac3cac3a116d4b88fb2be8b6c459 /tests/TestSymmetricCipher.cpp
parent4e5e5c71ca2b8676801c5ab65c3d00df06bfbec7 (diff)
Improve code style.
Diffstat (limited to 'tests/TestSymmetricCipher.cpp')
-rw-r--r--tests/TestSymmetricCipher.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/TestSymmetricCipher.cpp b/tests/TestSymmetricCipher.cpp
index f26c65659..7560a6765 100644
--- a/tests/TestSymmetricCipher.cpp
+++ b/tests/TestSymmetricCipher.cpp
@@ -41,14 +41,16 @@ void TestSymmetricCipher::testAes256CbcEncryption()
QByteArray cipherText = QByteArray::fromHex("f58c4c04d6e5f1ba779eabfb5f7bfbd6");
cipherText.append(QByteArray::fromHex("9cfc4e967edb808d679f777bc6702c7d"));
- SymmetricCipher cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Encrypt, key, iv);
+ SymmetricCipher cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Encrypt,
+ key, iv);
QCOMPARE(cipher.blockSize(), 16);
QCOMPARE(cipher.process(plainText),
cipherText);
QBuffer buffer;
- SymmetricCipherStream stream(&buffer, SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Encrypt, key, iv);
+ SymmetricCipherStream stream(&buffer, SymmetricCipher::Aes256, SymmetricCipher::Cbc,
+ SymmetricCipher::Encrypt, key, iv);
buffer.open(QIODevice::WriteOnly);
stream.open(QIODevice::WriteOnly);
@@ -88,7 +90,8 @@ void TestSymmetricCipher::testAes256CbcDecryption()
plainText);
QBuffer buffer(&cipherText);
- SymmetricCipherStream stream(&buffer, SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt, key, iv);
+ SymmetricCipherStream stream(&buffer, SymmetricCipher::Aes256, SymmetricCipher::Cbc,
+ SymmetricCipher::Decrypt, key, iv);
buffer.open(QIODevice::ReadOnly);
stream.open(QIODevice::ReadOnly);
@@ -118,7 +121,7 @@ void TestSymmetricCipher::testSalsa20()
SymmetricCipher cipher(SymmetricCipher::Salsa20, SymmetricCipher::Stream, SymmetricCipher::Encrypt, key, iv);
QByteArray cipherTextA;
- for (int i=0; i<8; i++) {
+ for (int i = 0; i < 8; i++) {
cipherTextA.append(cipher.process(QByteArray(64, '\0')));
}
cipher.reset();