Lines Matching refs:keyParams
88 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() argument
89 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet()
90 length = keyParams.size(); in KmParamSet()
91 for (size_t i = 0; i < keyParams.size(); ++i) { in KmParamSet()
92 auto tag = legacy_enum_conversion(keyParams[i].tag); 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()
110 if (keyParams[i].f.boolValue) in KmParamSet()
118 keymaster_param_blob(tag, &keyParams[i].blob[0], keyParams[i].blob.size()); in KmParamSet()
276 Return<void> AndroidKeymaster3Device::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() argument
279 request.key_description.Reinitialize(KmParamSet(keyParams)); in generateKey()