Home | History | Annotate | Download | only in crypto

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.
36 // byte. OpenSSL's HMAC function breaks when passed a NULL key. (It calls
38 // with a key previously.) HMAC pads keys with zeros, so this key is
45 HMAC::~HMAC() {
51 bool HMAC::Sign(const base::StringPiece& data,
57 return ::HMAC(hash_alg_ == SHA1 ? EVP_sha1() : EVP_sha256(),