Lines Matching refs:cppbor
129 string out = cppbor::prettyPrint(coseSign1.value()); in TEST()
160 string out = cppbor::prettyPrint(coseSign1.value()); in TEST()
321 cppbor::prettyPrint(mac.value())); in TEST()
343 cppbor::prettyPrint(mac.value())); in TEST()
368 const cppbor::Item* findValueForTstr(const cppbor::Map* map, const string& keyValue) { in findValueForTstr()
377 const cppbor::Array* findArrayValueForTstr(const cppbor::Map* map, const string& keyValue) { in findArrayValueForTstr()
378 const cppbor::Item* item = findValueForTstr(map, keyValue); in findArrayValueForTstr()
385 const cppbor::Map* findMapValueForTstr(const cppbor::Map* map, const string& keyValue) { in findMapValueForTstr()
386 const cppbor::Item* item = findValueForTstr(map, keyValue); in findMapValueForTstr()
393 const cppbor::SemanticTag* findSemanticValueForTstr(const cppbor::Map* map, in findSemanticValueForTstr()
395 const cppbor::Item* item = findValueForTstr(map, keyValue); in findSemanticValueForTstr()
402 const std::string findStringValueForTstr(const cppbor::Map* map, const string& keyValue) { in findStringValueForTstr()
403 const cppbor::Item* item = findValueForTstr(map, keyValue); in findStringValueForTstr()
407 const cppbor::Tstr* tstr = item->asTstr(); in findStringValueForTstr()
484 auto [sessionEstablishmentItem, _se, _se2] = cppbor::parse(sessionEstablishmentEncoded.value()); in TEST()
485 const cppbor::Map* sessionEstablishment = sessionEstablishmentItem->asMap(); in TEST()
487 const cppbor::SemanticTag* eReaderKeyBytes = in TEST()
491 const cppbor::Bstr* eReaderKeyBstr = eReaderKeyBytes->asBstr(); in TEST()
515 cppbor::Array sessionTranscript; in TEST()
516 sessionTranscript.add(cppbor::SemanticTag(24, deviceEngagementEncoded)); in TEST()
517 sessionTranscript.add(cppbor::SemanticTag(24, eReaderKeyEncoded)); in TEST()
518 sessionTranscript.add(cppbor::Null()); in TEST()
521 cppbor::SemanticTag(24, sessionTranscriptEncoded).encode(); in TEST()
588 auto [deviceResponseItem, _, _2] = cppbor::parse(deviceResponseEncoded); in TEST()
589 const cppbor::Map* deviceResponse = deviceResponseItem->asMap(); in TEST()
591 const cppbor::Array* documents = findArrayValueForTstr(deviceResponse, "documents"); in TEST()
594 const cppbor::Map* document = ((*documents)[0])->asMap(); in TEST()
602 const cppbor::Map* deviceSigned = findMapValueForTstr(document, "deviceSigned"); in TEST()
607 const cppbor::SemanticTag* deviceNameSpacesBytes = in TEST()
611 const cppbor::Bstr* deviceNameSpacesBstr = deviceNameSpacesBytes->asBstr(); in TEST()
616 EXPECT_EQ(deviceNameSpacesEncoded, cppbor::Map().encode()); in TEST()
618 const cppbor::Map* deviceAuth = findMapValueForTstr(deviceSigned, "deviceAuth"); in TEST()
623 const cppbor::Array* deviceMac = findArrayValueForTstr(deviceAuth, "deviceMac"); in TEST()