◆ jdilithiumsa() [1/4]
Dilithium security association with values chosen by algorithm 
- Parameters
- 
  
    | mode | - Mode of operation (GENKEYPAIR, PKISIGN, PKIVERIFY) |  | algorithm | - Dilithium algorithm to use for keys and signature generation |  
 
 
 
◆ jdilithiumsa() [2/4]
Dilithium security association with values chosen by algorithm 
- Parameters
- 
  
    | mode | - Mode of operation (GENKEYPAIR, PKISIGN, PKIVERIFY) |  | algorithm | - Dilithium algorith to use for keys and signature generation |  | prvkey | - Previously generated private key |  | pubkey | - Previously generated public key |  
 
 
 
◆ jdilithiumsa() [3/4]
      
        
          | ProtocolPP::jdilithiumsa::jdilithiumsa | ( | jdilithiumsa & | security | ) |  | 
      
 
dilithium security association copy constructor 
- Parameters
- 
  
    | security | - dilithium security association |  
 
 
 
◆ jdilithiumsa() [4/4]
  
  | 
        
          | ProtocolPP::jdilithiumsa::jdilithiumsa | ( | std::shared_ptr< jdilithiumsa > & | security | ) |  |  | explicit | 
 
dilithium security association copy constructor from shared descriptor 
- Parameters
- 
  
    | security | - Dilithium security association |  
 
 
 
◆ get_field()
template<typename T > 
      
        
          | T ProtocolPP::jdilithiumsa::get_field | ( | field_t | field | ) |  | 
      
 
Returns the field in dilithiumSA
Dilithium SA Get Fields
| field type | field name | Example | 
| direction_t | DIRECTION | ProtocolPP::direction_t mydir = get_field<ProtocolPP::direction_t>(ProtocolPP::field_t::DIRECTION) | 
| dilithium_algorithm_t | AUTH | ProtocolPP::dilithium_algorithm_t myalg = get_field<ProtocolPP::dilithium_algorithm_t>(ProtocolPP::field_t::AUTH) | 
| uint32_t | PRVKEYLEN | uint32_t myprvlen = get_field<uint32_t>(ProtocolPP::field_t::PRVKEYLEN) | 
| uint32_t | PUBKEYLEN | uint32_t mypublen = get_field<uint32_t>(ProtocolPP::field_t::PUBKEYLEN) | 
| uint32_t | LENGTH | uint32_t mylen = get_field<uint32_t>(ProtocolPP::field_t::LENGTH) | 
| jarray<uint8_t> | PUBKEY | jarray<uint8_t> mypubkey = get_field<jarray<uint8_t>>(ProtocolPP::field_t::PUBKEY) | 
| uint8_t* | PRVKEY | uint8_t* myprvkey = get_field<uint8_t*>(ProtocolPP::field_t::PRVKEY) | 
| uint8_t* | PUBKEY | uint8_t* mypubkey = get_field<uint8_t*>(ProtocolPP::field_t::PUBKEY) | 
| std::shared_ptr<jarray<uint8_t>> | PRVKEY | std::shared_ptr<jarray<uint8_t>> myprvkey = get_field<std::shared_ptr<jarray<uint8_t>>>(ProtocolPP::field_t::PRVKEY) | 
| std::shared_ptr<jarray<uint8_t>> | PUBKEY | std::shared_ptr<jarray<uint8_t>> mypubkey = get_field<std::shared_ptr<jarray<uint8_t>>>(ProtocolPP::field_t::PUBKEY) | 
- Parameters
- 
  
    | field | - field to retrieve from the security association |  
 
- Returns
- value of the field in the security association 
 
 
◆ set_field()
template<typename T > 
      
        
          | void ProtocolPP::jdilithiumsa::set_field | ( | field_t | field, | 
        
          |  |  | T | fieldval | 
        
          |  | ) |  |  | 
      
 
Allows the user to update the fields of dilithiumSA security association
- Parameters
- 
  
    | field | - field to update the security association with |  | fieldval | - value to update the security association with |  
 
 
 
◆ to_json()
  
  | 
        
          | void ProtocolPP::jdilithiumsa::to_json | ( | std::ofstream & | myjson, |  
          |  |  | direction_t | direction, |  
          |  |  | std::string & | indent |  
          |  | ) |  |  |  | virtual | 
 
Prints the protocol as an JSON object 
- Parameters
- 
  
    | myjson | - JSON object to print with |  | direction | - randomization |  | indent | - indentation for JSON output |  
 
Implements ProtocolPP::jsecass.
 
 
◆ to_xml()
Prints the protocol as an XML object 
- Parameters
- 
  
    | myxml | - XMLPrinter object to print with |  | direction | - randomization |  
 
Implements ProtocolPP::jsecass.
 
 
The documentation for this class was generated from the following file:
- jdilithium/include/jdilithiumsa.h