#include <Sign.h>
|  | 
|  | Sign (const std::string &privateKey, const std::string &publicKey) | 
|  | Initializes the GNUTLS key objects.  More... 
 | 
|  | 
|  | ~Sign () | 
|  | 
| std::vector< char > | sign (const std::vector< char > &data) | 
|  | Signs the given data using the private key.  More... 
 | 
|  | 
| bool | verify (const std::vector< char > &data, const std::vector< char > &signature) | 
|  | Verifies the signature of the given data using the public key.  More... 
 | 
|  | 
§ Sign()
      
        
          | BaseLib::Security::Sign::Sign | ( | const std::string & | privateKey, | 
        
          |  |  | const std::string & | publicKey | 
        
          |  | ) |  |  | 
      
 
Initializes the GNUTLS key objects. 
- Parameters
- 
  
    | privateKey | The PEM encoded X509 private key. |  | publicKey | The PEM encoced X509 public key. |  
 
 
 
§ ~Sign()
      
        
          | BaseLib::Security::Sign::~Sign | ( |  | ) |  | 
      
 
 
§ sign()
      
        
          | std::vector< char > BaseLib::Security::Sign::sign | ( | const std::vector< char > & | data | ) |  | 
      
 
Signs the given data using the private key. 
- Parameters
- 
  
  
- Exceptions
- 
  
  
- Returns
- Returns the signature. 
 
 
§ verify()
      
        
          | bool BaseLib::Security::Sign::verify | ( | const std::vector< char > & | data, | 
        
          |  |  | const std::vector< char > & | signature | 
        
          |  | ) |  |  | 
      
 
Verifies the signature of the given data using the public key. 
- Parameters
- 
  
    | data | The data to verify. |  | signature | The signature of the data generated using the private key. |  
 
- Exceptions
- 
  
  
- Returns
- Returns "true" if the signature is valid and "false" otherwise. 
 
 
The documentation for this class was generated from the following files: