Wolframe, 0.0.3

_Wolframe::crypto::HMAC_SHA1 Class Reference

Standard HMAC-SHA1 object. More...

#include <HMAC.hpp>

Public Member Functions

 HMAC_SHA1 (const unsigned char *key, size_t keySize, const unsigned char *msg, size_t msgSize)
 
 HMAC_SHA1 (const std::string &key, const std::string &message)
 
 HMAC_SHA1 (const unsigned char *key, size_t keySize, const std::string &message)
 
 HMAC_SHA1 (const std::string &key, const unsigned char *msg, size_t msgSize)
 
 HMAC_SHA1 (const std::string &str)
 
const unsigned char * hash () const
 
std::size_t size () const
 
bool operator== (const HMAC_SHA1 &rhs) const
 Comparisson operators. More...
 
bool operator!= (const HMAC_SHA1 &rhs) const
 
bool operator== (const std::string &rhs) const
 
bool operator!= (const std::string &rhs) const
 
std::string toBCD () const
 BCD string representation of the HMAC value. More...
 
std::string toString () const
 

Private Attributes

unsigned char m_HMAC [HMAC_SHA1_HASH_SIZE]
 

Detailed Description

Standard HMAC-SHA1 object.

Constructor & Destructor Documentation

_Wolframe::crypto::HMAC_SHA1::HMAC_SHA1 ( const unsigned char *  key,
size_t  keySize,
const unsigned char *  msg,
size_t  msgSize 
)
inline
_Wolframe::crypto::HMAC_SHA1::HMAC_SHA1 ( const std::string &  key,
const std::string &  message 
)
inline
_Wolframe::crypto::HMAC_SHA1::HMAC_SHA1 ( const unsigned char *  key,
size_t  keySize,
const std::string &  message 
)
inline
_Wolframe::crypto::HMAC_SHA1::HMAC_SHA1 ( const std::string &  key,
const unsigned char *  msg,
size_t  msgSize 
)
inline
_Wolframe::crypto::HMAC_SHA1::HMAC_SHA1 ( const std::string &  str)
Note
The string is a base64 representation of the value

Member Function Documentation

const unsigned char* _Wolframe::crypto::HMAC_SHA1::hash ( ) const
inline
bool _Wolframe::crypto::HMAC_SHA1::operator!= ( const HMAC_SHA1 rhs) const
inline
bool _Wolframe::crypto::HMAC_SHA1::operator!= ( const std::string &  rhs) const
inline
bool _Wolframe::crypto::HMAC_SHA1::operator== ( const HMAC_SHA1 rhs) const

Comparisson operators.

bool _Wolframe::crypto::HMAC_SHA1::operator== ( const std::string &  rhs) const

Comparisson operators

Note
The string is a base64 representation of the value
std::size_t _Wolframe::crypto::HMAC_SHA1::size ( ) const
inline
std::string _Wolframe::crypto::HMAC_SHA1::toBCD ( ) const

BCD string representation of the HMAC value.

std::string _Wolframe::crypto::HMAC_SHA1::toString ( ) const

Base64 string representation of the HMAC value.

Note
The string is without the base64 end padding

Member Data Documentation

unsigned char _Wolframe::crypto::HMAC_SHA1::m_HMAC[HMAC_SHA1_HASH_SIZE]
private

The documentation for this class was generated from the following file: