Searched refs:asMap (Results 1 – 11 of 11) sorted by relevance
/system/keymaster/cppcose/ |
D | cppcose.cpp | 274 auto unprotectedParms = mac->get(kCoseMac0UnprotectedParams)->asMap(); in verifyAndParseCoseMac0() 282 if (!protectedMap || !protectedMap->asMap()) { in verifyAndParseCoseMac0() 285 auto& algo = protectedMap->asMap()->get(ALGORITHM); in verifyAndParseCoseMac0() 374 const cppbor::Map* unprotectedParams = coseSign1->get(kCoseSign1UnprotectedParams)->asMap(); in verifyAndParseCoseSign1() 385 if (!parsedProtParams->asMap()) { in verifyAndParseCoseSign1() 389 auto& algorithm = parsedProtParams->asMap()->get(ALGORITHM); in verifyAndParseCoseSign1() 518 if (!parsedProtParms->asMap()) return "Invalid protected params"; in getSenderPubKeyFromCoseEncrypt() 520 auto& algorithm = parsedProtParms->asMap()->get(ALGORITHM); in getSenderPubKeyFromCoseEncrypt() 526 if (!unprotParms || !unprotParms->asMap()) return "Invalid unprotected params"; in getSenderPubKeyFromCoseEncrypt() 528 auto& senderCoseKey = unprotParms->asMap()->get(COSE_KEY); in getSenderPubKeyFromCoseEncrypt() [all …]
|
/system/security/provisioner/ |
D | rkp_factory_extraction_lib_test.cpp | 199 const Map* actualVerifiedDeviceInfo = deviceInfoArray->get(0)->asMap(); in TEST() 205 const Map* actualUnverifiedDeviceInfo = deviceInfoArray->get(1)->asMap(); in TEST() 226 EXPECT_THAT(actualMacedKeys->get(1)->asMap(), Pointee(Property(&Map::size, Eq(0)))); in TEST() 259 EXPECT_THAT(csr->get(1)->asMap(), NotNull()); in TEST() 263 const Map* unverifedDeviceInfo = csr->get(4)->asMap(); in TEST()
|
/system/keymaster/android_keymaster/ |
D | remote_provisioning_utils.cpp | 145 auto unprotectedParms = macedKeyItem->asArray()->get(kCoseMac0UnprotectedParams)->asMap(); in validateAndExtractPubkeys() 154 if (!protectedMap || !protectedMap->asMap()) { in validateAndExtractPubkeys() 158 auto& algo = protectedMap->asMap()->get(ALGORITHM); in validateAndExtractPubkeys()
|
/system/libcppbor/src/ |
D | cppbor.cpp | 70 const Map* map = compoundItem->asMap(); in cborAreAllElementsNonCompound() 209 const Map* map = item->asMap(); in prettyPrintInternal() 352 return *asMap() == *(other.asMap()); in operator ==() 522 item->asMap()->canonicalize(true /* recurse */); in recursivelyCanonicalize()
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 727 EXPECT_EQ(nullptr, item->asMap()); in TEST() 748 EXPECT_EQ(nullptr, item->asMap()); in TEST() 769 EXPECT_EQ(nullptr, item->asMap()); in TEST() 790 EXPECT_EQ(nullptr, item->asMap()); in TEST() 810 EXPECT_EQ(nullptr, item->asMap()); in TEST() 837 EXPECT_NE(nullptr, item->asMap()); in TEST() 842 EXPECT_EQ(0U, item->asMap()->size()); in TEST() 857 EXPECT_EQ(nullptr, item->asMap()); in TEST() 876 EXPECT_EQ(nullptr, item->asMap()); in TEST() 906 EXPECT_EQ(nullptr, item->asMap()); in TEST() [all …]
|
/system/keymaster/tests/ |
D | attestation_record_test.cpp | 343 const cppbor::Map* eat_map = top_level_item->asMap(); in TEST() 351 const cppbor::Map* submods_map = eat_value->asMap(); in TEST() 355 const cppbor::Map* submod_map = submod_value->asMap(); in TEST()
|
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 152 virtual Map* asMap() { return nullptr; } in asMap() function 153 const Map* asMap() const { return const_cast<Item*>(this)->asMap(); } in asMap() function 747 using Item::asMap; 748 Map* asMap() override { return this; } in asMap() function 836 using Item::asMap; 837 Map* asMap() override { return mTaggedItem->asMap(); } in asMap() function
|
/system/security/identity/ |
D | CredentialData.cpp | 271 const cppbor::Map* map = item->asMap(); in loadFromDisk() 324 const cppbor::Map* map = valueItem->asMap(); in loadFromDisk()
|
/system/keymaster/include/keymaster/cppcose/ |
D | cppcose.h | 154 if (!parsedKey->asMap()) return "CoseKey must be a map"; in parse()
|
/system/keymaster/km_openssl/ |
D | attestation_record.cpp | 1497 const cppbor::Map* eat_map = top_level_item->asMap(); in parse_eat_record() 1512 const cppbor::Map* map_value = value_item->asMap(); in parse_eat_record() 1553 const cppbor::Map* submod_map = submod_value->asMap(); in parse_eat_record()
|
/system/libcppbor/ |
D | README.md | 199 appropriate `Item::as*()` method (e.g. `Item::asMap()`) to get a
|