diff --git a/pytools/gpgapp/gpgcard.py b/pytools/gpgapp/gpgcard.py index 9e08884..df42b22 100644 --- a/pytools/gpgapp/gpgcard.py +++ b/pytools/gpgapp/gpgcard.py @@ -926,9 +926,6 @@ def decode_attributes(self, key: str) -> str: if not attributes or len(attributes) == 0: return "" - if attributes[0] not in set(iter(PubkeyAlgo)): - return "" - if attributes[0] == PubkeyAlgo.RSA: if attributes[5] == 0: fmt = "standard (e, p, q)" @@ -944,14 +941,12 @@ def decode_attributes(self, key: str) -> str: return ret if attributes[0] == PubkeyAlgo.ECDSA: - ret = "ECDSA" + return "ECDSA" if attributes[0] == PubkeyAlgo.ECDH: - ret = "ECDH" + return "ECDH" if attributes[0] == PubkeyAlgo.EDDSA: - ret = "EDDSA" - else: - ret = "" - return ret + return "EDDSA" + return "" def decode_key(self, key: str) -> dict: