Lines Matching refs:plat_
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()
87 ScopedPK11Context context(PK11_CreateContextBySymKey(plat_->mechanism_, in Sign()
89 plat_->sym_key_.get(), in Sign()