Home
last modified time | relevance | path

Searched refs:KeyParameter (Results 1 – 25 of 50) sorted by relevance

12

/hardware/interfaces/keymaster/4.1/support/
DKeymaster3.cpp41 V3_0::KeyParameter convert(const KeyParameter& param) { in convert()
42 V3_0::KeyParameter converted; in convert()
50 KeyParameter convert(const V3_0::KeyParameter& param) { in convert()
51 KeyParameter converted; in convert()
59 hidl_vec<V3_0::KeyParameter> convert(const hidl_vec<KeyParameter>& params) { in convert()
60 hidl_vec<V3_0::KeyParameter> converted(params.size()); in convert()
67 hidl_vec<KeyParameter> convert(const hidl_vec<V3_0::KeyParameter>& params) { in convert()
68 hidl_vec<KeyParameter> converted(params.size()); in convert()
81 hidl_vec<V3_0::KeyParameter> convertAndAddAuthToken(const hidl_vec<KeyParameter>& params, in convertAndAddAuthToken()
83 hidl_vec<V3_0::KeyParameter> converted(params.size() + 1); in convertAndAddAuthToken()
[all …]
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h39 typedef KeyParameter value_type;
53 AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; } in AuthorizationSet()
67 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) {
99 const KeyParameter* data() const { return data_.data(); } in data()
138 std::vector<KeyParameter>::const_iterator begin() const { return data_.begin(); } in begin()
143 std::vector<KeyParameter>::const_iterator end() const { return data_.end(); } in end()
149 void Filter(std::function<bool(const KeyParameter&)> doKeep);
155 KeyParameter& operator[](int n);
162 const KeyParameter& operator[](int n) const;
190 void push_back(const KeyParameter& param) { data_.push_back(param); } in push_back()
[all …]
Dkeymaster_tags.h189 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \
192 inline auto accessTagValue(TypedTag<tag_type, tag>, const KeyParameter& param) \
197 inline auto accessTagValue(TypedTag<tag_type, tag>, KeyParameter& param) \
214 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR()
216 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \
220 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \
237 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
238 KeyParameter param;
247 inline KeyParameter makeKeyParameter(TypedTag<TagType::BOOL, tag>) { in makeKeyParameter()
248 KeyParameter param; in makeKeyParameter()
[all …]
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/
DKeymaster3.h62 Return<void> verifyAuthorization(uint64_t, const hidl_vec<KeyParameter>&, in verifyAuthorization() argument
70 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
76 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
82 const hidl_vec<KeyParameter>& /* unwrappingParams */, in importWrappedKey() argument
93 const hidl_vec<KeyParameter>& attestParams,
96 const hidl_vec<KeyParameter>& upgradeParams,
102 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken,
104 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
107 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
DKeymaster4.h62 Return<void> verifyAuthorization(uint64_t operationHandle, const hidl_vec<KeyParameter>& params, in verifyAuthorization()
72 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey()
84 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, in importKey()
92 const hidl_vec<KeyParameter>& unwrappingParams, in importWrappedKey()
106 const hidl_vec<KeyParameter>& attestParams, in attestKey()
112 const hidl_vec<KeyParameter>& upgradeParams, in upgradeKey()
128 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, in begin()
133 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, in update()
140 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, in finish()
Dauthorization_set.h27 using V4_0::KeyParameter;
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.cpp34 inline bool keyParamLess(const KeyParameter& a, const KeyParameter& b) { in keyParamLess()
68 inline bool keyParamEqual(const KeyParameter& a, const KeyParameter& b) { in keyParamEqual()
101 std::vector<KeyParameter> result; in Deduplicate()
158 KeyParameter& AuthorizationSet::operator[](int at) { in operator []()
162 const KeyParameter& AuthorizationSet::operator[](int at) const { in operator []()
177 NullOr<const KeyParameter&> AuthorizationSet::GetEntry(Tag tag) const { in GetEntry()
241 OutStreams& serialize(TAG_INVALID_t&&, OutStreams& out, const KeyParameter&) { in serialize() argument
245 template <typename T> OutStreams& serialize(T ttag, OutStreams& out, const KeyParameter& param) { in serialize()
252 static OutStreams& serialize(OutStreams& out, const KeyParameter& param) { in serialize()
257 static OutStreams& serialize(OutStreams& out, const KeyParameter&) { return out; } in serialize()
[all …]
Dauthorization_set.h39 typedef KeyParameter value_type;
53 AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; } in AuthorizationSet()
67 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) {
99 const KeyParameter* data() const { return data_.data(); } in data()
138 std::vector<KeyParameter>::const_iterator begin() const { return data_.begin(); } in begin()
143 std::vector<KeyParameter>::const_iterator end() const { return data_.end(); } in end()
150 KeyParameter& operator[](int n);
157 const KeyParameter& operator[](int n) const;
186 void push_back(const KeyParameter& param) { data_.push_back(param); } in push_back()
187 void push_back(KeyParameter&& param) { data_.push_back(std::move(param)); } in push_back()
[all …]
Dkeymaster_tags.h182 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \
185 inline auto accessTagValue(TypedTag<tag_type, tag>, const KeyParameter& param) \
190 inline auto accessTagValue(TypedTag<tag_type, tag>, KeyParameter& param) \
206 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR()
208 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \
212 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \
229 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
230 KeyParameter param;
238 template <Tag tag> inline KeyParameter makeKeyParameter(TypedTag<TagType::BOOL, tag>) { in makeKeyParameter()
239 KeyParameter param; in makeKeyParameter()
[all …]
Dkey_param_output.h38 ::std::ostream& operator<<(::std::ostream& os, const hidl_vec<KeyParameter>& set);
45 ::std::ostream& operator<<(::std::ostream& os, const KeyParameter& value);
/hardware/interfaces/security/keymint/aidl/android/hardware/security/keymint/
DIKeyMintDevice.aidl27 import android.hardware.security.keymint.KeyParameter;
343 in KeyParameter[] keyParams, in @nullable AttestationKey attestationKey); in generateKey()
384 KeyCreationResult importKey(in KeyParameter[] keyParams, in KeyFormat keyFormat, in importKey()
467 in byte[] maskingKey, in KeyParameter[] unwrappingParams, in long passwordSid, in importWrappedKey()
503 byte[] upgradeKey(in byte[] keyBlobToUpgrade, in KeyParameter[] upgradeParams); in upgradeKey()
754 BeginResult begin(in KeyPurpose purpose, in byte[] keyBlob, in KeyParameter[] params, in begin()
DBeginResult.aidl20 import android.hardware.security.keymint.KeyParameter;
39 KeyParameter[] params;
DKeyCharacteristics.aidl19 import android.hardware.security.keymint.KeyParameter;
36 KeyParameter[] authorizations;
DAttestationKey.aidl19 import android.hardware.security.keymint.KeyParameter;
39 KeyParameter[] attestKeyParams;
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dauthorization_set.h40 typedef KeyParameter value_type;
54 AuthorizationSet(const vector<KeyParameter>& other) { *this = other; } in AuthorizationSet()
68 AuthorizationSet& operator=(const vector<KeyParameter>& other) {
100 const KeyParameter* data() const { return data_.data(); } in data()
153 KeyParameter& operator[](int n);
160 const KeyParameter& operator[](int n) const;
181 inline auto GetTagValue(T tag) const -> decltype(authorizationValue(tag, KeyParameter())) {
187 void push_back(const KeyParameter& param) { data_.push_back(param); } in push_back()
188 void push_back(KeyParameter&& param) { data_.push_back(std::move(param)); } in push_back()
216 vector<KeyParameter> vector_data() const { in vector_data()
[all …]
Dkeymint_tags.h176 accessTagValue(TypedTag<tag_type, tag>, const KeyParameter& param) { \
187 accessTagValue(TypedTag<tag_type, tag>, KeyParameter& param) { \
221 accessTagValue(decltype(typed_tag), const KeyParameter& param) { \
231 accessTagValue(decltype(typed_tag), KeyParameter& param) { \
254 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
255 KeyParameter retval;
264 inline KeyParameter makeKeyParameter(TypedTag<TagType::BOOL, tag>) { in makeKeyParameter()
265 KeyParameter retval; in makeKeyParameter()
272 inline KeyParameter makeKeyParameter(TypedTag<TagType::INVALID, Tag::INVALID>) { in makeKeyParameter()
273 KeyParameter retval; in makeKeyParameter()
[all …]
/hardware/interfaces/keymaster/4.0/support/
Dauthorization_set.cpp28 bool keyParamLess(const KeyParameter& a, const KeyParameter& b) { in keyParamLess()
61 bool keyParamEqual(const KeyParameter& a, const KeyParameter& b) { in keyParamEqual()
94 std::vector<KeyParameter> result; in Deduplicate()
132 void AuthorizationSet::Filter(std::function<bool(const KeyParameter&)> doKeep) { in Filter()
133 std::vector<KeyParameter> result; in Filter()
142 KeyParameter& AuthorizationSet::operator[](int at) { in operator []()
146 const KeyParameter& AuthorizationSet::operator[](int at) const { in operator []()
178 NullOr<const KeyParameter&> AuthorizationSet::GetEntry(Tag tag) const { in GetEntry()
243 OutStreams& serialize(TAG_INVALID_t&&, OutStreams& out, const KeyParameter&) { in serialize() argument
249 OutStreams& serialize(T ttag, OutStreams& out, const KeyParameter& param) { in serialize()
[all …]
Dkey_param_output.cpp32 ostream& operator<<(ostream& os, const hidl_vec<KeyParameter>& set) { in operator <<()
42 ostream& operator<<(ostream& os, const KeyParameter& param) { in operator <<()
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/current/android/hardware/security/keymint/
DIKeyMintDevice.aidl40 …nt.KeyCreationResult generateKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in… in generateKey()
41 …mint.KeyCreationResult importKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in… in importKey()
42 …ngKeyBlob, in byte[] maskingKey, in android.hardware.security.keymint.KeyParameter[] unwrappingPar… in importWrappedKey()
43 …byte[] upgradeKey(in byte[] keyBlobToUpgrade, in android.hardware.security.keymint.KeyParameter[] … in upgradeKey()
47 …pose purpose, in byte[] keyBlob, in android.hardware.security.keymint.KeyParameter[] params, in @n… in begin()
DBeginResult.aidl39 android.hardware.security.keymint.KeyParameter[] params;
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/1/android/hardware/security/keymint/
DIKeyMintDevice.aidl40 …nt.KeyCreationResult generateKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in… in generateKey()
41 …mint.KeyCreationResult importKey(in android.hardware.security.keymint.KeyParameter[] keyParams, in… in importKey()
42 …ngKeyBlob, in byte[] maskingKey, in android.hardware.security.keymint.KeyParameter[] unwrappingPar… in importWrappedKey()
43 …byte[] upgradeKey(in byte[] keyBlobToUpgrade, in android.hardware.security.keymint.KeyParameter[] … in upgradeKey()
47 …pose purpose, in byte[] keyBlob, in android.hardware.security.keymint.KeyParameter[] params, in @n… in begin()
DBeginResult.aidl39 android.hardware.security.keymint.KeyParameter[] params;
DAttestationKey.aidl39 android.hardware.security.keymint.KeyParameter[] attestKeyParams;
/hardware/interfaces/security/keymint/support/
Dkey_param_output.cpp28 ostream& operator<<(ostream& os, const ::std::vector<KeyParameter>& set) { in operator <<()
38 ostream& operator<<(ostream& os, const KeyParameter& param) { in operator <<()
Dauthorization_set.cpp35 std::vector<KeyParameter> result; in Deduplicate()
73 KeyParameter& AuthorizationSet::operator[](int at) { in operator []()
77 const KeyParameter& AuthorizationSet::operator[](int at) const { in operator []()
109 std::optional<std::reference_wrapper<const KeyParameter>> AuthorizationSet::GetEntry( in GetEntry()

12