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

Public Member Functions

 jecdsaf2msa ()
 
 jecdsaf2msa (keymode_t mode, ike_hash_t hash, CryptoPP::OID curve)
 
 jecdsaf2msa (jecdsaf2msa &rhs)
 
 jecdsaf2msa (std::shared_ptr< jecdsaf2msa > &rhs)
 
virtual ~jecdsaf2msa ()=default
 Standard deconstructor.
 
template<typename T >
void set_field (field_t field, T fieldval)
 
void set_prvkey256 (CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA256 >::PrivateKey &fieldval)
 
void set_prvkey384 (CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA384 >::PrivateKey &fieldval)
 
void set_prvkey512 (CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA512 >::PrivateKey &fieldval)
 
void set_pubkey256 (CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA256 >::PublicKey &fieldval)
 
void set_pubkey384 (CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA384 >::PublicKey &fieldval)
 
void set_pubkey512 (CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA512 >::PublicKey &fieldval)
 
template<typename T >
get_field (field_t field)
 
CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA256 >::PrivateKey get_prvkey256 ()
 
CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA384 >::PrivateKey get_prvkey384 ()
 
CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA512 >::PrivateKey get_prvkey512 ()
 
CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA256 >::PublicKey get_pubkey256 ()
 
CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA384 >::PublicKey get_pubkey384 ()
 
CryptoPP::ECDSA< CryptoPP::EC2N, 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)
 
 jecdsaf2msa (const jecdsaf2msa &jecdsaf2msa)=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

◆ jecdsaf2msa() [1/4]

ProtocolPP::jecdsaf2msa::jecdsaf2msa ( )

ECDSA Constructor for named type with default parameters as follows keymode_t::GENKEYPAIR ike_hash_t::SHA256 CryptoPP::OID::CURVE_25519

◆ jecdsaf2msa() [2/4]

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

ECDSA Constructor for named type

Parameters
mode- Mode of operation (GENKEYPAIR, PKISIGN, PKIVERIFY)
hash- hash type for curve
curve- Name of the OID curve

◆ jecdsaf2msa() [3/4]

ProtocolPP::jecdsaf2msa::jecdsaf2msa ( jecdsaf2msa rhs)

ECDSA Copy Constructor ECDSA Security Association

Parameters
rhs- ECDSA security association to copy

◆ jecdsaf2msa() [4/4]

ProtocolPP::jecdsaf2msa::jecdsaf2msa ( std::shared_ptr< jecdsaf2msa > &  rhs)
explicit

ECDSA Copy Constructor shared_ptr

Parameters
rhs- ECDSA security association to copy

Member Function Documentation

◆ get_field()

template<typename T >
T ProtocolPP::jecdsaf2msa::get_field ( field_t  field)

Returns the version field of the ECDSA Security Association object

ECDSASA Get Fields
field typefield nameExample
int BITSIZEint bitsize = set_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::EC2N, CryptoPP::SHA256>::PrivateKey ProtocolPP::jecdsaf2msa::get_prvkey256 ( )

Returns the key field of the ECDSA F2M Security Association object

ECDSASA F2M Get Fields
field typefield nameExample
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PrivateKey PRVKEYCryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PrivateKey prvkey = get_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PrivateKey>(field_t::PRVKEY)
Returns
field of the ECDSA Security Association object Retrieve the ECDSA-256 Private Key
- ECDSA-256 Private Key to retrieve

◆ get_prvkey384()

CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA384>::PrivateKey ProtocolPP::jecdsaf2msa::get_prvkey384 ( )

Retrieve the ECDSA-384 Private Key

Returns
- ECDSA-384 Private Key to retrieve

◆ get_prvkey512()

CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA512>::PrivateKey ProtocolPP::jecdsaf2msa::get_prvkey512 ( )

Retrieve the ECDSA-521 Private Key

Returns
- ECDSA-521 Private Key to retrieve

◆ get_pubkey256()

CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey ProtocolPP::jecdsaf2msa::get_pubkey256 ( )

Returns the key field of the ECDSA F2M Security Association object

ECDSASA F2M Get Fields
field typefield nameExample
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey PUBKEYCryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey prvkey = get_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey>(field_t::PUBKEY)
Returns
field of the ECDSA Security Association object Retrieve the ECDSA-256 Public Key
- ECDSA-256 Public Key to retrieve

◆ get_pubkey384()

CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA384>::PublicKey ProtocolPP::jecdsaf2msa::get_pubkey384 ( )

Retrieve the ECDSA-384 Public Key

Returns
- ECDSA-384 Public Key to retrieve

◆ get_pubkey512()

CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA512>::PublicKey ProtocolPP::jecdsaf2msa::get_pubkey512 ( )

Retrieve the ECDSA-521 Public Key

Returns
- ECDSA-521 Public Key to retrieve

◆ set_field()

template<typename T >
void ProtocolPP::jecdsaf2msa::set_field ( field_t  field,
fieldval 
)

Allows the user to update the ECDSA F2M Security Association object

ECDSASA F2M 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::jecdsaf2msa::set_prvkey256 ( CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA256 >::PrivateKey &  fieldval)

Allows the user to update the ECDSA Key Security Association object

ECF2MDSASA F2M Set Fields
field typefield nameExample
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PrivateKey PRVKEYset_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PrivateKey>(field_t::PRVKEY)
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA384>::PrivateKey PRVKEYset_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA384>::PrivateKey>(field_t::PRVKEY)
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA512>::PrivateKey PRVKEYset_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA512>::PrivateKey>(field_t::PRVKEY)

Set the ECDSA-256 Private Key

Parameters
fieldval- ECDSA-256 Private Key to set

◆ set_prvkey384()

void ProtocolPP::jecdsaf2msa::set_prvkey384 ( CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA384 >::PrivateKey &  fieldval)

Set the ECDSA-384 Private Key

Parameters
fieldval- ECDSA-384 Private Key to set

◆ set_prvkey512()

void ProtocolPP::jecdsaf2msa::set_prvkey512 ( CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA512 >::PrivateKey &  fieldval)

Set the ECDSA-521 Private Key

Parameters
fieldval- ECDSA-512 Private Key to set

◆ set_pubkey256()

void ProtocolPP::jecdsaf2msa::set_pubkey256 ( CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA256 >::PublicKey &  fieldval)

Allows the user to update the ECDSA F2M Key Security Association object

ECDSASA F2M Set Fields
field typefield nameExample
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey PUBKEYset_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey>(field_t::PUBKEY)
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA384>::PublicKey PUBKEYset_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA384>::PublicKey>(field_t::PUBKEY)
CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA512>::PublicKey PUBKEYset_field<CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA512>::PublicKey>(field_t::PUBKEY)

Set the ECDSA-256 Public Key

Parameters
fieldval- ECDSA-256 Public Key to set

◆ set_pubkey384()

void ProtocolPP::jecdsaf2msa::set_pubkey384 ( CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA384 >::PublicKey &  fieldval)

Set the ECDSA-384 Public Key

Parameters
fieldval- ECDSA-384 Public Key to set

◆ set_pubkey512()

void ProtocolPP::jecdsaf2msa::set_pubkey512 ( CryptoPP::ECDSA< CryptoPP::EC2N, CryptoPP::SHA512 >::PublicKey &  fieldval)

Set the ECDSA-521 Public Key

Parameters
fieldval- ECDSA-521 Public Key to set

◆ to_json()

void ProtocolPP::jecdsaf2msa::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::jecdsaf2msa::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: