GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Public Member Functions | |
bool | IsSubKey () const |
void | SetIsSubKey (bool m_sub_key) |
Set the Is Sub Key object. More... | |
std::string | GetUserid () const |
Get the Userid object. More... | |
void | SetName (const std::string &m_name) |
Set the Name object. More... | |
void | SetEmail (const std::string &m_email) |
Set the Email object. More... | |
void | SetComment (const std::string &m_comment) |
Set the Comment object. More... | |
std::string | GetName () const |
Get the Name object. More... | |
std::string | GetEmail () const |
Get the Email object. More... | |
std::string | GetComment () const |
Get the Comment object. More... | |
const std::string & | GetAlgo () const |
Get the Algo object. More... | |
void | SetAlgo (const GpgFrontend::GenKeyInfo::KeyGenAlgo &m_algo) |
Set the Algo object. More... | |
std::string | GetKeySizeStr () const |
Get the Key Size Str object. More... | |
int | GetKeyLength () const |
Get the Key Size object. More... | |
void | SetKeyLength (int m_key_size) |
Set the Key Size object. More... | |
const boost::posix_time::ptime & | GetExpireTime () const |
Get the Expired object. More... | |
void | SetExpireTime (const boost::posix_time::ptime &m_expired) |
Set the Expired object. More... | |
bool | IsNonExpired () const |
void | SetNonExpired (bool m_non_expired) |
Set the Non Expired object. More... | |
bool | IsNoPassPhrase () const |
void | SetNonPassPhrase (bool m_non_pass_phrase) |
Set the Non Pass Phrase object. More... | |
bool | IsAllowSigning () const |
bool | IsAllowNoPassPhrase () const |
void | SetAllowSigning (bool m_allow_signing) |
Set the Allow Signing object. More... | |
bool | IsAllowEncryption () const |
void | SetAllowEncryption (bool m_allow_encryption) |
Set the Allow Encryption object. More... | |
bool | IsAllowCertification () const |
void | SetAllowCertification (bool m_allow_certification) |
Set the Allow Certification object. More... | |
bool | IsAllowAuthentication () const |
void | SetAllowAuthentication (bool m_allow_authentication) |
Set the Allow Authentication object. More... | |
const std::string & | GetPassPhrase () const |
Get the Pass Phrase object. More... | |
void | SetPassPhrase (const std::string &m_pass_phrase) |
Set the Pass Phrase object. More... | |
bool | IsAllowChangeSigning () const |
bool | IsAllowChangeEncryption () const |
bool | IsAllowChangeCertification () const |
bool | IsAllowChangeAuthentication () const |
int | GetSuggestMaxKeySize () const |
Get the Suggest Max Key Size object. More... | |
int | GetSuggestMinKeySize () const |
Get the Suggest Min Key Size object. More... | |
int | GetSizeChangeStep () const |
Get the Size Change Step object. More... | |
GenKeyInfo (bool m_is_sub_key=false, bool m_standalone=false) | |
Construct a new Gen Key Info object. More... | |
Static Public Member Functions | |
static const std::vector< KeyGenAlgo > & | GetSupportedKeyAlgo () |
Get the Supported Key Algo object. More... | |
static const std::vector< KeyGenAlgo > & | GetSupportedSubkeyAlgo () |
Get the Supported Subkey Algo object. More... | |
static const std::vector< KeyGenAlgo > & | GetSupportedKeyAlgoStandalone () |
Get the Supported Key Algo Standalone object. More... | |
static const std::vector< KeyGenAlgo > & | GetSupportedSubkeyAlgoStandalone () |
Get the Supported Subkey Algo Standalone object. More... | |
Private Types | |
using | KeyGenAlgo = std::pair< std::string, std::string > |
Private Member Functions | |
void | reset_options () |
|
explicit |
Construct a new Gen Key Info object.
m_is_sub_key | |
m_standalone |
References GetSupportedKeyAlgo(), and SetAlgo().
|
inline |
Get the Algo object.
|
inline |
Get the Comment object.
|
inline |
Get the Email object.
|
inline |
Get the Expired object.
|
inline |
Get the Key Size object.
std::string GpgFrontend::GenKeyInfo::GetKeySizeStr | ( | ) | const |
Get the Key Size Str object.
|
inline |
Get the Name object.
|
inline |
Get the Pass Phrase object.
|
inline |
Get the Size Change Step object.
|
inline |
Get the Suggest Max Key Size object.
|
inline |
Get the Suggest Min Key Size object.
|
static |
Get the Supported Key Algo object.
Referenced by GpgFrontend::UI::KeyGenDialog::create_basic_info_group_box(), GenKeyInfo(), and SetAlgo().
|
static |
Get the Supported Key Algo Standalone object.
Referenced by SetAlgo().
|
static |
Get the Supported Subkey Algo object.
Referenced by GpgFrontend::UI::SubkeyGenerateDialog::create_basic_info_group_box(), and SetAlgo().
|
static |
Get the Supported Subkey Algo Standalone object.
Referenced by SetAlgo().
|
inline |
Get the Userid object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void GpgFrontend::GenKeyInfo::SetAlgo | ( | const GpgFrontend::GenKeyInfo::KeyGenAlgo & | m_algo | ) |
Set the Algo object.
m_algo | Copyright (C) 2021 Saturneric |
This file is part of GpgFrontend.
GpgFrontend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GpgFrontend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GpgFrontend. If not, see https://www.gnu.org/licenses/.
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.
All the source code of GpgFrontend was modified and released by Saturnericeric@ starting on May 12, 2021. bktu s.com
SPDX-License-Identifier: GPL-3.0-or-later
RSA is the world’s premier asymmetric cryptographic algorithm, and is built on the difficulty of factoring extremely large composites. GnuPG supports RSA with key sizes of between 1024 and 4096 bits.
Algorithm (DSA) as a government standard for digital signatures. Originally, it supported key lengths between 512 and 1024 bits. Recently, NIST has declared 512-bit keys obsolete: now, DSA is available in 1024, 2048 and 3072-bit lengths.
GnuPG supports the Elgamal asymmetric encryption algorithm in key lengths ranging from 1024 to 4096 bits.
References GetSupportedKeyAlgo(), GetSupportedKeyAlgoStandalone(), GetSupportedSubkeyAlgo(), GetSupportedSubkeyAlgoStandalone(), SetAllowAuthentication(), SetAllowCertification(), SetAllowEncryption(), SetAllowSigning(), and SetKeyLength().
Referenced by GenKeyInfo().
|
inline |
void GpgFrontend::GenKeyInfo::SetAllowCertification | ( | bool | m_allow_certification | ) |
void GpgFrontend::GenKeyInfo::SetAllowEncryption | ( | bool | m_allow_encryption | ) |
|
inline |
|
inline |
Set the Comment object.
m_comment |
|
inline |
Set the Email object.
m_email |
void GpgFrontend::GenKeyInfo::SetExpireTime | ( | const boost::posix_time::ptime & | m_expired | ) |
Set the Expired object.
m_expired |
|
inline |
Set the Is Sub Key object.
m_sub_key |
void GpgFrontend::GenKeyInfo::SetKeyLength | ( | int | m_key_size | ) |
|
inline |
Set the Name object.
m_name |
void GpgFrontend::GenKeyInfo::SetNonExpired | ( | bool | m_non_expired | ) |
Set the Non Expired object.
m_non_expired |
|
inline |
Set the Non Pass Phrase object.
m_non_pass_phrase |
|
inline |
Set the Pass Phrase object.
m_pass_phrase |
|
private |