mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
spelling: decrypt
This commit is contained in:
parent
3924f628b4
commit
ca8ddd5f39
@ -153,14 +153,14 @@ bool Crypto::testAes256Cbc()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
SymmetricCipher aes256Descrypt(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt);
|
SymmetricCipher aes256Decrypt(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt);
|
||||||
if (!aes256Descrypt.init(key, iv)) {
|
if (!aes256Decrypt.init(key, iv)) {
|
||||||
raiseError(aes256Descrypt.errorString());
|
raiseError(aes256Decrypt.errorString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
QByteArray decryptedText = aes256Descrypt.process(cipherText, &ok);
|
QByteArray decryptedText = aes256Decrypt.process(cipherText, &ok);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
raiseError(aes256Descrypt.errorString());
|
raiseError(aes256Decrypt.errorString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (decryptedText != plainText) {
|
if (decryptedText != plainText) {
|
||||||
@ -196,14 +196,14 @@ bool Crypto::testAes256Ecb()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
SymmetricCipher aes256Descrypt(SymmetricCipher::Aes256, SymmetricCipher::Ecb, SymmetricCipher::Decrypt);
|
SymmetricCipher aes256Decrypt(SymmetricCipher::Aes256, SymmetricCipher::Ecb, SymmetricCipher::Decrypt);
|
||||||
if (!aes256Descrypt.init(key, iv)) {
|
if (!aes256Decrypt.init(key, iv)) {
|
||||||
raiseError(aes256Descrypt.errorString());
|
raiseError(aes256Decrypt.errorString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
QByteArray decryptedText = aes256Descrypt.process(cipherText, &ok);
|
QByteArray decryptedText = aes256Decrypt.process(cipherText, &ok);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
raiseError(aes256Descrypt.errorString());
|
raiseError(aes256Decrypt.errorString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (decryptedText != plainText) {
|
if (decryptedText != plainText) {
|
||||||
|
Loading…
Reference in New Issue
Block a user