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:
Diffstat (limited to 'src/crypto/Crypto.cpp')
-rw-r--r--src/crypto/Crypto.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/crypto/Crypto.cpp b/src/crypto/Crypto.cpp
index 4669de69a..d00be720b 100644
--- a/src/crypto/Crypto.cpp
+++ b/src/crypto/Crypto.cpp
@@ -153,14 +153,14 @@ bool Crypto::testAes256Cbc()
return false;
}
- SymmetricCipher aes256Descrypt(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt);
- if (!aes256Descrypt.init(key, iv)) {
- raiseError(aes256Descrypt.errorString());
+ SymmetricCipher aes256Decrypt(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt);
+ if (!aes256Decrypt.init(key, iv)) {
+ raiseError(aes256Decrypt.errorString());
return false;
}
- QByteArray decryptedText = aes256Descrypt.process(cipherText, &ok);
+ QByteArray decryptedText = aes256Decrypt.process(cipherText, &ok);
if (!ok) {
- raiseError(aes256Descrypt.errorString());
+ raiseError(aes256Decrypt.errorString());
return false;
}
if (decryptedText != plainText) {
@@ -196,14 +196,14 @@ bool Crypto::testAes256Ecb()
return false;
}
- SymmetricCipher aes256Descrypt(SymmetricCipher::Aes256, SymmetricCipher::Ecb, SymmetricCipher::Decrypt);
- if (!aes256Descrypt.init(key, iv)) {
- raiseError(aes256Descrypt.errorString());
+ SymmetricCipher aes256Decrypt(SymmetricCipher::Aes256, SymmetricCipher::Ecb, SymmetricCipher::Decrypt);
+ if (!aes256Decrypt.init(key, iv)) {
+ raiseError(aes256Decrypt.errorString());
return false;
}
- QByteArray decryptedText = aes256Descrypt.process(cipherText, &ok);
+ QByteArray decryptedText = aes256Decrypt.process(cipherText, &ok);
if (!ok) {
- raiseError(aes256Descrypt.errorString());
+ raiseError(aes256Decrypt.errorString());
return false;
}
if (decryptedText != plainText) {