Lines Matching defs:HMAC
5 #include "crypto/hmac.h"
7 #include <openssl/hmac.h>
23 HMAC::HMAC(HashAlgorithm hash_alg)
29 bool HMAC::Init(const unsigned char* key, size_t key_length) {
30 // Init must not be called more than once on the same HMAC object.
37 HMAC::~HMAC() {
43 bool HMAC::Sign(const base::StringPiece& data,
49 return ::HMAC(hash_alg_ == SHA1 ? EVP_sha1() : EVP_sha256(),