Lines Matching refs:item

171 CborConverter::getKeyCharacteristics(const unique_ptr<Item>& item, const uint32_t pos) {  in getKeyCharacteristics()  argument
173 auto arrayItem = getItemAtPos(item, pos); in getKeyCharacteristics()
264 const std::unique_ptr<Item>& item = array->get(i); in getKeyParameter() local
265 if (!(optValue = getUint64(item))) { in getKeyParameter()
280 const std::unique_ptr<Item>& item = array->get(i); in getKeyParameter() local
281 if (!(optValue = getUint64(item))) { in getKeyParameter()
330 CborConverter::getCertificateChain(const std::unique_ptr<Item>& item, const uint32_t pos) { in getCertificateChain() argument
332 auto arrayItem = getItemAtPos(item, pos); in getCertificateChain()
346 std::optional<string> CborConverter::getTextStr(const unique_ptr<Item>& item, const uint32_t pos) { in getTextStr() argument
347 auto textStrItem = getItemAtPos(item, pos); in getTextStr()
355 std::optional<string> CborConverter::getByteArrayStr(const unique_ptr<Item>& item, in getByteArrayStr() argument
357 auto optTemp = getByteArrayVec(item, pos); in getByteArrayStr()
365 std::optional<std::vector<uint8_t>> CborConverter::getByteArrayVec(const unique_ptr<Item>& item, in getByteArrayVec() argument
367 auto strItem = getItemAtPos(item, pos); in getByteArrayVec()
376 CborConverter::getSharedSecretParameters(const unique_ptr<Item>& item, const uint32_t pos) { in getSharedSecretParameters() argument
379 auto arrayItem = getItemAtPos(item, pos); in getSharedSecretParameters()
427 std::optional<TimeStampToken> CborConverter::getTimeStampToken(const unique_ptr<Item>& item, in getTimeStampToken() argument
431 auto optChallenge = getUint64(item, pos); in getTimeStampToken()
432 auto optTimestampMillis = getUint64(item, pos + 1); in getTimeStampToken()
433 auto optTemp = getByteArrayVec(item, pos + 2); in getTimeStampToken()
443 std::optional<Array> CborConverter::getArrayItem(const std::unique_ptr<Item>& item, in getArrayItem() argument
446 auto arrayItem = getItemAtPos(item, pos); in getArrayItem()
454 std::optional<Map> CborConverter::getMapItem(const std::unique_ptr<Item>& item, in getMapItem() argument
457 auto mapItem = getItemAtPos(item, pos); in getMapItem()
465 std::optional<vector<KeyParameter>> CborConverter::getKeyParameters(const unique_ptr<Item>& item, in getKeyParameters() argument
468 auto mapItem = getItemAtPos(item, pos); in getKeyParameters()
485 auto [item, pos, message] = cppbor::parse(response); in decodeData()
486 if (!item || MajorType::ARRAY != getType(item)) { in decodeData()
489 auto optErrorCode = getErrorCode(item, 0); in decodeData()
493 return {std::move(item), optErrorCode.value()}; in decodeData()
497 CborConverter::getErrorCode(const std::unique_ptr<cppbor::Item>& item, const uint32_t pos) { in getErrorCode() argument
498 auto optErrorVal = getUint64(item, pos); in getErrorCode()
505 std::optional<uint64_t> CborConverter::getUint64(const unique_ptr<Item>& item) { in getUint64() argument
506 if ((item == nullptr) || (MajorType::UINT != getType(item))) { in getUint64()
509 const Uint* uintVal = item.get()->asUint(); in getUint64()
513 std::optional<uint64_t> CborConverter::getUint64(const unique_ptr<Item>& item, const uint32_t pos) { in getUint64() argument
514 auto intItem = getItemAtPos(item, pos); in getUint64()