Home
last modified time | relevance | path

Searched refs:ttag (Results 1 – 12 of 12) sorted by relevance

/hardware/interfaces/keymaster/3.0/vts/functional/
Dattestation_record.cpp143 void copyAuthTag(const stack_st_ASN1_INTEGER* stack, TypedTag<TagType::ENUM_REP, tag> ttag, in copyAuthTag() argument
145 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag()
148 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
153 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::ENUM, tag> ttag, in copyAuthTag() argument
155 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag()
157 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
161 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::UINT, tag> ttag, in copyAuthTag() argument
164 auth_list->push_back(ttag, ASN1_INTEGER_get(asn1_int)); in copyAuthTag()
192 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::ULONG, tag> ttag, in copyAuthTag() argument
196 auth_list->push_back(ttag, BignumToUint64(num.get())); in copyAuthTag()
[all …]
Dauthorization_set.h167 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value) const { in Contains() argument
169 auto entry = authorizationValue(ttag, param); in Contains()
201 void push_back(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, size_t data_length) { in push_back() argument
204 push_back(ttag, new_blob); in push_back()
244 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() argument
245 push_back(ttag, std::forward<ValueType>(value)...); in Authorization()
250 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() argument
254 push_back(ttag, new_blob); in Authorization()
259 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() argument
261 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
[all …]
Dkeystore_tags_utils.cpp29 static TypedTag<tag_type, tag> chooseString(TypedTag<tag_type, tag> ttag, Tag runtime_tag, in chooseString()
34 return ttag; in chooseString()
Dkeymaster_tags.h229 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
233 accessTagValue(ttag, param) = std::forward<ValueT>(value);
254 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
265 return makeKeyParameter(ttag, std::forward<Args>(args)...);
331 authorizationValue(TypedTag<tag_type, tag> ttag, const KeyParameter& param) {
333 return accessTagValue(ttag, param);
Dauthorization_set.cpp245 template <typename T> OutStreams& serialize(T ttag, OutStreams& out, const KeyParameter& param) { in serialize() argument
247 return serializeParamValue(out, accessTagValue(ttag, param)); in serialize()
341 template <typename T> InStreams& deserialize(T&& ttag, InStreams& in, KeyParameter* param) { in deserialize() argument
342 return deserializeParamValue(in, &accessTagValue(ttag, *param)); in deserialize()
Dkeymaster_hidl_hal_test.cpp190 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() argument
192 return param.tag == tag && accessTagValue(ttag, param) == expected_value; in contains()
859 void CheckKm0CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm0CryptoParam() argument
862 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm0CryptoParam()
863 EXPECT_FALSE(contains(key_characteristics_.softwareEnforced, ttag)); in CheckKm0CryptoParam()
865 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)); in CheckKm0CryptoParam()
866 EXPECT_FALSE(contains(key_characteristics_.teeEnforced, ttag)); in CheckKm0CryptoParam()
871 void CheckKm1CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm1CryptoParam() argument
874 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm1CryptoParam()
875 EXPECT_FALSE(contains(key_characteristics_.softwareEnforced, ttag)); in CheckKm1CryptoParam()
[all …]
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h169 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value) const { in Contains() argument
171 auto entry = authorizationValue(ttag, param); in Contains()
234 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() argument
235 push_back(ttag, std::forward<ValueType>(value)...); in Authorization()
240 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() argument
244 push_back(ttag, new_blob); in Authorization()
249 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() argument
251 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
255 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() argument
257 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
Dkeymaster_tags.h228 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
232 accessTagValue(ttag, param) = std::forward<ValueT>(value);
260 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
271 return makeKeyParameter(ttag, std::forward<Args>(args)...);
353 TypedTag<tag_type, tag> ttag, const KeyParameter& param) {
355 return accessTagValue(ttag, param);
/hardware/interfaces/keymaster/4.0/support/
Dattestation_record.cpp158 void copyAuthTag(const stack_st_ASN1_INTEGER* stack, TypedTag<TagType::ENUM_REP, tag> ttag, in copyAuthTag() argument
160 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag()
163 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
168 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::ENUM, tag> ttag, in copyAuthTag() argument
170 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag()
172 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
176 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::UINT, tag> ttag, in copyAuthTag() argument
179 auth_list->push_back(ttag, ASN1_INTEGER_get(asn1_int)); in copyAuthTag()
207 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::ULONG, tag> ttag, in copyAuthTag() argument
211 auth_list->push_back(ttag, BignumToUint64(num.get())); in copyAuthTag()
[all …]
Dauthorization_set.cpp249 OutStreams& serialize(T ttag, OutStreams& out, const KeyParameter& param) { in serialize() argument
251 return serializeParamValue(out, accessTagValue(ttag, param)); in serialize()
359 InStreams& deserialize(T&& ttag, InStreams& in, KeyParameter* param) { in deserialize() argument
360 return deserializeParamValue(in, &accessTagValue(ttag, *param)); in deserialize()
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp175 void copyAuthTag(const stack_st_ASN1_INTEGER* stack, TypedTag<TagType::ENUM_REP, tag> ttag, in copyAuthTag() argument
177 typedef typename V4_0::TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag()
180 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
185 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::ENUM, tag> ttag, in copyAuthTag() argument
187 typedef typename V4_0::TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag()
189 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
193 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::UINT, tag> ttag, in copyAuthTag() argument
196 auth_list->push_back(ttag, ASN1_INTEGER_get(asn1_int)); in copyAuthTag()
224 void copyAuthTag(const ASN1_INTEGER* asn1_int, TypedTag<TagType::ULONG, tag> ttag, in copyAuthTag() argument
228 auth_list->push_back(ttag, BignumToUint64(num.get())); in copyAuthTag()
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp80 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() argument
82 return param.tag == tag && accessTagValue(ttag, param) == expected_value; in contains()
1848 void CheckCryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckCryptoParam() argument
1851 EXPECT_TRUE(contains(key_characteristics_.hardwareEnforced, ttag, expected)) in CheckCryptoParam()
1853 EXPECT_FALSE(contains(key_characteristics_.softwareEnforced, ttag)) in CheckCryptoParam()
1856 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)) in CheckCryptoParam()
1858 EXPECT_FALSE(contains(key_characteristics_.hardwareEnforced, ttag)) in CheckCryptoParam()