Home
last modified time | relevance | path

Searched refs:keyParams (Results 1 – 22 of 22) sorted by relevance

/hardware/nxp/keymint/KM300/
DCborConverter.cpp91 bool CborConverter::addKeyparameters(Array& array, const vector<KeyParameter>& keyParams) { in addKeyparameters() argument
95 for (auto& param : keyParams) { in addKeyparameters()
205 std::vector<KeyParameter> keyParams; in getKeyParameter() local
223 keyParams.push_back(kmParam2Aidl(keyParam)); in getKeyParameter()
225 return keyParams; in getKeyParameter()
234 keyParams.push_back(kmParam2Aidl(keyParam)); in getKeyParameter()
235 return keyParams; in getKeyParameter()
244 keyParams.push_back(kmParam2Aidl(keyParam)); in getKeyParameter()
245 return keyParams; in getKeyParameter()
254 keyParams.push_back(kmParam2Aidl(keyParam)); in getKeyParameter()
[all …]
DJavacardKeyMintUtils.h77 keymaster_key_param_set_t aidlKeyParams2Km(const vector<KeyParameter>& keyParams);
81 explicit KmParamSet(const vector<KeyParameter>& keyParams) in KmParamSet() argument
82 : keymaster_key_param_set_t(aidlKeyParams2Km(keyParams)) {} in KmParamSet()
DJavacardKeyMintUtils.cpp172 keymaster_key_param_set_t aidlKeyParams2Km(const vector<KeyParameter>& keyParams) { in aidlKeyParams2Km() argument
176 malloc(keyParams.size() * sizeof(keymaster_key_param_t))); in aidlKeyParams2Km()
177 set.length = keyParams.size(); in aidlKeyParams2Km()
179 for (size_t i = 0; i < keyParams.size(); ++i) { in aidlKeyParams2Km()
180 const auto& param = keyParams[i]; in aidlKeyParams2Km()
DJavacardKeyMintDevice.cpp103 ScopedAStatus JavacardKeyMintDevice::generateKey(const vector<KeyParameter>& keyParams, in generateKey() argument
109 cbor_.addKeyparameters(array, keyParams); in generateKey()
142 ScopedAStatus JavacardKeyMintDevice::importKey(const vector<KeyParameter>& keyParams, in importKey() argument
149 cbor_.addKeyparameters(request, keyParams); in importKey()
244 const vector<KeyParameter>& keyParams, KeyFormat keyFormat, in sendFinishImportWrappedKeyCmd() argument
249 cbor_.addKeyparameters(request, keyParams); in sendFinishImportWrappedKeyCmd()
333 auto keyParams = cbor_.getKeyParameters(item, 1); in begin() local
338 if (!keyParams || !optOpHandle || !optBufMode || !optMacLength) { in begin()
342 result->params = std::move(keyParams.value()); in begin()
DJavacardKeyMintDevice.h71 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams,
75 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat,
132 sendFinishImportWrappedKeyCmd(const vector<KeyParameter>& keyParams, KeyFormat keyFormat,
DCborConverter.h81 bool addKeyparameters(Array& array, const vector<KeyParameter>& keyParams);
/hardware/nxp/keymint/KM200/
DCborConverter.cpp50 bool CborConverter::addKeyparameters(Array& array, const vector<KeyParameter>& keyParams) { in addKeyparameters() argument
51 keymaster_key_param_set_t paramSet = km_utils::aidlKeyParams2Km(keyParams); in addKeyparameters()
134 vector<KeyParameter>& keyParams) { in getKeyParameter() argument
149 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
159 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
168 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
177 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
191 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
205 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
215 keyParams.push_back(km_utils::kmParam2Aidl(keyParam)); in getKeyParameter()
[all …]
DJavacardKeyMintUtils.h74 keymaster_key_param_set_t aidlKeyParams2Km(const vector<KeyParameter>& keyParams);
78 explicit KmParamSet(const vector<KeyParameter>& keyParams) in KmParamSet() argument
79 : keymaster_key_param_set_t(aidlKeyParams2Km(keyParams)) {} in KmParamSet()
DJavacardKeyMintUtils.cpp173 keymaster_key_param_set_t aidlKeyParams2Km(const vector<KeyParameter>& keyParams) { in aidlKeyParams2Km() argument
177 malloc(keyParams.size() * sizeof(keymaster_key_param_t))); in aidlKeyParams2Km()
178 set.length = keyParams.size(); in aidlKeyParams2Km()
180 for (size_t i = 0; i < keyParams.size(); ++i) { in aidlKeyParams2Km()
181 const auto& param = keyParams[i]; in aidlKeyParams2Km()
DJavacardKeyMintDevice.h66 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams,
70 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat,
127 sendFinishImportWrappedKeyCmd(const vector<KeyParameter>& keyParams, KeyFormat keyFormat,
DJavacardKeyMintDevice.cpp90 ScopedAStatus JavacardKeyMintDevice::generateKey(const vector<KeyParameter>& keyParams, in generateKey() argument
95 cbor_.addKeyparameters(array, keyParams); in generateKey()
124 ScopedAStatus JavacardKeyMintDevice::importKey(const vector<KeyParameter>& keyParams, in importKey() argument
131 cbor_.addKeyparameters(request, keyParams); in importKey()
217 const vector<KeyParameter>& keyParams, KeyFormat keyFormat, in sendFinishImportWrappedKeyCmd() argument
222 cbor_.addKeyparameters(request, keyParams); in sendFinishImportWrappedKeyCmd()
DCborConverter.h62 vector<KeyParameter>& keyParams);
64 bool addKeyparameters(Array& array, const vector<KeyParameter>& keyParams);
/hardware/interfaces/security/keymint/aidl/android/hardware/security/keymint/
DIKeyMintDevice.aidl370 in KeyParameter[] keyParams, in @nullable AttestationKey attestationKey); in generateKey() argument
417 KeyCreationResult importKey(in KeyParameter[] keyParams, in KeyFormat keyFormat, in importKey() argument
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/1/android/hardware/security/keymint/
DIKeyMintDevice.aidl40 …nResult generateKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in @nullable an… in generateKey() argument
41 …ionResult importKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in android.hard… in importKey() argument
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/3/android/hardware/security/keymint/
DIKeyMintDevice.aidl40 …nResult generateKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in @nullable an… in generateKey() argument
41 …ionResult importKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in android.hard… in importKey() argument
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/2/android/hardware/security/keymint/
DIKeyMintDevice.aidl40 …nResult generateKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in @nullable an… in generateKey() argument
41 …ionResult importKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in android.hard… in importKey() argument
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/current/android/hardware/security/keymint/
DIKeyMintDevice.aidl40 …nResult generateKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in @nullable an… in generateKey() argument
41 …ionResult importKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in android.hard… in importKey() argument
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/
DKeymaster4.h72 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() argument
74 return km4_0_dev_->generateKey(keyParams, _hidl_cb); in generateKey()
DKeymaster3.h70 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
/hardware/interfaces/keymaster/4.1/support/
DKeymaster3.cpp149 Return<void> Keymaster3::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() argument
155 auto rc = km3_dev_->generateKey(convert(keyParams), cb); in generateKey()
/hardware/interfaces/keymaster/3.0/
DIKeymasterDevice.hal78 * @param keyParams Key generation parameters are defined as keymaster tag/value pairs, provided
89 generateKey(vec<KeyParameter> keyParams)
95 * @param keyParams Key generation parameters are defined as keymaster tag/value pairs, provided
/hardware/interfaces/keymaster/4.0/
DIKeymasterDevice.hal461 * @param keyParams Key generation parameters are defined as IKeymasterDevice tag/value pairs,
472 generateKey(vec<KeyParameter> keyParams)
493 * @param keyParams Key generation parameters are defined as IKeymasterDevice tag/value pairs,
507 importKey(vec<KeyParameter> keyParams, KeyFormat keyFormat, vec<uint8_t> keyData)
519 * keyParams AuthorizationList,
535 * o keyParams is the characteristics of the key to be imported (as with generateKey or
559 * 5. Perform the equivalent of calling importKey(keyParams, keyFormat, keyData), except