Home
last modified time | relevance | path

Searched refs:macTag (Results 1 – 2 of 2) sorted by relevance

/system/keymaster/android_keymaster/
Dremote_provisioning_utils.cpp175 auto macTag = generateCoseMac0Mac(macFunction, {} /* external_aad */, payload->value()); in validateAndExtractPubkeys() local
176 if (!macTag) { in validateAndExtractPubkeys()
177 LOG_E("%s", macTag.moveMessage().c_str()); in validateAndExtractPubkeys()
180 if (macTag->size() != tag->value().size() || in validateAndExtractPubkeys()
181 CRYPTO_memcmp(macTag->data(), tag->value().data(), macTag->size()) != 0) { in validateAndExtractPubkeys()
/system/keymaster/cppcose/
Dcppcose.cpp79 auto macTag = macFunction(macStructure); in generateCoseMac0Mac() local
80 if (!macTag) { in generateCoseMac0Mac()
84 return *macTag; in generateCoseMac0Mac()
126 auto macTag = generateCoseMac0Mac(macFunction, {} /* external_aad */, payload->value()); in verifyAndParseCoseMac0() local
127 if (!macTag) return macTag.moveMessage(); in verifyAndParseCoseMac0()
129 if (macTag->size() != tag->value().size() || in verifyAndParseCoseMac0()
130 CRYPTO_memcmp(macTag->data(), tag->value().data(), macTag->size()) != 0) { in verifyAndParseCoseMac0()