#include <Mac.h>
|  | 
| template<typename Data > | 
| static bool | cmac (const Data &key, const Data &iv, const Data &in, Data &out) | 
|  | Calculates the CMAC of the passed binary data.  More... 
 | 
|  | 
§ ~Mac()
  
  | 
        
          | virtual BaseLib::Security::Mac::~Mac | ( |  | ) |  |  | virtual | 
 
Destructor. 
Does nothing. 
 
 
§ Mac()
  
  | 
        
          | BaseLib::Security::Mac::Mac | ( |  | ) |  |  | protected | 
 
Constructor. 
It is protected, because the class only contains static methods. It does nothing. 
 
 
§ cmac()
template<typename Data > 
  
  | 
        
          | bool BaseLib::Security::Mac::cmac | ( | const Data & | key, |  
          |  |  | const Data & | iv, |  
          |  |  | const Data & | in, |  
          |  |  | Data & | out |  
          |  | ) |  |  |  | static | 
 
Calculates the CMAC of the passed binary data. 
- Parameters
- 
  
    | [in] | key | The AES key to use for CMAC calculation. |  | [in] | iv | The AES IV to use for CMAC calculation. Can be an empty array. |  | [in] | in | The data to calculate the CMAC for. |  | [out] | out | A vector to store the calculated MAC in. |  
 
- Returns
- Returns "true" on success and "false" on error. 
- Exceptions
- 
  
  
 
 
The documentation for this class was generated from the following files: