GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
give the possibility to import or export a key package More...
#include <KeyPackageOperator.h>
Static Public Member Functions | |
static auto | GeneratePassphrase (const QString &phrase_path, QString &phrase) -> bool |
generate passphrase for key package and save it to file More... | |
static auto | GenerateKeyPackageName () -> QString |
generate the name of the key package More... | |
static void | GenerateKeyPackage (const QString &key_package_path, const QString &key_package_name, const KeyArgsList &keys, QString &phrase, bool secret, const OperationCallback &cb) |
generate key package More... | |
static void | ImportKeyPackage (const QString &key_package_path, const QString &phrase_path, const OperationCallback &cb) |
import key package More... | |
Static Private Member Functions | |
static auto | generate_key_package_name () -> QString |
generate key package name More... | |
give the possibility to import or export a key package
|
staticprivate |
generate key package name
|
static |
generate key package
key_package_path | path to key package |
key_package_name | name of the key package |
key_ids | key ids to export |
phrase | passphrase to encrypt key package |
secret | true if secret key should be exported |
References GpgFrontend::CheckGpgError(), GpgFrontend::DescribeGpgErrCode(), GpgFrontend::SingletonFunctionObject< GpgKeyImportExporter >::GetInstance(), and GpgFrontend::WriteFile().
|
static |
generate the name of the key package
Referenced by GpgFrontend::UI::ExportKeyPackageDialog::ExportKeyPackageDialog().
|
static |
generate passphrase for key package and save it to file
phrase_path | path to passphrase file |
phrase | passphrase generated |
References GpgFrontend::SingletonFunctionObject< PassphraseGenerator >::GetInstance(), and GpgFrontend::WriteFile().
|
static |
import key package
key_package_path | path to key package |
phrase_path | path to passphrase file |
import_info | import info |
References GpgFrontend::SingletonFunctionObject< GpgKeyImportExporter >::GetInstance(), GpgFrontend::ReadFile(), and GpgFrontend::RunOperaAsync().