Skip to content

Commit 9a3f3fa

Browse files
GongHeng2017deepin-bot[bot]
authored andcommitted
chore: [diskencrypt] remove the useless code.
-- The code is useless, so remove it. Log: fix issue
1 parent 0f5ce42 commit 9a3f3fa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/dde-file-manager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,8 @@ QString DiskEncryptMenuScene::generateTPMConfig()
449449
{
450450
QString sessionHashAlgo, sessionKeyAlgo, primaryHashAlgo, primaryKeyAlgo, minorHashAlgo, minorKeyAlgo;
451451
if (!tpm_passphrase_utils::getAlgorithm(&sessionHashAlgo, &sessionKeyAlgo, &primaryHashAlgo, &primaryKeyAlgo, &minorHashAlgo, &minorKeyAlgo)) {
452-
qWarning() << "cannot choose algorithm for tpm";
453-
primaryHashAlgo = "sha256";
454-
primaryKeyAlgo = "ecc";
452+
qCritical() << "cannot choose algorithm for tpm";
453+
return "";
455454
}
456455

457456
QJsonObject tpmParams;

0 commit comments

Comments
 (0)