Lines Matching refs:keymaster
58 namespace keymaster { namespace
76 std::ostream& operator<<(std::ostream& os, const Keymaster& keymaster) { in operator <<() argument
77 auto& version = keymaster.halVersion(); in operator <<()
80 << " HAL: " << keymaster.descriptor() << "/" << keymaster.instanceName(); in operator <<()
148 for (auto& keymaster : keymasters) { in getHmacParameters() local
149 if (keymaster->halVersion().majorVersion < 4) continue; in getHmacParameters()
150 auto rc = keymaster->getHmacSharingParameters([&](auto error, auto& params) { in getHmacParameters()
152 << "Failed to get HMAC parameters from " << *keymaster << " error " << error; in getHmacParameters()
155 CHECK(rc.isOk()) << "Failed to communicate with " << *keymaster in getHmacParameters()
170 for (auto& keymaster : keymasters) { in computeHmac() local
171 if (keymaster->halVersion().majorVersion < 4) continue; in computeHmac()
172 LOG(DEBUG) << "Computing HMAC for " << *keymaster; in computeHmac()
173 auto rc = keymaster->computeSharedHmac( in computeHmac()
176 << *keymaster << " error " << error; in computeHmac()
182 LOG(WARNING) << "HMAC computation failed for " << *keymaster // in computeHmac()
186 CHECK(rc.isOk()) << "Failed to communicate with " << *keymaster in computeHmac()