Lines Matching refs:params

89         params = new keymaster_key_param_t[keyParams.size()];  in KmParamSet()
96 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet()
100 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet()
104 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet()
107 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet()
111 params[i] = keymaster_param_bool(tag); in KmParamSet()
113 params[i].tag = KM_TAG_INVALID; in KmParamSet()
117 params[i] = in KmParamSet()
122 params[i].tag = KM_TAG_INVALID; in KmParamSet()
128 KmParamSet(KmParamSet&& other) : keymaster_key_param_set_t{other.params, other.length} { in KmParamSet()
130 other.params = nullptr;
133 ~KmParamSet() { delete[] params; } in ~KmParamSet()
169 if (set.length == 0 || set.params == nullptr) return result; in kmParamSet2Hidl()
172 keymaster_key_param_t* params = set.params; in kmParamSet2Hidl() local
174 auto tag = params[i].tag; in kmParamSet2Hidl()
179 result[i].f.integer = params[i].enumerated; in kmParamSet2Hidl()
183 result[i].f.integer = params[i].integer; in kmParamSet2Hidl()
187 result[i].f.longInteger = params[i].long_integer; in kmParamSet2Hidl()
190 result[i].f.dateTime = params[i].date_time; in kmParamSet2Hidl()
193 result[i].f.boolValue = params[i].boolean; in kmParamSet2Hidl()
197 result[i].blob.setToExternal(const_cast<unsigned char*>(params[i].blob.data), in kmParamSet2Hidl()
198 params[i].blob.data_length); in kmParamSet2Hidl()
202 params[i].tag = KM_TAG_INVALID; in kmParamSet2Hidl()
211 ::keymaster::AuthorizationSet* params) { in addClientAndAppData() argument
212 params->Clear(); in addClientAndAppData()
214 params->push_back(::keymaster::TAG_APPLICATION_ID, clientId.data(), clientId.size()); in addClientAndAppData()
217 params->push_back(::keymaster::TAG_APPLICATION_DATA, appData.data(), appData.size()); in addClientAndAppData()
315 Return<void> AndroidKeymaster3Device::importKey(const hidl_vec<KeyParameter>& params, in importKey() argument
319 request.key_description.Reinitialize(KmParamSet(params)); in importKey()