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 <<()
149 for (auto& keymaster : keymasters) { in getHmacParameters() local
150 if (keymaster->halVersion().majorVersion < 4) continue; in getHmacParameters()
151 auto rc = keymaster->getHmacSharingParameters([&](auto error, auto& params) { in getHmacParameters()
153 << "Failed to get HMAC parameters from " << *keymaster << " error " << error; in getHmacParameters()
156 CHECK(rc.isOk()) << "Failed to communicate with " << *keymaster in getHmacParameters()
171 for (auto& keymaster : keymasters) { in computeHmac() local
172 if (keymaster->halVersion().majorVersion < 4) continue; in computeHmac()
173 LOG(DEBUG) << "Computing HMAC for " << *keymaster; in computeHmac()
174 auto rc = keymaster->computeSharedHmac( in computeHmac()
177 << *keymaster << " error " << error; in computeHmac()
183 LOG(WARNING) << "HMAC computation failed for " << *keymaster // in computeHmac()
187 CHECK(rc.isOk()) << "Failed to communicate with " << *keymaster in computeHmac()