Lines Matching refs:item

70     auto [item, err] = card_->sendRequest(Instruction::INS_GET_HW_INFO_CMD);  in getHardwareInfo()
73 if (err != KM_ERROR_OK || !cbor_.getUint64<uint32_t>(item, 1, version) || in getHardwareInfo()
74 !cbor_.getUint64<uint32_t>(item, 2, secLevel) || in getHardwareInfo()
75 !cbor_.getBinaryArray(item, 3, info->keyMintName) || in getHardwareInfo()
76 !cbor_.getBinaryArray(item, 4, info->keyMintAuthorName) || in getHardwareInfo()
77 !cbor_.getUint64<uint64_t>(item, 5, tsRequired)) { in getHardwareInfo()
98 auto [item, err] = card_->sendRequest(Instruction::INS_GENERATE_KEY_CMD, array); in generateKey()
103 if (!cbor_.getBinaryArray(item, 1, creationResult->keyBlob) || in generateKey()
104 !cbor_.getKeyCharacteristics(item, 2, creationResult->keyCharacteristics) || in generateKey()
105 !cbor_.getCertificateChain(item, 3, creationResult->certificateChain)) { in generateKey()
116 auto [item, err] = card_->sendRequest(Instruction::INS_ADD_RNG_ENTROPY_CMD, request); in addRngEntropy()
139 auto [item, err] = card_->sendRequest(Instruction::INS_IMPORT_KEY_CMD, request); in importKey()
144 if (!cbor_.getBinaryArray(item, 1, creationResult->keyBlob) || in importKey()
145 !cbor_.getKeyCharacteristics(item, 2, creationResult->keyCharacteristics) || in importKey()
146 !cbor_.getCertificateChain(item, 3, creationResult->certificateChain)) { in importKey()
161 std::unique_ptr<Item> item; in importWrappedKey() local
180 std::tie(item, errorCode) = in importWrappedKey()
187 std::tie(item, errorCode) = sendFinishImportWrappedKeyCmd( in importWrappedKey()
193 if (!cbor_.getBinaryArray(item, 1, creationResult->keyBlob) || in importWrappedKey()
194 !cbor_.getKeyCharacteristics(item, 2, creationResult->keyCharacteristics) || in importWrappedKey()
195 !cbor_.getCertificateChain(item, 3, creationResult->certificateChain)) { in importWrappedKey()
241 auto [item, err] = card_->sendRequest(Instruction::INS_UPGRADE_KEY_CMD, request); in upgradeKey()
246 if (!cbor_.getBinaryArray(item, 1, *keyBlob)) { in upgradeKey()
256 auto [item, err] = card_->sendRequest(Instruction::INS_DELETE_KEY_CMD, request); in deleteKey()
265 auto [item, err] = card_->sendRequest(Instruction::INS_DELETE_ALL_KEYS_CMD); in deleteAllKeys()
274 auto [item, err] = card_->sendRequest(Instruction::INS_DESTROY_ATT_IDS_CMD); in destroyAttestationIds()
299 auto [item, err] = card_->sendRequest(Instruction::INS_BEGIN_OPERATION_CMD, array); in begin()
308 if (!cbor_.getKeyParameters(item, 1, result->params) || in begin()
309 !cbor_.getUint64<uint64_t>(item, 2, opHandle) || in begin()
310 !cbor_.getUint64<uint8_t>(item, 3, bufMode) || in begin()
311 !cbor_.getUint64<uint16_t>(item, 4, macLength)) { in begin()
333 auto [item, err] = card_->sendRequest(Instruction::INS_DEVICE_LOCKED_CMD, request); in deviceLocked()
350 auto [item, err] = card_->sendRequest(Instruction::INS_EARLY_BOOT_ENDED_CMD); in earlyBootEnded()
367 auto [item, err] = card_->sendRequest(Instruction::INS_GET_KEY_CHARACTERISTICS_CMD, request); in getKeyCharacteristics()
372 if (!cbor_.getKeyCharacteristics(item, 1, *result)) { in getKeyCharacteristics()
380 auto [item, err] = card_->sendRequest(Instruction::INS_GET_ROT_CHALLENGE_CMD); in getRootOfTrustChallenge()
386 if (!cbor_.getBinaryArray(item, 1, rotChallenge) || in getRootOfTrustChallenge()
402 auto [item, err] = card_->sendRequest(Instruction::INS_SEND_ROT_DATA_CMD, rootOfTrust); in sendRootOfTrust()