/hardware/nxp/keymint/KM200/ |
D | JavacardKeyMintDevice.cpp | 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() [all …]
|
D | JavacardRemotelyProvisionedComponentDevice.cpp | 111 !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 …]
|
D | JavacardSharedSecret.cpp | 57 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()
|
D | JavacardKeyMintOperation.cpp | 59 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()
|
D | JavacardSecureElement.cpp | 114 return cbor_.decodeData(response); in sendRequest() 125 return cbor_.decodeData(response); in sendRequest() 137 return cbor_.decodeData(response); in sendRequest()
|
D | JavacardSharedSecret.h | 30 CborConverter cbor_; variable
|
D | JavacardRemotelyProvisionedComponentDevice.h | 76 CborConverter cbor_; variable
|
D | JavacardSecureElement.h | 129 CborConverter cbor_; variable
|
D | JavacardKeyMintOperation.h | 127 CborConverter cbor_; variable
|
D | JavacardKeyMintDevice.h | 139 CborConverter cbor_; variable
|
/hardware/nxp/keymint/KM300/ |
D | JavacardKeyMintDevice.cpp | 85 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 …]
|
D | JavacardRemotelyProvisionedComponentDevice.cpp | 119 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 …]
|
D | JavacardSharedSecret.cpp | 62 auto optSSParams = cbor_.getSharedSecretParameters(item, 1); in getSharedSecretParameters() 80 cbor_.addSharedSecretParameters(request, params); in computeSharedSecret() 86 auto optSecret = cbor_.getByteArrayVec(item, 1); in computeSharedSecret()
|
D | JavacardKeyMintOperation.cpp | 63 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()
|
D | JavacardSecureElement.cpp | 140 return cbor_.decodeData(response); in sendRequest() 151 return cbor_.decodeData(response); in sendRequest() 163 return cbor_.decodeData(response); in sendRequest()
|
D | JavacardSharedSecret.h | 53 CborConverter cbor_; variable
|
D | JavacardRemotelyProvisionedComponentDevice.h | 94 CborConverter cbor_; variable
|
D | JavacardSecureElement.h | 136 CborConverter cbor_; variable
|
D | JavacardKeyMintOperation.h | 150 CborConverter cbor_; variable
|
D | JavacardKeyMintDevice.h | 142 CborConverter cbor_; variable
|