Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Print key curves in subkeyswidget

For ECC the curve name is the proper way to show "strenght"
otherwise a bp-256 key is not distinguishable from a nist-256
parent bcc8dfba
......@@ -136,7 +136,15 @@ void SubKeysWidget::setKey(const GpgME::Key &key)
item->setData(2, Qt::DisplayRole, Kleo::Formatting::creationDateString(subkey));
item->setData(3, Qt::DisplayRole, Kleo::Formatting::expirationDateString(subkey));
item->setData(4, Qt::DisplayRole, Kleo::Formatting::validityShort(subkey));
item->setData(5, Qt::DisplayRole, QString::number(subkey.length()));
switch (subkey.publicKeyAlgorithm()) {
case GpgME::Subkey::AlgoECDSA:
case GpgME::Subkey::AlgoEDDSA:
case GpgME::Subkey::AlgoECDH:
item->setData(5, Qt::DisplayRole, QString::fromStdString(subkey.algoName()));
item->setData(5, Qt::DisplayRole, QString::number(subkey.length()));
item->setData(6, Qt::DisplayRole, Kleo::Formatting::usageString(subkey));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment