#include <KeyUtils.hpp>
 | 
static Botan::MemoryVector 
< boost::uint8_t >  | loadPublicKey (const std::string &fileName) | 
|   | 
| static std::string  | loadPrivateKey (const std::string &fileName) | 
|   | 
| static KeyPair  | loadKeyPair (const std::string &pubFileName, const std::string &privFileName) | 
|   | 
| static void  | saveKeyPair (const KeyPair &pair, const std::string &pubFileName, const std::string &privFileName) | 
|   | 
| static void  | savePublicKey (const Botan::MemoryVector< boost::uint8_t > &key, const std::string &pubFileName) | 
|   | 
| static void  | savePrivateKey (const std::string &key, const std::string &privFileName) | 
|   | 
Definition at line 30 of file KeyUtils.hpp.
 
      
        
          | KeyPair kaa::KeyUtils::generateKeyPair  | 
          ( | 
          size_t  | 
          length | ) | 
           | 
        
      
 
Generates RSA private and public keys.
- Parameters
 - 
  
    | length | the length of the key in bits  | 
  
   
- Returns
 - the pair of keys. The first element of the pair is a public key and the second one - is a private key. 
 
 
 
      
        
          | Botan::SymmetricKey kaa::KeyUtils::generateSessionKey  | 
          ( | 
          size_t  | 
          length | ) | 
           | 
        
      
 
Generates symmetric session key
- Parameters
 - 
  
    | length | the length of the key in bytes  | 
  
   
- Returns
 - the pair of key and initialization vector 
 
 
 
  
  
      
        
          | static KeyPair kaa::KeyUtils::loadKeyPair  | 
          ( | 
          const std::string &  | 
          pubFileName,  | 
         
        
           | 
           | 
          const std::string &  | 
          privFileName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static std::string kaa::KeyUtils::loadPrivateKey  | 
          ( | 
          const std::string &  | 
          fileName | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static Botan::MemoryVector<boost::uint8_t> kaa::KeyUtils::loadPublicKey  | 
          ( | 
          const std::string &  | 
          fileName | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static void kaa::KeyUtils::saveKeyPair  | 
          ( | 
          const KeyPair &  | 
          pair,  | 
         
        
           | 
           | 
          const std::string &  | 
          pubFileName,  | 
         
        
           | 
           | 
          const std::string &  | 
          privFileName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static void kaa::KeyUtils::savePrivateKey  | 
          ( | 
          const std::string &  | 
          key,  | 
         
        
           | 
           | 
          const std::string &  | 
          privFileName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static void kaa::KeyUtils::savePublicKey  | 
          ( | 
          const Botan::MemoryVector< boost::uint8_t > &  | 
          key,  | 
         
        
           | 
           | 
          const std::string &  | 
          pubFileName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/kaa/client/client-multi/client-cpp/kaa/security/KeyUtils.hpp