Lines Matching refs:keyParams
78 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) in KmParamSet() argument
79 : keymaster_key_param_set_t(hidlKeyParams2Km(keyParams)) {} in KmParamSet()
177 keymaster_key_param_set_t hidlKeyParams2Km(const hidl_vec<KeyParameter>& keyParams) { in hidlKeyParams2Km() argument
180 set.params = new keymaster_key_param_t[keyParams.size()]; in hidlKeyParams2Km()
181 set.length = keyParams.size(); in hidlKeyParams2Km()
183 for (size_t i = 0; i < keyParams.size(); ++i) { in hidlKeyParams2Km()
184 auto tag = legacy_enum_conversion(keyParams[i].tag); in hidlKeyParams2Km()
188 set.params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in hidlKeyParams2Km()
192 set.params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in hidlKeyParams2Km()
196 set.params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in hidlKeyParams2Km()
199 set.params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in hidlKeyParams2Km()
202 if (keyParams[i].f.boolValue) in hidlKeyParams2Km()
210 keymaster_param_blob(tag, &keyParams[i].blob[0], keyParams[i].blob.size()); in hidlKeyParams2Km()
320 Return<void> AndroidKeymaster4Device::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() argument
323 request.key_description.Reinitialize(KmParamSet(keyParams)); in generateKey()