Searched refs:cppcose (Results 1 – 7 of 7) sorted by relevance
68 ASSERT_EQ(macItem->semanticTag(0), cppcose::kCoseMac0SemanticTag); in validateMacedRootOfTrust()70 ASSERT_EQ(macItem->asArray()->size(), cppcose::kCoseMac0EntryCount); in validateMacedRootOfTrust()72 const auto& protectedItem = macItem->asArray()->get(cppcose::kCoseMac0ProtectedParams); in validateMacedRootOfTrust()80 const auto& algorithm = protMap->asMap()->get(cppcose::ALGORITHM); in validateMacedRootOfTrust()83 ASSERT_EQ(algorithm->asInt()->value(), cppcose::HMAC_256); in validateMacedRootOfTrust()85 const auto& unprotItem = macItem->asArray()->get(cppcose::kCoseMac0UnprotectedParams); in validateMacedRootOfTrust()90 const auto& payload = macItem->asArray()->get(cppcose::kCoseMac0Payload); in validateMacedRootOfTrust()95 const auto& tag = macItem->asArray()->get(cppcose::kCoseMac0Tag); in validateMacedRootOfTrust()
46 using namespace cppcose;2204 auto macFunction = [](const cppcose::bytevec& input) { in check_maced_pubkey()2205 return cppcose::generateHmacSha256(remote_prov::kTestMacKey, input); in check_maced_pubkey()2208 cppcose::generateCoseMac0Mac(macFunction, {} /* external_aad */, payload->value()); in check_maced_pubkey()2226 const std::unique_ptr<cppbor::Item>& xItem = coseKey->get(cppcose::CoseKey::PUBKEY_X); in p256_pub_key()2229 const std::unique_ptr<cppbor::Item>& yItem = coseKey->get(cppcose::CoseKey::PUBKEY_Y); in p256_pub_key()
78 auto& pubkey_x = key->getMap().get(cppcose::CoseKey::PUBKEY_X); in parseEcdh256()79 auto& pubkey_y = key->getMap().get(cppcose::CoseKey::PUBKEY_Y); in parseEcdh256()
215 curve = (eekId.empty()) ? ED25519 : cppcose::X25519; in constructCoseKey()254 return cppcose::constructCoseSign1(key, payload, aad); in constructCoseSign1()865 auto& pubkey = coseKey->getMap().get(cppcose::CoseKey::PUBKEY_X); in validateUdsCerts()
29 using namespace cppcose; variable
51 using cppcose::kCoseMac0EntryCount;52 using cppcose::kCoseMac0Payload;
49 using namespace cppcose;