/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | attestation_record.cpp | 143 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 …]
|
D | authorization_set.h | 167 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 …]
|
D | keystore_tags_utils.cpp | 29 static TypedTag<tag_type, tag> chooseString(TypedTag<tag_type, tag> ttag, Tag runtime_tag, in chooseString() 34 return ttag; in chooseString()
|
D | keymaster_tags.h | 229 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);
|
D | authorization_set.cpp | 245 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()
|
D | keymaster_hidl_hal_test.cpp | 192 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() argument 194 return param.tag == tag && accessTagValue(ttag, param) == expected_value; in contains() 877 void CheckKm0CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm0CryptoParam() argument 880 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm0CryptoParam() 881 EXPECT_FALSE(contains(key_characteristics_.softwareEnforced, ttag)); in CheckKm0CryptoParam() 883 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)); in CheckKm0CryptoParam() 884 EXPECT_FALSE(contains(key_characteristics_.teeEnforced, ttag)); in CheckKm0CryptoParam() 889 void CheckKm1CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm1CryptoParam() argument 892 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm1CryptoParam() 893 EXPECT_FALSE(contains(key_characteristics_.softwareEnforced, ttag)); in CheckKm1CryptoParam() [all …]
|
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/ |
D | authorization_set.h | 169 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()
|
D | keymaster_tags.h | 228 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)...); 342 TypedTag<tag_type, tag> ttag, const KeyParameter& param) { 344 return accessTagValue(ttag, param);
|
/hardware/interfaces/keymaster/4.0/support/ |
D | attestation_record.cpp | 158 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 …]
|
D | authorization_set.cpp | 249 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.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 79 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() argument 81 return param.tag == tag && accessTagValue(ttag, param) == expected_value; in contains() 1947 void CheckCryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckCryptoParam() argument 1950 EXPECT_TRUE(contains(key_characteristics_.hardwareEnforced, ttag, expected)) in CheckCryptoParam() 1952 EXPECT_FALSE(contains(key_characteristics_.softwareEnforced, ttag)) in CheckCryptoParam() 1955 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)) in CheckCryptoParam() 1957 EXPECT_FALSE(contains(key_characteristics_.hardwareEnforced, ttag)) in CheckCryptoParam()
|