40 G_EXCEPTION( InvalidMaskedKey ,
"invalid md5 key" ) ;
46 static std::string
digest(
const std::string & input ) ;
50 static std::string
digest(
const std::string & input_1 ,
const std::string & input_2 ) ;
53 static std::string
printable(
const std::string & input ) ;
58 static std::string
hmac(
const std::string & key ,
const std::string & input ) ;
63 static std::string
hmac(
const std::string & masked_key ,
const std::string & input ,
Masked ) ;
66 static std::string
mask(
const std::string & key ) ;
70 static std::string
digest(
const std::string & input_1 ,
const std::string * input_2 ) ;
71 static std::string
mask(
const std::string & k64 ,
const std::string & pad ) ;
72 static std::string xor_(
const std::string & ,
const std::string & ) ;
73 static std::string key64( std::string ) ;
74 static std::string ipad() ;
75 static std::string opad() ;
An overload discriminator for G::Md5::hmac()
static std::string hmac(const std::string &key, const std::string &input)
Computes a Hashed Message Authentication Code using MD5 as the hash function.
static std::string mask(const std::string &key)
Masks an HMAC key so that it can be stored more safely.
static std::string digest(const std::string &input)
Creates an MD5 digest.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
static std::string printable(const std::string &input)
Converts a binary string into a printable form, using a lowercase hexadecimal encoding.