Warning, file /pim/kleopatra/src/newcertificatewizard/keyalgo_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 newcertificatewizard/keyalgo_p.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 0006 SPDX-FileCopyrightText: 2016, 2017 Bundesamt für Sicherheit in der Informationstechnik 0007 SPDX-FileContributor: Intevation GmbH 0008 0009 SPDX-License-Identifier: GPL-2.0-or-later 0010 */ 0011 0012 #pragma once 0013 0014 #include <gpgme++/key.h> 0015 0016 namespace Kleo::NewCertificateUi 0017 { 0018 0019 enum KeyAlgo { RSA, DSA, ELG, ECDSA, ECDH, EDDSA }; 0020 0021 bool is_algo(GpgME::Subkey::PubkeyAlgo algo, KeyAlgo what); 0022 0023 bool is_rsa(unsigned int algo); 0024 bool is_dsa(unsigned int algo); 0025 bool is_elg(unsigned int algo); 0026 bool is_ecdsa(unsigned int algo); 0027 bool is_eddsa(unsigned int algo); 0028 bool is_ecdh(unsigned int algo); 0029 0030 }