SHA-384 hash function class.  
 More...
#include <sha384.h>
|  | 
|  | SHA384 () | 
|  | Constructs a SHA-384 hash generator. 
 | 
|  | 
| void | add (const DataBuffer &data) | 
|  | Add. 
 | 
|  | 
| void | add (const void *data, int size) | 
|  | Adds data to be hashed. 
 | 
|  | 
| void | calculate () | 
|  | Finalize hash calculation. 
 | 
|  | 
| std::string | get_hash (bool uppercase=false) const | 
|  | Returns the calculated hash. 
 | 
|  | 
| void | get_hash (unsigned char out_hash[hash_size]) const | 
|  | Get hash. 
 | 
|  | 
| void | reset () | 
|  | Resets the hash generator. 
 | 
|  | 
| void | set_hmac (const void *key_data, int key_size) | 
|  | Enable a HMAC based calculation. 
 | 
|  | 
SHA-384 hash function class. 
◆ SHA384()
Constructs a SHA-384 hash generator. 
 
 
◆ add() [1/2]
◆ add() [2/2]
      
        
          | void clan::SHA384::add | ( | const void * | data, | 
        
          |  |  | int | size ) | 
      
 
 
◆ calculate()
      
        
          | void clan::SHA384::calculate | ( |  | ) |  | 
      
 
Finalize hash calculation. 
 
 
◆ get_hash() [1/2]
      
        
          | std::string clan::SHA384::get_hash | ( | bool | uppercase = false | ) | const | 
      
 
Returns the calculated hash. 
 
 
◆ get_hash() [2/2]
      
        
          | void clan::SHA384::get_hash | ( | unsigned char | out_hash[hash_size] | ) | const | 
      
 
Get hash. 
- Parameters
- 
  
    | out_hash | = where to write to |  
 
 
 
◆ reset()
      
        
          | void clan::SHA384::reset | ( |  | ) |  | 
      
 
Resets the hash generator. 
 
 
◆ set_hmac()
      
        
          | void clan::SHA384::set_hmac | ( | const void * | key_data, | 
        
          |  |  | int | key_size ) | 
      
 
Enable a HMAC based calculation. 
Call this function before the initial add(). It is reset by reset()
- Parameters
- 
  
    | key_data | = The HMAC key |  | key_size | = The size of the key_data |  
 
 
 
◆ hash_size
  
  | 
        
          | const int clan::SHA384::hash_size = 48 |  | static | 
 
 
The documentation for this class was generated from the following file: