Protocol++® (Protocolpp®) v5.7.2
Loading...
Searching...
No Matches
ProtocolPP::jecdsafsa Class Reference
Inheritance diagram for ProtocolPP::jecdsafsa:
Collaboration diagram for ProtocolPP::jecdsafsa:

Public Member Functions

 jecdsafsa ()
 
 jecdsafsa (keymode_t mode, ike_hash_t hash, Botan::OID curve)
 
 jecdsafsa (jecdsafsa &rhs)
 
 jecdsafsa (std::shared_ptr< jecdsafsa > &rhs)
 
virtual ~jecdsafsa ()=default
 Standard deconstructor.
 
template<typename T >
void set_field (field_t field, T fieldval)
 
template<typename T >
T get_field (field_t field)
 
void to_xml (tinyxml2::XMLPrinter &myxml, direction_t direction)
 
void to_json (std::ofstream &myjson, direction_t direction, std::string &indent)
 
 jecdsafsa (const jecdsafsa &jecdsafsa)=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

◆ jecdsafsa() [1/4]

ProtocolPP::jecdsafsa::jecdsafsa ( )

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

◆ jecdsafsa() [2/4]

ProtocolPP::jecdsafsa::jecdsafsa ( keymode_t  mode,
ike_hash_t  hash,
Botan::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

◆ jecdsafsa() [3/4]

ProtocolPP::jecdsafsa::jecdsafsa ( jecdsafsa rhs)

ECDSA Copy Constructor ECDSA Security Association

Parameters
rhs- ECDSA security association to copy

◆ jecdsafsa() [4/4]

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

ECDSA Copy Constructor shared_ptr

Parameters
rhs- ECDSA security association to copy

Member Function Documentation

◆ get_field()

template<typename T >
T ProtocolPP::jecdsafsa::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)
Botan::ECDSA_PrivateKey PRVKEYBotan::ECDSA_PrivateKey prvkey = get_field<Botan::ECDSA_PrivateKey>(field_t::PRVKEY)
Parameters
field- field to retrieve from the ECDSA Security Association object
Returns
field of the ECDSA Security Association object

◆ set_field()

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

Allows the user to update the ECDSA F2M/Fp Security Association object

ECDSASA F2M/Fp 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)
Botan::OID CURVEset_field<Botan::OID>(field_t::CURVE, curve)
Botan::ECDSA_PrivateKey<td>PRVKEYset_field<Botan::ECDSA_PrivateKey>(field_t::PRVKEY)
Parameters
field- field to update for ECDSA Security Association
fieldval- value to update for ECDSA Security Association

◆ to_json()

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