Home
last modified time | relevance | path

Searched refs:arrayItem (Results 1 – 6 of 6) sorted by relevance

/hardware/nxp/keymint/KM200/
DCborConverter.cpp112 unique_ptr<Item> arrayItem(nullptr); in getKeyCharacteristics() local
113 getItemAtPos(item, pos, arrayItem); in getKeyCharacteristics()
114 if ((arrayItem == nullptr) || (MajorType::ARRAY != getType(arrayItem))) return false; in getKeyCharacteristics()
120 if (!getKeyParameters(arrayItem, 0, sbEnf.authorizations) || in getKeyCharacteristics()
121 !getKeyParameters(arrayItem, 1, teeEnf.authorizations) || in getKeyCharacteristics()
122 !getKeyParameters(arrayItem, 2, swEnf.authorizations)) { in getKeyCharacteristics()
247 std::unique_ptr<Item> arrayItem(nullptr); in getCertificateChain() local
248 getItemAtPos(item, pos, arrayItem); in getCertificateChain()
249 if ((arrayItem == nullptr) || (MajorType::ARRAY != getType(arrayItem))) return false; in getCertificateChain()
251 const Array* arr = arrayItem.get()->asArray(); in getCertificateChain()
[all …]
/hardware/interfaces/identity/aidl/vts/
DTestCredentialTests.cpp147 const cppbor::Array* arrayItem = item->asArray(); in TEST_P() local
148 ASSERT_NE(arrayItem, nullptr); in TEST_P()
149 ASSERT_EQ(arrayItem->size(), 3); in TEST_P()
150 const cppbor::Tstr* docTypeItem = (*arrayItem)[0]->asTstr(); in TEST_P()
152 ((*arrayItem)[1]->asSimple() != nullptr ? ((*arrayItem)[1]->asSimple()->asBool()) in TEST_P()
158 const cppbor::Bstr* encryptedCredentialKeysItem = (*arrayItem)[2]->asBstr(); in TEST_P()
DAuthenticationKeyTests.cpp177 const cppbor::Array* arrayItem = item->asArray(); in TEST_P() local
178 ASSERT_NE(arrayItem, nullptr); in TEST_P()
179 ASSERT_EQ(arrayItem->size(), 2); in TEST_P()
180 const cppbor::Tstr* strItem = (*arrayItem)[0]->asTstr(); in TEST_P()
183 const cppbor::Bstr* popSha256Item = (*arrayItem)[1]->asBstr(); in TEST_P()
DEndToEndTests.cpp86 const cppbor::Array* arrayItem = item->asArray(); in extractFromTestCredentialData() local
87 if (arrayItem == nullptr || arrayItem->size() != 3) { in extractFromTestCredentialData()
91 const cppbor::Tstr* docTypeItem = (*arrayItem)[0]->asTstr(); in extractFromTestCredentialData()
93 ((*arrayItem)[1]->asSimple() != nullptr ? ((*arrayItem)[1]->asSimple()->asBool()) in extractFromTestCredentialData()
95 const cppbor::Bstr* encryptedCredentialKeysItem = (*arrayItem)[2]->asBstr(); in extractFromTestCredentialData()
/hardware/nxp/keymint/KM300/
DCborConverter.cpp173 auto arrayItem = getItemAtPos(item, pos); in getKeyCharacteristics() local
174 if (!arrayItem || (MajorType::ARRAY != getType(arrayItem.value()))) { in getKeyCharacteristics()
181 auto optSbEnf = getKeyParameters(arrayItem.value(), SB_ENFORCED); in getKeyCharacteristics()
186 auto optTeeEnf = getKeyParameters(arrayItem.value(), TEE_ENFORCED); in getKeyCharacteristics()
191 auto optSwEnf = getKeyParameters(arrayItem.value(), SW_ENFORCED); in getKeyCharacteristics()
332 auto arrayItem = getItemAtPos(item, pos); in getCertificateChain() local
333 if (!arrayItem || (MajorType::ARRAY != getType(arrayItem.value()))) return std::nullopt; in getCertificateChain()
335 const Array* arr = arrayItem.value().get()->asArray(); in getCertificateChain()
338 auto optTemp = getByteArrayVec(arrayItem.value(), i); in getCertificateChain()
379 auto arrayItem = getItemAtPos(item, pos); in getSharedSecretParameters() local
[all …]
/hardware/interfaces/identity/aidl/default/common/
DIdentityCredential.cpp54 const cppbor::Array* arrayItem = item->asArray(); in initialize() local
55 if (arrayItem == nullptr || arrayItem->size() != 3) { in initialize()
60 const cppbor::Tstr* docTypeItem = (*arrayItem)[0]->asTstr(); in initialize()
62 ((*arrayItem)[1]->asSimple() != nullptr ? ((*arrayItem)[1]->asSimple()->asBool()) in initialize()
64 const cppbor::Bstr* encryptedCredentialKeysItem = (*arrayItem)[2]->asBstr(); in initialize()