Protocol++® (Protocolpp®)  v5.6.2
ProtocolPP::jecdsafpsa Class Reference
Inheritance diagram for ProtocolPP::jecdsafpsa:
Collaboration diagram for ProtocolPP::jecdsafpsa:

Public Member Functions

 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 >
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
 
- Public Member Functions inherited from ProtocolPP::jsecass
 jsecass ()
 
virtual ~jsecass ()=default
 Standard deconstructor.
 
 jsecass (jsecass &jsecass)=delete
 
 jsecass (const jsecass &jsecass)=delete
 

Constructor & Destructor Documentation

◆ 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]

ProtocolPP::jecdsafpsa::jecdsafpsa ( keymode_t  mode,
ike_hash_t  hash,
CryptoPP::OID  curve 
)

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

Member Function Documentation

◆ 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 typefield nameExample
int BITSIZEint bitsize = get_field<int>(field_t::BITSIZE)
ike_hash_t IKEHASHike_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 typefield nameExample
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey PRVKEYCryptoPP::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 typefield nameExample
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey PUBKEYCryptoPP::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,
fieldval 
)

Allows the user to update the ECFPDSASA Security Association object

ECFPDSASA Set Fields
field typefield nameExample
int BITSIZEset_field<int>(field_t::BITSIZE, size)
ike_hash_t IKEHASHset_field<ike_hash_t>(field_t::IKEHASH, hash)
CryptoPP::OID CURVEset_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 typefield nameExample
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey PRVKEYset_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey>(field_t::PRVKEY)
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PrivateKey PRVKEYset_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PrivateKey>(field_t::PRVKEY)
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PrivateKey PRVKEYset_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 typefield nameExample
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey PUBKEYset_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey>(field_t::PUBKEY)
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PublicKey PUBKEYset_field<CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA384>::PublicKey>(field_t::PUBKEY)
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA512>::PublicKey PUBKEYset_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()

void ProtocolPP::jecdsafpsa::to_xml ( tinyxml2::XMLPrinter myxml,
direction_t  direction 
)
virtual

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: