◆ jxwingsa() [1/3]
| ProtocolPP::jxwingsa::jxwingsa |
( |
| ) |
|
Standard constructor with defaults
XWing Defaults
| field | Default Value |
| mode | keymode_t::GENKEYPAIR |
| seed | uint8_t[32] {0} |
| prvkey | 0 |
| pubkey | 0 |
◆ jxwingsa() [2/3]
| ProtocolPP::jxwingsa::jxwingsa |
( |
keymode_t |
mode, |
|
|
jarray< uint8_t > & |
seed |
|
) |
| |
Security Association for XWING
Required fields for XWING
- Parameters
-
| mode | - Type of PKI calculation (GENKEYPAIR:PKISIGN:PKIVERIFY) |
| seed | - 32-byte seed for keypair generation |
◆ jxwingsa() [3/3]
| ProtocolPP::jxwingsa::jxwingsa |
( |
keymode_t |
mode, |
|
|
jarray< uint8_t > & |
seed, |
|
|
CryptoPP::XWingDecapsulator & |
prvkey |
|
) |
| |
Security Association for XWING
Required fields for XWING
- Parameters
-
| mode | - Type of PKI calculation (GENKEYPAIR:PKISIGN:PKIVERIFY) |
| seed | - 32-byte seed for keypair generation |
| prvkey | - XWing decapsulator with public/private key pair |
◆ get_field()
template<typename T >
| T ProtocolPP::jxwingsa::get_field |
( |
field_t |
field | ) |
|
Returns the version field of the XWING security association
- Parameters
-
| field | - field to retrieve from the XWing security association |
- Returns
- field of the XWing security association
◆ set_field()
template<typename T >
| void ProtocolPP::jxwingsa::set_field |
( |
field_t |
field, |
|
|
T |
fieldval |
|
) |
| |
Allows the user to update the field of the XWING security association
XWINGSA Set Fields
| field type | field name | Example |
| keymode_t | MODE | set_field<keymode_t>(field_t::MODE, keymode_t::GENKEYPAIR) |
| jarray<uint8_t> | SEED | set_field<jarray<uint8_t>>(field_t::SEED, seed) |
| CryptoPP::XWingDecapsulator | PRVKEY | set_field<CryptoPP::XWingDecapsulator>(field_t::PRVKEY, prvkey) |
- Parameters
-
| field | - field to update in the XWing security association |
| fieldval | - value to update in the XWing security association |
◆ to_json()
| void ProtocolPP::jxwingsa::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:
- jxwing/include/jxwingsa.h