Home
last modified time | relevance | path

Searched refs:Tag (Results 1 – 25 of 47) sorted by relevance

12

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp64 case Memory::Tag::ashmem: { in clone()
65 const auto& ashmem = memory.get<Memory::Tag::ashmem>(); in clone()
70 return Memory::make<Memory::Tag::ashmem>(std::move(handle)); in clone()
72 case Memory::Tag::mappableFile: { in clone()
73 const auto& memFd = memory.get<Memory::Tag::mappableFile>(); in clone()
80 return Memory::make<Memory::Tag::mappableFile>(std::move(handle)); in clone()
82 case Memory::Tag::hardwareBuffer: { in clone()
83 const auto& hardwareBuffer = memory.get<Memory::Tag::hardwareBuffer>(); in clone()
88 return Memory::make<Memory::Tag::hardwareBuffer>(std::move(handle)); in clone()
97 using Tag = RequestMemoryPool::Tag; in clone() typedef
[all …]
DConversions.cpp272 using Tag = aidl_hal::OperandExtraParams::Tag; in unvalidatedConvert() typedef
274 case Tag::channelQuant: in unvalidatedConvert()
275 return unvalidatedConvert(extraParams.get<Tag::channelQuant>()); in unvalidatedConvert()
276 case Tag::extension: in unvalidatedConvert()
277 return extraParams.get<Tag::extension>(); in unvalidatedConvert()
351 using Tag = aidl_hal::Memory::Tag; in unvalidatedConvert() typedef
353 case Tag::ashmem: { in unvalidatedConvert()
354 const auto& ashmem = memory.get<Tag::ashmem>(); in unvalidatedConvert()
366 case Tag::mappableFile: { in unvalidatedConvert()
367 const auto& mappableFile = memory.get<Tag::mappableFile>(); in unvalidatedConvert()
[all …]
/hardware/interfaces/keymaster/4.0/support/
Dkey_param_output.cpp53 case Tag::ALGORITHM: in operator <<()
55 case Tag::BLOCK_MODE: in operator <<()
57 case Tag::PADDING: in operator <<()
59 case Tag::DIGEST: in operator <<()
61 case Tag::EC_CURVE: in operator <<()
63 case Tag::ORIGIN: in operator <<()
65 case Tag::BLOB_USAGE_REQUIREMENTS: in operator <<()
67 case Tag::PURPOSE: in operator <<()
Dattestation_record.cpp186 template <Tag tag>
196 template <Tag tag>
204 template <Tag tag>
235 template <Tag tag>
243 template <Tag tag>
251 template <Tag tag>
258 template <Tag tag>
Dauthorization_set.cpp99 if (prev->tag == Tag::INVALID) continue; in Deduplicate()
154 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount()
160 int AuthorizationSet::find(Tag tag, int begin) const { in find()
178 NullOr<const KeyParameter&> AuthorizationSet::GetEntry(Tag tag) const { in GetEntry()
273 template <TagType tag_type, Tag tag, typename... Tail>
379 template <TagType tag_type, Tag tag, typename... Tail>
391 in.elements.read(reinterpret_cast<char*>(&param->tag), sizeof(Tag)); in deserialize()
438 if (p.tag != Tag::INVALID) { in deserialize()
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeystore_tags_utils.cpp28 template <TagType tag_type, Tag tag>
29 static TypedTag<tag_type, tag> chooseString(TypedTag<tag_type, tag> ttag, Tag runtime_tag, in chooseString()
36 static const char* stringify(Tag tag) { in stringify()
43 const char* stringifyTag(Tag tag) { in stringifyTag()
Dkey_param_output.cpp81 case Tag::ALGORITHM: in operator <<()
83 case Tag::BLOCK_MODE: in operator <<()
85 case Tag::PADDING: in operator <<()
87 case Tag::DIGEST: in operator <<()
89 case Tag::EC_CURVE: in operator <<()
91 case Tag::ORIGIN: in operator <<()
93 case Tag::BLOB_USAGE_REQUIREMENTS: in operator <<()
95 case Tag::PURPOSE: in operator <<()
Dkeymaster_tags.h76 constexpr TagType typeFromTag(Tag tag) { in typeFromTag()
86 template <TagType tag_type, Tag tag> struct TypedTag {
93 constexpr operator Tag() { return tag; } in Tag() function
99 template <Tag tag> struct Tag2TypedTag { typedef TypedTag<typeFromTag(tag), tag> type; };
101 template <Tag tag> struct Tag2String;
107 typedef typename Tag2TypedTag<Tag::name>::type TAG_##name##_t; \
109 template <> struct Tag2String<Tag::name> { \
176 extern const char* stringifyTag(Tag tag);
181 template <Tag tag> struct TypedTag2ValueType<TypedTag<tag_type, tag>> { \
184 template <Tag tag> \
[all …]
Dauthorization_set.h127 int find(Tag tag, int begin = -1) const;
162 bool Contains(Tag tag) const { return find(tag) != -1; } in Contains()
166 template <TagType tag_type, Tag tag, typename ValueT>
177 size_t GetTagCount(Tag tag) const;
200 template <Tag tag>
236 NullOr<const KeyParameter&> GetEntry(Tag tag) const;
249 template <Tag tag>
258 template <Tag tag>
264 template <Tag tag>
Dattestation_record.cpp142 template <Tag tag>
152 template <Tag tag>
160 template <Tag tag>
191 template <Tag tag>
199 template <Tag tag>
207 template <Tag tag>
214 template <Tag tag>
Dkeymaster_hidl_hal_test.cpp72 case Tag::INVALID: in operator ==()
73 case Tag::CALLER_NONCE: in operator ==()
74 case Tag::INCLUDE_UNIQUE_ID: in operator ==()
75 case Tag::ECIES_SINGLE_HASH_MODE: in operator ==()
76 case Tag::BOOTLOADER_ONLY: in operator ==()
77 case Tag::NO_AUTH_REQUIRED: in operator ==()
78 case Tag::ALLOW_WHILE_ON_BODY: in operator ==()
79 case Tag::EXPORTABLE: in operator ==()
80 case Tag::ALL_APPLICATIONS: in operator ==()
81 case Tag::ROLLBACK_RESISTANT: in operator ==()
[all …]
Dauthorization_set.cpp106 if (prev->tag == Tag::INVALID) continue; in Deduplicate()
139 int AuthorizationSet::find(Tag tag, int begin) const { in find()
170 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount()
177 NullOr<const KeyParameter&> AuthorizationSet::GetEntry(Tag tag) const { in GetEntry()
259 template <TagType tag_type, Tag tag, typename... Tail>
358 template <TagType tag_type, Tag tag, typename... Tail>
370 in.elements.read(reinterpret_cast<char*>(&param->tag), sizeof(Tag)); in deserialize()
/hardware/interfaces/security/keymint/aidl/android/hardware/security/keymint/
DKeyParameter.aidl20 import android.hardware.security.keymint.Tag;
30 Tag tag = Tag.INVALID;
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dkeymint_tags.h34 constexpr TagType typeFromTag(Tag tag) { in typeFromTag()
44 template <TagType tag_type, Tag tag>
52 operator Tag() const { return tag; } in Tag() function
56 template <Tag tag>
66 typedef typename Tag2TypedTag<Tag::name>::type TAG_##name##_t; \
166 template <Tag tag> \
171 static constexpr KeyParameterValue::Tag unionTag = KeyParameterValue::field_name; \
173 template <Tag tag> \
184 template <Tag tag> \
217 static constexpr KeyParameterValue::Tag unionTag = KeyParameterValue::field_name; \ in MAKE_TAG_VALUE_ACCESSOR()
[all …]
Dauthorization_set.h128 int find(Tag tag, int begin = -1) const;
165 bool Contains(Tag tag) const { return find(tag) != -1; } in Contains()
167 template <TagType tag_type, Tag tag, typename ValueT>
178 size_t GetTagCount(Tag tag) const;
222 std::optional<std::reference_wrapper<const KeyParameter>> GetEntry(Tag tag) const;
235 template <Tag tag>
243 template <Tag tag>
249 template <Tag tag>
255 template <Tag tag, size_t size>
262 template <Tag tag>
/hardware/interfaces/keymaster/4.0/
Dtypes.hal59 enum Tag : uint32_t {
63 * Tag::PURPOSE specifies the set of purposes for which the key may be used. Possible values
69 * key didn't have a corresponding Tag::PURPOSE provided during generation/import), the
77 * Tag::ALGORITHM specifies the cryptographic algorithm with which the key is used. This tag
86 * Tag::KEY_SIZE pecifies the size, in bits, of the key, measuring in the normal way for the
87 * key's algorithm. For example, for RSA keys, Tag::KEY_SIZE specifies the size of the public
91 * Tag::KEY_SIZE must be 168.
98 * Tag::BLOCK_MODE specifies the block cipher mode(s) with which the key may be used. This tag
102 * must specify a Tag::BLOCK_MODE in the additionalParams argument of begin(). If the mode is
111 * Tag::DIGEST specifies the digest algorithms that may be used with the key to perform signing
[all …]
DIKeymasterDevice.hal120 * are 32-bit integers from the Tag enum, and the values are a variety of types, defined in the
129 * o Tag::OS_VERSION, must be hardware-enforced.
130 * o Tag::OS_PATCHLEVEL, must be hardware-enforced.
131 * o Tag::VENDOR_PATCHLEVEL, must be hardware-enforced.
132 * o Tag::BOOT_PATCHLEVEL, must be hardware-enforced.
133 * o Tag::CREATION_DATETIME, must be software-enforced, unless the IKeymasterDevice has access to
135 * o Tag::ORIGIN, must be hardware-enforced.
149 * the softwareEnforced list. For example, Tag::ORIGINATION_EXPIRE_DATETIME provides the date and
161 * Some tags must be enforced by the IKeymasterDevice. See the detailed documentation on each Tag
194 * hardwareEnforced authorization list. Tag::OS_VERSION, Tag::OS_PATCHLEVEL,
[all …]
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/current/android/hardware/security/keymint/
DKeyParameter.aidl38 android.hardware.security.keymint.Tag tag = android.hardware.security.keymint.Tag.INVALID;
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/1/android/hardware/security/keymint/
DKeyParameter.aidl38 android.hardware.security.keymint.Tag tag = android.hardware.security.keymint.Tag.INVALID;
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h127 int find(Tag tag, int begin = -1) const;
167 bool Contains(Tag tag) const { return find(tag) != -1; } in Contains()
169 template <TagType tag_type, Tag tag, typename ValueT, typename Comparator = std::equal_to<>>
181 size_t GetTagCount(Tag tag) const;
228 NullOr<const KeyParameter&> GetEntry(Tag tag) const;
241 template <Tag tag>
250 template <Tag tag>
256 template <Tag tag>
Dkeymaster_tags.h76 constexpr TagType typeFromTag(Tag tag) { in typeFromTag()
86 template <TagType tag_type, Tag tag>
94 operator Tag() const { return tag; } in Tag() function
98 template <Tag tag>
104 typedef typename Tag2TypedTag<Tag::name>::type TAG_##name##_t; \
187 template <Tag tag> \
191 template <Tag tag> \
196 template <Tag tag> \
236 template <TagType tag_type, Tag tag, typename ValueT>
246 template <Tag tag>
[all …]
/hardware/interfaces/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp46 inline ::std::ostream& operator<<(::std::ostream& os, Tag tag) { in operator <<()
147 Tag::INCLUDE_UNIQUE_ID, Tag::BLOB_USAGE_REQUIREMENTS, Tag::EC_CURVE, in tag_in_list()
148 Tag::HARDWARE_TYPE, Tag::VENDOR_PATCHLEVEL, Tag::BOOT_PATCHLEVEL, in tag_in_list()
149 Tag::CREATION_DATETIME, in tag_in_list()
151 return std::find(tag_list.begin(), tag_list.end(), (V4_1::Tag)entry.tag) != tag_list.end(); in tag_in_list()
/hardware/interfaces/keymaster/4.1/
Dtypes.hal20 import @4.0::Tag;
23 enum Tag : @4.0::Tag {
66 * ErrorCode::INVALID_OPERATION is returned when a key with Tag::STORAGE_KEY is provided to
/hardware/interfaces/keymaster/3.0/
DIKeymasterDevice.hal79 * in params. See Tag in types.hal for the full list.
96 * in params. See Tag for the full list.
122 * Tag::APPLICATION_ID data provided during key generation/import. Without the
127 * Tag::APPLICATION_DATA data provided during key generation/import. Without the
148 * Tag::APPLICATION_ID data provided during key generation/import. Without the
153 * Tag::APPLICATION_DATA data provided during key generation/import. Without the
174 * @param attestParams Parameters for the attestation, notably Tag::ATTESTATION_CHALLENGE.
191 * upgrade, including Tag::APPLICATION_ID and Tag::APPLICATION_DATA.
260 * authentication data, with Tag::AUTH_TOKEN. If Tag::APPLICATION_ID or
261 * Tag::APPLICATION_DATA were provided during generation, they must be provided
[all …]
/hardware/interfaces/security/keymint/support/
Dauthorization_set.cpp40 if (prev->tag == Tag::INVALID) continue; in Deduplicate()
85 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount()
91 int AuthorizationSet::find(Tag tag, int begin) const { in find()
110 Tag tag) const { in GetEntry()

12