Lines Matching refs:cbor_

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()
95 cbor_.addKeyparameters(array, keyParams); in generateKey()
97 cbor_.addAttestationKey(array, attestationKey); 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()
131 cbor_.addKeyparameters(request, keyParams); in importKey()
137 cbor_.addAttestationKey(request, attestationKey); 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()
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()
211 cbor_.addKeyparameters(request, unwrappingParams); in sendBeginImportWrappedKeyCmd()
222 cbor_.addKeyparameters(request, keyParams); in sendFinishImportWrappedKeyCmd()
240 cbor_.addKeyparameters(request, upgradeParams); in upgradeKey()
246 if (!cbor_.getBinaryArray(item, 1, *keyBlob)) { in upgradeKey()
292 cbor_.addKeyparameters(array, params); in begin()
294 cbor_.addHardwareAuthToken(array, token); 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()
332 cbor_.addTimeStampToken(request, timestampToken.value_or(TimeStampToken())); in deviceLocked()
372 if (!cbor_.getKeyCharacteristics(item, 1, *result)) { in getKeyCharacteristics()
386 if (!cbor_.getBinaryArray(item, 1, rotChallenge) || in getRootOfTrustChallenge()