|
| jecdsafpsa () |
|
| jecdsafpsa (keymode_t mode, ike_hash_t hash, CryptoPP::OID curve) |
|
| jecdsafpsa (jecdsafpsa &rhs) |
|
| jecdsafpsa (std::shared_ptr< jecdsafpsa > &rhs) |
|
virtual | ~jecdsafpsa ()=default |
| Standard deconstructor.
|
|
template<typename T > |
void | set_field (field_t field, T fieldval) |
|
void | set_prvkey256 (CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA256 >::PrivateKey &fieldval) |
|
void | set_prvkey384 (CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA384 >::PrivateKey &fieldval) |
|
void | set_prvkey512 (CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA512 >::PrivateKey &fieldval) |
|
void | set_pubkey256 (CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA256 >::PublicKey &fieldval) |
|
void | set_pubkey384 (CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA384 >::PublicKey &fieldval) |
|
void | set_pubkey512 (CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA512 >::PublicKey &fieldval) |
|
template<typename T > |
T | get_field (field_t field) |
|
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA256 >::PrivateKey | get_prvkey256 () |
|
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA384 >::PrivateKey | get_prvkey384 () |
|
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA512 >::PrivateKey | get_prvkey512 () |
|
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA256 >::PublicKey | get_pubkey256 () |
|
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA384 >::PublicKey | get_pubkey384 () |
|
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA512 >::PublicKey | get_pubkey512 () |
|
void | to_xml (tinyxml2::XMLPrinter &myxml, direction_t direction) |
|
void | to_json (std::ofstream &myjson, direction_t direction, std::string &indent) |
|
| jecdsafpsa (const jecdsafpsa &jecdsafpsa)=delete |
|
| jsecass () |
|
virtual | ~jsecass ()=default |
| Standard deconstructor.
|
|
| jsecass (jsecass &jsecass)=delete |
|
| jsecass (const jsecass &jsecass)=delete |
|
◆ jecdsafpsa() [1/4]
ProtocolPP::jecdsafpsa::jecdsafpsa |
( |
| ) |
|
ECFPDSA Constructor for named type with default parameters as follows keymode_t::GENKEYPAIR ike_hash_t::SHA256 CryptoPP::OID::CURVE_25519
◆ jecdsafpsa() [2/4]
ECFPDSA Constructor for named type
- Parameters
-
mode | - Mode of operation (GENKEYPAIR, PKISIGN, PKIVERIFY) |
hash | - hash type for curve |
curve | - Name of the OID curve |
◆ jecdsafpsa() [3/4]
ProtocolPP::jecdsafpsa::jecdsafpsa |
( |
jecdsafpsa & |
rhs | ) |
|
ECFPDSASA Copy Constructor ECDSA Security Association
- Parameters
-
rhs | - ECFPDSASA security association to copy |
◆ jecdsafpsa() [4/4]
ProtocolPP::jecdsafpsa::jecdsafpsa |
( |
std::shared_ptr< jecdsafpsa > & |
rhs | ) |
|
|
explicit |
ECFPDSASA Copy Constructor shared_ptr
- Parameters
-
rhs | - ECFPDSASA security association to copy |
◆ get_field()
template<typename T >
T ProtocolPP::jecdsafpsa::get_field |
( |
field_t |
field | ) |
|
Returns the version field of the ECDSA Security Association object
ECFPDSASA Get Fields
field type | field name | Example |
int | BITSIZE | int bitsize = get_field<int>(field_t::BITSIZE) |
ike_hash_t | IKEHASH | ike_hash_t hash = get_field<ike_hash_t>(field_t::IKEHASH) |
- Parameters
-
field | - field to retrieve from the ECDSA Security Association object |
- Returns
- field of the ECDSA Security Association object
◆ get_prvkey256()
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey ProtocolPP::jecdsafpsa::get_prvkey256 |
( |
| ) |
|
Returns the key field of the ECFPDSASA Security Association object
ECFPDSASA Get Fields
field type | field name | Example |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey | PRVKEY | CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey prvkey = get_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey>(field_t::PRVKEY) |
Return the ECDSA-256 Private Key
- Returns
- - PrivateKey in ECDSA-256 retrieved
◆ get_prvkey384()
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PrivateKey ProtocolPP::jecdsafpsa::get_prvkey384 |
( |
| ) |
|
Return the ECDSA-384 Private Key
- Returns
- - PrivateKey in ECDSA-384 retrieved
◆ get_prvkey512()
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PrivateKey ProtocolPP::jecdsafpsa::get_prvkey512 |
( |
| ) |
|
Return the ECDSA-521 Private Key
- Returns
- - PrivateKey in ECDSA-521 retrieved
◆ get_pubkey256()
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey ProtocolPP::jecdsafpsa::get_pubkey256 |
( |
| ) |
|
Returns the key field of the ECFPDSASA Security Association object
ECFPDSASA Get Fields
field type | field name | Example |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey | PUBKEY | CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey prvkey = get_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey>(field_t::PUBKEY) |
Return the ECDSA-256 Public Key
- Returns
- - PublicKey in ECDSA-256 retrieved
◆ get_pubkey384()
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PublicKey ProtocolPP::jecdsafpsa::get_pubkey384 |
( |
| ) |
|
Return the ECDSA-384 Public Key
- Returns
- - PublicKey in ECDSA-384 retrieved
◆ get_pubkey512()
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PublicKey ProtocolPP::jecdsafpsa::get_pubkey512 |
( |
| ) |
|
Return the ECDSA-521 Public Key
- Returns
- - PublicKey in ECDSA-521 retrieved
◆ set_field()
template<typename T >
void ProtocolPP::jecdsafpsa::set_field |
( |
field_t |
field, |
|
|
T |
fieldval |
|
) |
| |
Allows the user to update the ECFPDSASA Security Association object
ECFPDSASA Set Fields
field type | field name | Example |
int | BITSIZE | set_field<int>(field_t::BITSIZE, size) |
ike_hash_t | IKEHASH | set_field<ike_hash_t>(field_t::IKEHASH, hash) |
CryptoPP::OID | CURVE | set_field<CryptoPP::OID>(field_t::CURVE, curve) |
- Parameters
-
field | - field to update for ECDSA Security Association |
fieldval | - value to update for ECDSA Security Association |
◆ set_prvkey256()
void ProtocolPP::jecdsafpsa::set_prvkey256 |
( |
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA256 >::PrivateKey & |
fieldval | ) |
|
Allows the user to update the ECFPDSASA Key Security Association object
ECFPDSASA Set Fields
field type | field name | Example |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey | PRVKEY | set_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey>(field_t::PRVKEY) |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PrivateKey | PRVKEY | set_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PrivateKey>(field_t::PRVKEY) |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PrivateKey | PRVKEY | set_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PrivateKey>(field_t::PRVKEY) |
Sets the ECDSA-256 Private Key
- Parameters
-
fieldval | - PrivateKey to set in ECDSA-256 |
◆ set_prvkey384()
void ProtocolPP::jecdsafpsa::set_prvkey384 |
( |
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA384 >::PrivateKey & |
fieldval | ) |
|
Sets the ECDSA-384 Private Key
- Parameters
-
fieldval | - PrivateKey to set in ECDSA-384 |
◆ set_prvkey512()
void ProtocolPP::jecdsafpsa::set_prvkey512 |
( |
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA512 >::PrivateKey & |
fieldval | ) |
|
Sets the ECDSA-521 Private Key
- Parameters
-
fieldval | - PrivateKey to set in ECDSA-521 |
◆ set_pubkey256()
void ProtocolPP::jecdsafpsa::set_pubkey256 |
( |
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA256 >::PublicKey & |
fieldval | ) |
|
Allows the user to update the ECFPDSA Key Security Association object
ECDSASA Set Fields
field type | field name | Example |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey | PUBKEY | set_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey>(field_t::PUBKEY) |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PublicKey | PUBKEY | set_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PublicKey>(field_t::PUBKEY) |
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PublicKey | PUBKEY | set_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PublicKey>(field_t::PUBKEY) |
Sets the ECDSA-256 Public Key
- Parameters
-
fieldval | - PublicKey to set in ECDSA-256 |
◆ set_pubkey384()
void ProtocolPP::jecdsafpsa::set_pubkey384 |
( |
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA384 >::PublicKey & |
fieldval | ) |
|
Sets the ECDSA-384 Public Key
- Parameters
-
fieldval | - PublicKey to set in ECDSA-384 |
◆ set_pubkey512()
void ProtocolPP::jecdsafpsa::set_pubkey512 |
( |
CryptoPP::ECDSA< CryptoPP::ECP, CryptoPP::SHA512 >::PublicKey & |
fieldval | ) |
|
Sets the ECDSA-521 Public Key
- Parameters
-
fieldval | - PublicKey to set in ECDSA-521 |
◆ to_json()
void ProtocolPP::jecdsafpsa::to_json |
( |
std::ofstream & |
myjson, |
|
|
direction_t |
direction, |
|
|
std::string & |
indent |
|
) |
| |
|
virtual |
Prints the protocol object in JSON
- Parameters
-
myjson | - JSON object to print to |
direction | - randomzation |
indent | - indentation for JSON output |
Implements ProtocolPP::jsecass.
◆ to_xml()
Prints the protocol object in XML
- Parameters
-
myxml | - XMLPrinter object to print to |
direction | - randomzation |
Implements ProtocolPP::jsecass.
The documentation for this class was generated from the following file: