39 G_EXCEPTION( InvalidMaskedKey ,
"invalid md5 key" ) ;
40 G_EXCEPTION( Error ,
"internal md5 error" ) ;
44 static std::string
digest(
const std::string & input ) ;
48 static std::string
digest(
const std::string & input_1 ,
const std::string & input_2 ) ;
51 static std::string
printable(
const std::string & input ) ;
55 static std::string
hmac(
const std::string & key ,
const std::string & input ) ;
81 static std::string
hmac(
const std::string & masked_key ,
const std::string & input ,
Masked ) ;
95 static std::string
mask(
const std::string & key ) ;
100 static std::string
digest(
const std::string & input_1 ,
const std::string * input_2 ) ;
101 static std::string
mask(
const std::string & k64 ,
const std::string & pad ) ;
102 static std::string xor_(
const std::string & ,
const std::string & ) ;
103 static std::string key64( std::string ) ;
104 static std::string ipad() ;
105 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)
Computes a masked key for hmac() from the given shared key, returning a printable string...
static std::string digest(const std::string &input)
Creates an MD5 digest.
MD5 message digest class.
static std::string printable(const std::string &input)
Converts a binary string into a printable form, using a lowercase hexadecimal encoding.