Provides a method to digest (using HMAC) and encode (using Base64) an input message. More...
#include <DigestRequest.h>
Public Types | |
enum | { ENCODED_LEN = 88 } |
Length of the encoded digest. More... | |
Static Public Member Functions | |
static std::string | makeDigest (const std::string &message, const std::vector< uint8_t > &key) throw (ServiceException) |
Make an encoded digest of a message. |
Provides a method to digest (using HMAC) and encode (using Base64) an input message.
Definition at line 20 of file DigestRequest.h.
anonymous enum |
Length of the encoded digest.
Definition at line 27 of file DigestRequest.h.
std::string DigestRequest::makeDigest | ( | const std::string & | message, | |
const std::vector< uint8_t > & | key | |||
) | throw (ServiceException) [static] |
Make an encoded digest of a message.
message | the input message to encode. | |
key | the key to use to digest the input message. It must be exactly 64 bytes in length. |
ServiceException | if the input key length is not correct. | |
ServiceException | if there is any problem encoding the message. |
Definition at line 15 of file DigestRequest.cpp.