Searched refs:macTag (Results 1 – 2 of 2) sorted by relevance
175 auto macTag = generateCoseMac0Mac(macFunction, {} /* external_aad */, payload->value()); in validateAndExtractPubkeys() local176 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()
79 auto macTag = macFunction(macStructure); in generateCoseMac0Mac() local80 if (!macTag) { in generateCoseMac0Mac()84 return *macTag; in generateCoseMac0Mac()126 auto macTag = generateCoseMac0Mac(macFunction, {} /* external_aad */, payload->value()); in verifyAndParseCoseMac0() local127 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()