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 bool | GeneratePassphrase (const std::filesystem::path &phrase_path, std::string &phrase) |
generate passphrase for key package and save it to file More... | |
static std::string | GenerateKeyPackageName () |
generate the name of the key package More... | |
static bool | GenerateKeyPackage (const std::filesystem::path &key_package_path, const std::string &key_package_name, KeyIdArgsListPtr &key_ids, std::string &phrase, bool secret) |
generate key package More... | |
static bool | ImportKeyPackage (const std::filesystem::path &key_package_path, const std::filesystem::path &phrase_path, GpgFrontend::GpgImportInformation &import_info) |
import key package More... | |
Static Private Member Functions | |
static std::string | generate_key_package_name () |
generate key package name More... | |
give the possibility to import or export a key package
|
inlinestaticprivate |
generate key package name
< Random device
< Mersenne twister
Referenced by GenerateKeyPackageName().
|
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::SingletonFunctionObject< GpgKeyImportExporter >::GetInstance(), and GpgFrontend::FileOperator::WriteFileStd().
|
static |
generate the name of the key package
References generate_key_package_name().
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::PassphraseGenerator::Generate(), GpgFrontend::SingletonFunctionObject< PassphraseGenerator >::GetInstance(), and GpgFrontend::FileOperator::WriteFileStd().
|
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::GpgKeyImportExporter::ImportKey(), and GpgFrontend::FileOperator::ReadFileStd().