mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-23 16:51:22 -04:00
Merge branch 'master'
Conflicts: INSTALL.md release-tool src/browser/BrowserOptionDialog.cpp src/browser/BrowserService.cpp src/browser/BrowserService.h src/browser/NativeMessagingBase.h src/browser/NativeMessagingHost.h src/core/Uuid.cpp src/gui/DatabaseTabWidget.cpp src/gui/DatabaseWidget.cpp src/gui/EditWidget.cpp src/gui/MainWindow.cpp src/gui/MainWindow.ui src/proxy/NativeMessagingHost.h src/sshagent/ASN1Key.cpp
This commit is contained in:
commit
ca27fb06d5
52 changed files with 5657 additions and 1106 deletions
|
@ -103,15 +103,14 @@ namespace
|
|||
|
||||
mpi_invm(u, q, p);
|
||||
|
||||
iqmp_hex.resize((bap.length() + 1) * 2);
|
||||
gcry_mpi_print(
|
||||
GCRYMPI_FMT_HEX, reinterpret_cast<unsigned char*>(iqmp_hex.data()), iqmp_hex.length(), nullptr, u);
|
||||
iqmp_hex.resize(bap.length() * 2);
|
||||
gcry_mpi_print(GCRYMPI_FMT_HEX, reinterpret_cast<unsigned char*>(iqmp_hex.data()), iqmp_hex.size(), nullptr, u);
|
||||
|
||||
gcry_mpi_release(u);
|
||||
gcry_mpi_release(p);
|
||||
gcry_mpi_release(q);
|
||||
|
||||
return QByteArray::fromHex(iqmp_hex);
|
||||
return QByteArray::fromHex(QString(iqmp_hex).toLatin1());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -359,7 +359,7 @@ bool OpenSSHKey::openPrivateKey(const QString& passphrase)
|
|||
QByteArray decryptKey;
|
||||
decryptKey.fill(0, cipher->keySize() + cipher->blockSize());
|
||||
|
||||
QByteArray phraseData = passphrase.toLatin1();
|
||||
QByteArray phraseData = passphrase.toUtf8();
|
||||
if (bcrypt_pbkdf(phraseData, salt, decryptKey, rounds) < 0) {
|
||||
m_error = tr("Key derivation failed, key file corrupted?");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue