Searched refs:plat_ (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/crypto/ |
D | hmac_nss.cc | 25 : hash_alg_(hash_alg), plat_(new HMACPlatformData()) { in HMAC() 29 plat_->mechanism_ = CKM_SHA_1_HMAC; in HMAC() 32 plat_->mechanism_ = CKM_SHA256_HMAC; in HMAC() 46 if (plat_->slot_.get()) { in Init() 52 plat_->slot_.reset(PK11_GetInternalSlot()); in Init() 53 if (!plat_->slot_.get()) { in Init() 63 plat_->sym_key_.reset(PK11_ImportSymKey(plat_->slot_.get(), in Init() 64 plat_->mechanism_, in Init() 69 if (!plat_->sym_key_.get()) { in Init() 80 if (!plat_->sym_key_.get()) { in Sign() [all …]
|
D | hmac_openssl.cc | 31 DCHECK(!plat_); in Init() 32 plat_.reset(new HMACPlatformData()); in Init() 33 plat_->key.assign(key, key + key_length); in Init() 38 if (plat_) { in ~HMAC() 40 plat_->key.assign(plat_->key.size(), 0); in ~HMAC() 41 STLClearObject(&plat_->key); in ~HMAC() 48 DCHECK(plat_); // Init must be called before Sign. in Sign() 52 plat_->key.data(), plat_->key.size(), in Sign()
|
D | hmac_win.cc | 108 : hash_alg_(hash_alg), plat_(new HMACPlatformData()) { in HMAC() 114 if (plat_->provider_ || plat_->key_ || !plat_->raw_key_.empty()) { in Init() 121 plat_->raw_key_.assign(key, key + key_length); in Init() 125 if (!CryptAcquireContext(plat_->provider_.receive(), NULL, NULL, in Init() 154 if (!CryptImportKey(plat_->provider_, &key_blob_storage[0], in Init() 156 CRYPT_IPSEC_HMAC_KEY, plat_->key_.receive())) { in Init() 174 if (plat_->raw_key_.empty()) in Sign() 176 ComputeHMACSHA256(&plat_->raw_key_[0], plat_->raw_key_.size(), in Sign() 182 if (!plat_->provider_ || !plat_->key_) in Sign() 191 if (!CryptCreateHash(plat_->provider_, CALG_HMAC, plat_->key_, 0, in Sign()
|
D | hmac.h | 88 scoped_ptr<HMACPlatformData> plat_; variable
|