CryptoSys PKI
23.0.0
|
Keyed-hash based message authentication code (HMAC) functions. More...
Public Types | |
enum class | Alg |
Hash algorithm used in HMAC More... | |
Static Public Member Functions | |
static bvec_t | Bytes (const bvec_t &data, const bvec_t &key, Alg alg=Alg::Sha1) |
Compute HMAC over byte array. More... | |
static std::string | HexFromBytes (const bvec_t &data, const bvec_t &key, Alg alg=Alg::Sha1) |
Compute HMAC in hex format over byte array. More... | |
static std::string | HexFromHex (const std::string &dataHex, const std::string &keyHex, Alg alg=Alg::Sha1) |
Compute HMAC in hex format over hex-encoded input. More... | |
static std::string | HexFromString (const std::string &s, const bvec_t &key, Alg alg=Alg::Sha1) |
Compute HMAC in hex format over string input. More... | |
Keyed-hash based message authentication code (HMAC) functions.
|
strong |
Hash algorithm used in HMAC
|
static |
Compute HMAC over byte array.
data | Message data in byte array. |
key | Key in byte array |
alg | Hash algorithm to be used in HMAC (default = SHA-1). |
|
static |
Compute HMAC in hex format over byte array.
data | Message data in byte array . |
key | Key in byte array |
alg | Hash algorithm to be used in HMAC (default = SHA-1). |
|
static |
Compute HMAC in hex format over hex-encoded input.
dataHex | Message data in hex-encoded format. |
keyHex | Key in hex-encoded format. |
alg | Hash algorithm to be used in HMAC (default = SHA-1). |
|
static |
Compute HMAC in hex format over string input.
s | Message data string. |
key | Key in byte array |
alg | Hash algorithm to be used in HMAC (default = SHA-1). |