Lines Matching refs:KeyParameterValue
31 return KeyParameter{Tag::PURPOSE, KeyParameterValue::make<KeyParameterValue::keyPurpose>( in kmEnumParam2Aidl()
34 return KeyParameter{Tag::ALGORITHM, KeyParameterValue::make<KeyParameterValue::algorithm>( in kmEnumParam2Aidl()
37 return KeyParameter{Tag::BLOCK_MODE, KeyParameterValue::make<KeyParameterValue::blockMode>( in kmEnumParam2Aidl()
40 return KeyParameter{Tag::DIGEST, KeyParameterValue::make<KeyParameterValue::digest>( in kmEnumParam2Aidl()
43 return KeyParameter{Tag::PADDING, KeyParameterValue::make<KeyParameterValue::paddingMode>( in kmEnumParam2Aidl()
46 return KeyParameter{Tag::EC_CURVE, KeyParameterValue::make<KeyParameterValue::ecCurve>( in kmEnumParam2Aidl()
50 KeyParameterValue::make<KeyParameterValue::hardwareAuthenticatorType>( in kmEnumParam2Aidl()
53 return KeyParameter{Tag::ORIGIN, KeyParameterValue::make<KeyParameterValue::origin>( in kmEnumParam2Aidl()
64 template <KeyParameterValue::Tag aidl_tag>
65 keymaster_key_param_t aidlEnumVal2Km(keymaster_tag_t km_tag, const KeyParameterValue& value) { in aidlEnumVal2Km()
75 return aidlEnumVal2Km<KeyParameterValue::keyPurpose>(tag, param.value); in aidlEnumParam2Km()
77 return aidlEnumVal2Km<KeyParameterValue::algorithm>(tag, param.value); in aidlEnumParam2Km()
79 return aidlEnumVal2Km<KeyParameterValue::blockMode>(tag, param.value); in aidlEnumParam2Km()
82 return aidlEnumVal2Km<KeyParameterValue::digest>(tag, param.value); in aidlEnumParam2Km()
84 return aidlEnumVal2Km<KeyParameterValue::paddingMode>(tag, param.value); in aidlEnumParam2Km()
86 return aidlEnumVal2Km<KeyParameterValue::ecCurve>(tag, param.value); in aidlEnumParam2Km()
88 return aidlEnumVal2Km<KeyParameterValue::hardwareAuthenticatorType>(tag, param.value); in aidlEnumParam2Km()
90 return aidlEnumVal2Km<KeyParameterValue::origin>(tag, param.value); in aidlEnumParam2Km()
137 KeyParameterValue::make<KeyParameterValue::integer>(param.integer)}; in kmParam2Aidl()
142 tag, KeyParameterValue::make<KeyParameterValue::longInteger>(param.long_integer)}; in kmParam2Aidl()
147 KeyParameterValue::make<KeyParameterValue::dateTime>(param.date_time)}; in kmParam2Aidl()
156 return {tag, KeyParameterValue::make<KeyParameterValue::blob>( in kmParam2Aidl()
199 param.value.getTag() == KeyParameterValue::integer in aidlKeyParams2Km()
200 ? keymaster_param_int(tag, param.value.get<KeyParameterValue::integer>()) in aidlKeyParams2Km()
207 param.value.getTag() == KeyParameterValue::longInteger in aidlKeyParams2Km()
208 ? keymaster_param_long(tag, param.value.get<KeyParameterValue::longInteger>()) in aidlKeyParams2Km()
214 param.value.getTag() == KeyParameterValue::dateTime in aidlKeyParams2Km()
215 ? keymaster_param_date(tag, param.value.get<KeyParameterValue::dateTime>()) in aidlKeyParams2Km()
225 if (param.value.getTag() == KeyParameterValue::blob) { in aidlKeyParams2Km()
226 const auto& value = param.value.get<KeyParameterValue::blob>(); in aidlKeyParams2Km()