GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Public Types | |
using | KeyGenAlgo = std::tuple< QString, QString, QString > |
Public Member Functions | |
GenKeyInfo (bool m_is_sub_key=false) | |
Construct a new Gen Key Info object. More... | |
auto | IsSubKey () const -> bool |
void | SetIsSubKey (bool m_sub_key) |
Set the Is Sub Key object. More... | |
auto | GetUserid () const -> QString |
Get the Userid object. More... | |
void | SetName (const QString &m_name) |
Set the Name object. More... | |
void | SetEmail (const QString &m_email) |
Set the Email object. More... | |
void | SetComment (const QString &m_comment) |
Set the Comment object. More... | |
auto | GetName () const -> QString |
Get the Name object. More... | |
auto | GetEmail () const -> QString |
Get the Email object. More... | |
auto | GetComment () const -> QString |
Get the Comment object. More... | |
auto | GetAlgo () const -> const QString & |
Get the Algo object. More... | |
void | SetAlgo (const QString &) |
Set the Algo object. More... | |
auto | GetKeySizeStr () const -> QString |
Get the Key Size Str object. More... | |
auto | GetKeyLength () const -> int |
Get the Key Size object. More... | |
void | SetKeyLength (int m_key_size) |
Set the Key Size object. More... | |
auto | GetExpireTime () const -> const QDateTime & |
Get the Expired object. More... | |
void | SetExpireTime (const QDateTime &m_expired) |
Set the Expired object. More... | |
auto | IsNonExpired () const -> bool |
void | SetNonExpired (bool m_non_expired) |
Set the Non Expired object. More... | |
auto | IsNoPassPhrase () const -> bool |
void | SetNonPassPhrase (bool m_non_pass_phrase) |
Set the Non Pass Phrase object. More... | |
auto | IsAllowSigning () const -> bool |
auto | IsAllowNoPassPhrase () const -> bool |
void | SetAllowSigning (bool m_allow_signing) |
Set the Allow Signing object. More... | |
auto | IsAllowEncryption () const -> bool |
void | SetAllowEncryption (bool m_allow_encryption) |
Set the Allow Encryption object. More... | |
auto | IsAllowCertification () const -> bool |
void | SetAllowCertification (bool m_allow_certification) |
Set the Allow Certification object. More... | |
auto | IsAllowAuthentication () const -> bool |
void | SetAllowAuthentication (bool m_allow_authentication) |
Set the Allow Authentication object. More... | |
auto | GetPassPhrase () const -> const QString & |
Get the Pass Phrase object. More... | |
void | SetPassPhrase (const QString &m_pass_phrase) |
Set the Pass Phrase object. More... | |
auto | IsAllowChangeSigning () const -> bool |
auto | IsAllowChangeEncryption () const -> bool |
auto | IsAllowChangeCertification () const -> bool |
auto | IsAllowChangeAuthentication () const -> bool |
auto | GetSuggestMaxKeySize () const -> int |
Get the Suggest Max Key Size object. More... | |
auto | GetSuggestMinKeySize () const -> int |
Get the Suggest Min Key Size object. More... | |
auto | GetSizeChangeStep () const -> int |
Get the Size Change Step object. More... | |
Static Public Member Functions | |
static auto | GetSupportedKeyAlgo () -> const std::vector< KeyGenAlgo > & |
Get the Supported Key Algo object. More... | |
static auto | GetSupportedSubkeyAlgo () -> const std::vector< KeyGenAlgo > & |
Get the Supported Subkey Algo object. More... | |
Private Member Functions | |
void | reset_options () |
|
explicit |
Construct a new Gen Key Info object.
m_is_sub_key | |
m_standalone |
References GetSupportedKeyAlgo(), and SetAlgo().
auto GpgFrontend::GenKeyInfo::GetAlgo | ( | ) | const -> const QString & |
Get the Algo object.
auto GpgFrontend::GenKeyInfo::GetComment | ( | ) | const -> QString |
Get the Comment object.
auto GpgFrontend::GenKeyInfo::GetEmail | ( | ) | const -> QString |
Get the Email object.
auto GpgFrontend::GenKeyInfo::GetExpireTime | ( | ) | const -> const QDateTime & |
Get the Expired object.
auto GpgFrontend::GenKeyInfo::GetKeyLength | ( | ) | const -> int |
Get the Key Size object.
auto GpgFrontend::GenKeyInfo::GetKeySizeStr | ( | ) | const -> QString |
Get the Key Size Str object.
auto GpgFrontend::GenKeyInfo::GetName | ( | ) | const -> QString |
Get the Name object.
auto GpgFrontend::GenKeyInfo::GetPassPhrase | ( | ) | const -> const QString & |
Get the Pass Phrase object.
auto GpgFrontend::GenKeyInfo::GetSizeChangeStep | ( | ) | const -> int |
Get the Size Change Step object.
auto GpgFrontend::GenKeyInfo::GetSuggestMaxKeySize | ( | ) | const -> int |
Get the Suggest Max Key Size object.
auto GpgFrontend::GenKeyInfo::GetSuggestMinKeySize | ( | ) | const -> int |
Get the Suggest Min Key Size object.
|
static |
Get the Supported Key Algo object.
Referenced by GpgFrontend::UI::KeyGenDialog::create_basic_info_group_box(), and GenKeyInfo().
|
static |
Get the Supported Subkey Algo object.
Referenced by GpgFrontend::UI::SubkeyGenerateDialog::create_basic_info_group_box().
auto GpgFrontend::GenKeyInfo::GetUserid | ( | ) | const -> QString |
Get the Userid object.
auto GpgFrontend::GenKeyInfo::IsAllowAuthentication | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowCertification | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowChangeAuthentication | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowChangeCertification | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowChangeEncryption | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowChangeSigning | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowEncryption | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowNoPassPhrase | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsAllowSigning | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsNonExpired | ( | ) | const -> bool |
Referenced by SetExpireTime().
auto GpgFrontend::GenKeyInfo::IsNoPassPhrase | ( | ) | const -> bool |
auto GpgFrontend::GenKeyInfo::IsSubKey | ( | ) | const -> bool |
void GpgFrontend::GenKeyInfo::SetAlgo | ( | const QString & | t_algo_args | ) |
Set the Algo object.
m_algo |
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 SetAllowAuthentication(), SetAllowCertification(), SetAllowEncryption(), SetAllowSigning(), and SetKeyLength().
Referenced by GenKeyInfo().
void GpgFrontend::GenKeyInfo::SetAllowAuthentication | ( | bool | m_allow_authentication | ) |
void GpgFrontend::GenKeyInfo::SetAllowCertification | ( | bool | m_allow_certification | ) |
void GpgFrontend::GenKeyInfo::SetAllowEncryption | ( | bool | m_allow_encryption | ) |
void GpgFrontend::GenKeyInfo::SetAllowSigning | ( | bool | m_allow_signing | ) |
void GpgFrontend::GenKeyInfo::SetComment | ( | const QString & | m_comment | ) |
Set the Comment object.
m_comment |
void GpgFrontend::GenKeyInfo::SetEmail | ( | const QString & | m_email | ) |
Set the Email object.
m_email |
void GpgFrontend::GenKeyInfo::SetExpireTime | ( | const QDateTime & | m_expired | ) |
void GpgFrontend::GenKeyInfo::SetIsSubKey | ( | bool | m_sub_key | ) |
Set the Is Sub Key object.
m_sub_key |
void GpgFrontend::GenKeyInfo::SetKeyLength | ( | int | m_key_size | ) |
void GpgFrontend::GenKeyInfo::SetName | ( | const QString & | m_name | ) |
Set the Name object.
m_name |
void GpgFrontend::GenKeyInfo::SetNonExpired | ( | bool | m_non_expired | ) |
Set the Non Expired object.
m_non_expired |
void GpgFrontend::GenKeyInfo::SetNonPassPhrase | ( | bool | m_non_pass_phrase | ) |
Set the Non Pass Phrase object.
m_non_pass_phrase |
void GpgFrontend::GenKeyInfo::SetPassPhrase | ( | const QString & | m_pass_phrase | ) |
Set the Pass Phrase object.
m_pass_phrase |