Lines Matching refs:plat_
25 : hash_alg_(hash_alg), plat_(new HMACPlatformData()) { in HMAC()
31 if (plat_->provider_ || plat_->hkey_) { in Init()
37 if (!CryptAcquireContext(&plat_->provider_, NULL, NULL, in Init()
40 plat_->provider_ = NULL; in Init()
67 if (!CryptImportKey(plat_->provider_, &key_blob_storage[0], in Init()
69 &plat_->hkey_)) { in Init()
71 plat_->hkey_ = NULL; in Init()
83 if (plat_->hkey_) { in ~HMAC()
84 ok = CryptDestroyKey(plat_->hkey_); in ~HMAC()
87 if (plat_->hash_) { in ~HMAC()
88 ok = CryptDestroyHash(plat_->hash_); in ~HMAC()
91 if (plat_->provider_) { in ~HMAC()
92 ok = CryptReleaseContext(plat_->provider_, 0); in ~HMAC()
100 if (!plat_->provider_ || !plat_->hkey_) in Sign()
109 plat_->provider_, CALG_HMAC, plat_->hkey_, 0, &plat_->hash_)) in Sign()
115 if (!CryptSetHashParam(plat_->hash_, HP_HMAC_INFO, in Sign()
119 if (!CryptHashData(plat_->hash_, in Sign()
125 if (!CryptGetHashParam(plat_->hash_, HP_HASHVAL, digest, &sha1_size, 0)) in Sign()