|  | 
|  | jrsasa () | 
|  | 
|  | jrsasa (int bitsize, keymode_t mode, rsapadtype_t padtype, rsaenc_t enc) | 
|  | 
|  | jrsasa (int bitsize, keymode_t mode, rsapadtype_t padtype, rsaenc_t enc, CryptoPP::RSA::PrivateKey prvkey, CryptoPP::RSA::PublicKey pubkey) | 
|  | 
|  | jrsasa (jrsasa &rhs) | 
|  | standard copy constructor 
 | 
|  | 
|  | jrsasa (std::shared_ptr< jrsasa > &rhs) | 
|  | standard copy constructor from shared pointer 
 | 
|  | 
| virtual | ~jrsasa ()=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) | 
|  | 
|  | jrsasa (const jrsasa &jrsasa)=delete | 
|  | 
|  | jsecass () | 
|  | 
| virtual | ~jsecass ()=default | 
|  | Standard deconstructor. 
 | 
|  | 
|  | jsecass (jsecass &jsecass)=delete | 
|  | 
|  | jsecass (const jsecass &jsecass)=delete | 
|  | 
◆ jrsasa() [1/3]
      
        
          | ProtocolPP::jrsasa::jrsasa | ( |  | ) |  | 
      
 
Standard constructor with defaults
RSA Defaults
| field | Default Value | 
| bitsize | 3078 | 
| mode | keymode_t::GENKEYPAIR | 
| padtype | rsapadtype_t::PKCS15 | 
| enc | rsaenc_t::PKCS | 
| prvkey | 0 | 
| pubkey | 0 | 
 
 
◆ jrsasa() [2/3]
Security Association for RSA
Required fields for RSA
- Parameters
- 
  
    | bitsize | - size of the private key (768:1024:2048:3078:4096:6172:8192) |  | mode | - Type of PKI calculation (GENKEYPAIR:PKISIGN:PKIVERIFY:RSAENCRYPT:RSADECRYPT) |  | padtype | - PKCS15 or PSS |  | enc | - PKCS or OAEP_SHA |  
 
 
 
◆ jrsasa() [3/3]
      
        
          | ProtocolPP::jrsasa::jrsasa | ( | int | bitsize, | 
        
          |  |  | keymode_t | mode, | 
        
          |  |  | rsapadtype_t | padtype, | 
        
          |  |  | rsaenc_t | enc, | 
        
          |  |  | CryptoPP::RSA::PrivateKey | prvkey, | 
        
          |  |  | CryptoPP::RSA::PublicKey | pubkey | 
        
          |  | ) |  |  | 
      
 
Security Association for RSA
Required fields for RSA
- Parameters
- 
  
    | bitsize | - size of the private key (768:1024:2048:3078:4096:6172:8192) |  | mode | - Type of PKI calculation (GENKEYPAIR:PKISIGN:PKIVERIFY:RSAENCRYPT:RSADECRYPT) |  | padtype | - PKCS15 or PSS |  | enc | - PKCS or OAEP_SHA |  | prvkey | - Private RSA key |  | pubkey | - Public RSA key |  
 
 
 
◆ get_field()
template<typename T > 
      
        
          | T ProtocolPP::jrsasa::get_field | ( | field_t | field | ) |  | 
      
 
Returns the version field of the RSA security association
RSASA Get Fields
| field type | field name | Example | 
| int | BITSIZE | int bitsize = get_field<int>(field_t::BITSIZE) | 
| keymode_t | MODE | keymode_t mode = get_field<keymode_t>(field_t::MODE) | 
| rsapadtype_t | PADTYPE | rsapadtype_t padtype = get_field<rsapadtype_t>(field_t::PADTYPE) | 
| rsaenc_t | ENC | rsaenc_t rsaenc = get_field<rsaenc_t>(field_t::ENC) | 
| CryptoPP::RSA::PrivateKey | PRVKEY | CryptoPP::RSA::PrivateKey prvkey = get_field<CryptoPP::RSA::PrivateKey>(field_t::PRVKEY) | 
| CryptoPP::RSA::PublicKey | PUBKEY | CryptoPP::RSA::PublicKey pubkey = get_field<CryptoPP::RSA::PublicKey>(field_t::PUBKEY) | 
- Parameters
- 
  
    | field | - field to retrieve from the RSA security association |  
 
- Returns
- field of the RSA security association 
 
 
◆ set_field()
template<typename T > 
      
        
          | void ProtocolPP::jrsasa::set_field | ( | field_t | field, | 
        
          |  |  | T | fieldval | 
        
          |  | ) |  |  | 
      
 
Allows the user to update the field of the RSA security association
RSASA Set Fields
| field type | field name | Example | 
| int | BITSIZE | set_field<int>(field_t::BITSIZE, 3078) | 
| keymode_t | MODE | set_field<keymode_t>(field_t::MODE, keymode_t::GENKEYPAIR) | 
| rsapadtype_t | PADTYPE | set_field<rsapadtype_t>(field_t::PADTYPE, rsapadtype_t::PKCS15) | 
| rsaenc_t | ENC | set_field<rsaenc_t>(field_t::ENC, rsaenc_t::PKCS) | 
| CryptoPP::RSA::PrivateKey | PRVKEY | set_field<CryptoPP::RSA::PrivateKey>(field_t::PRVKEY, prvkey) | 
| CryptoPP::RSA::PublicKey | PUBKEY | set_field<CryptoPP::RSA::PublicKey>(field_t::PUBKEY, pubkey) | 
- Parameters
- 
  
    | field | - field to update in the RSA security association |  | fieldval | - value to update in the RSA security association |  
 
 
 
◆ to_json()
  
  | 
        
          | void ProtocolPP::jrsasa::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: