Home
last modified time | relevance | path

Searched refs:cbor_ (Results 1 – 20 of 20) sorted by relevance

/hardware/nxp/keymint/KM200/
DJavacardKeyMintDevice.cpp73 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()
[all …]
DJavacardRemotelyProvisionedComponentDevice.cpp111 !cbor_.getUint64<uint32_t>(item, 1, versionNumber) || in getHardwareInfo()
112 !cbor_.getBinaryArray(item, 2, info->rpcAuthorName ) || in getHardwareInfo()
113 !cbor_.getUint64<uint32_t>(item, 3, supportedEekCurve)) { in getHardwareInfo()
122 if (!cbor_.getBinaryArray(item, 4, uniqueId)) { in getHardwareInfo()
145 if (!cbor_.getBinaryArray(item, 1, macedPublicKey->macedKey) || in generateEcdsaP256KeyPair()
146 !cbor_.getBinaryArray(item, 2, *privateKeyHandle)) { in generateEcdsaP256KeyPair()
222 if (!cbor_.getBinaryArray(item, 1, decodedKeysToSignMac) || in finishSendData()
223 !cbor_.getBinaryArray(item, 2, decodedDeviceInfo) || in finishSendData()
224 !cbor_.getBinaryArray(item, 3, coseEncryptProtectedHeader) || in finishSendData()
225 !cbor_.getMapItem(item, 4, coseEncryptUnProtectedHeader) || in finishSendData()
[all …]
DJavacardSharedSecret.cpp57 if (err != KM_ERROR_OK || !cbor_.getSharedSecretParameters(item, 1, *params)) { in getSharedSecretParameters()
70 cbor_.addSharedSecretParameters(request, params); in computeSharedSecret()
76 if (!cbor_.getBinaryArray(item, 1, *secret)) { in computeSharedSecret()
DJavacardKeyMintOperation.cpp59 cbor_.addHardwareAuthToken(request, authToken.value_or(HardwareAuthToken())); in updateAad()
60 cbor_.addTimeStampToken(request, timestampToken.value_or(TimeStampToken())); in updateAad()
272 cbor_.addHardwareAuthToken(request, authToken); in sendUpdate()
273 cbor_.addTimeStampToken(request, timestampToken); in sendUpdate()
279 if (!cbor_.getBinaryArray(item, 1, respData)) { in sendUpdate()
296 cbor_.addHardwareAuthToken(request, authToken); in sendFinish()
297 cbor_.addTimeStampToken(request, timestampToken); in sendFinish()
305 if (!cbor_.getBinaryArray(item, 1, respData)) { in sendFinish()
DJavacardSecureElement.cpp114 return cbor_.decodeData(response); in sendRequest()
125 return cbor_.decodeData(response); in sendRequest()
137 return cbor_.decodeData(response); in sendRequest()
DJavacardSharedSecret.h30 CborConverter cbor_; variable
DJavacardRemotelyProvisionedComponentDevice.h76 CborConverter cbor_; variable
DJavacardSecureElement.h129 CborConverter cbor_; variable
DJavacardKeyMintOperation.h127 CborConverter cbor_; variable
DJavacardKeyMintDevice.h139 CborConverter cbor_; variable
/hardware/nxp/keymint/KM300/
DJavacardKeyMintDevice.cpp85 if (err != KM_ERROR_OK || !(optVersion = cbor_.getUint64(item, 1)) || in getHardwareInfo()
86 !(optSecLevel = cbor_.getUint64(item, 2)) || in getHardwareInfo()
87 !(optKeyMintName = cbor_.getByteArrayStr(item, 3)) || in getHardwareInfo()
88 !(optKeyMintAuthorName = cbor_.getByteArrayStr(item, 4)) || in getHardwareInfo()
89 !(optTsRequired = cbor_.getUint64(item, 5))) { in getHardwareInfo()
109 cbor_.addKeyparameters(array, keyParams); in generateKey()
111 cbor_.addAttestationKey(array, attestationKey); in generateKey()
117 auto optKeyBlob = cbor_.getByteArrayVec(item, 1); in generateKey()
118 auto optKeyChars = cbor_.getKeyCharacteristics(item, 2); in generateKey()
119 auto optCertChain = cbor_.getCertificateChain(item, 3); in generateKey()
[all …]
DJavacardRemotelyProvisionedComponentDevice.cpp119 if (err != KM_ERROR_OK || !(optVersionNumber = cbor_.getUint64(item, 1)) || in getHardwareInfo()
120 !(optRpcAuthorName = cbor_.getByteArrayStr(item, 2)) || in getHardwareInfo()
121 !(optSupportedEekCurve = cbor_.getUint64(item, 3)) || in getHardwareInfo()
122 !(optUniqueId = cbor_.getByteArrayStr(item, 4)) || in getHardwareInfo()
123 !(optMinSupportedKeysInCsr = cbor_.getUint64(item, 5))) { in getHardwareInfo()
148 if (!(optMacedKey = cbor_.getByteArrayVec(item, 1)) || in generateEcdsaP256KeyPair()
149 !(optPKeyHandle = cbor_.getByteArrayVec(item, 2))) { in generateEcdsaP256KeyPair()
171 auto optDecodedDeviceInfo = cbor_.getByteArrayVec(item, 1); in beginSendData()
177 auto optVersion = cbor_.getUint64(item, 2); in beginSendData()
183 auto optCertType = cbor_.getTextStr(item, 3); in beginSendData()
[all …]
DJavacardSharedSecret.cpp62 auto optSSParams = cbor_.getSharedSecretParameters(item, 1); in getSharedSecretParameters()
80 cbor_.addSharedSecretParameters(request, params); in computeSharedSecret()
86 auto optSecret = cbor_.getByteArrayVec(item, 1); in computeSharedSecret()
DJavacardKeyMintOperation.cpp63 cbor_.addHardwareAuthToken(request, authToken.value_or(HardwareAuthToken())); in updateAad()
64 cbor_.addTimeStampToken(request, timestampToken.value_or(TimeStampToken())); in updateAad()
279 cbor_.addHardwareAuthToken(request, authToken); in sendUpdate()
280 cbor_.addTimeStampToken(request, timestampToken); in sendUpdate()
285 auto optTemp = cbor_.getByteArrayVec(item, 1); in sendUpdate()
303 cbor_.addHardwareAuthToken(request, authToken); in sendFinish()
304 cbor_.addTimeStampToken(request, timestampToken); in sendFinish()
311 auto optTemp = cbor_.getByteArrayVec(item, 1); in sendFinish()
DJavacardSecureElement.cpp140 return cbor_.decodeData(response); in sendRequest()
151 return cbor_.decodeData(response); in sendRequest()
163 return cbor_.decodeData(response); in sendRequest()
DJavacardSharedSecret.h53 CborConverter cbor_; variable
DJavacardRemotelyProvisionedComponentDevice.h94 CborConverter cbor_; variable
DJavacardSecureElement.h136 CborConverter cbor_; variable
DJavacardKeyMintOperation.h150 CborConverter cbor_; variable
DJavacardKeyMintDevice.h142 CborConverter cbor_; variable