/hardware/interfaces/keymaster/4.1/support/ |
D | Keymaster3.cpp | 41 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/ |
D | authorization_set.h | 38 typedef KeyParameter value_type; 52 AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; } in AuthorizationSet() 66 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) { 98 const KeyParameter* data() const { return data_.data(); } in data() 137 std::vector<KeyParameter>::const_iterator begin() const { return data_.begin(); } in begin() 142 std::vector<KeyParameter>::const_iterator end() const { return data_.end(); } in end() 148 void Filter(std::function<bool(const KeyParameter&)> doKeep); 154 KeyParameter& operator[](int n); 161 const KeyParameter& operator[](int n) const; 188 void push_back(const KeyParameter& param) { data_.push_back(param); } in push_back() [all …]
|
D | keymaster_tags.h | 186 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 189 inline auto accessTagValue(TypedTag<tag_type, tag>, const KeyParameter& param) \ 194 inline auto accessTagValue(TypedTag<tag_type, tag>, KeyParameter& param) \ 211 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR() 213 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \ 217 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \ 234 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) { 235 KeyParameter param; 244 inline KeyParameter makeKeyParameter(TypedTag<TagType::BOOL, tag>) { in makeKeyParameter() 245 KeyParameter param; in makeKeyParameter() [all …]
|
D | key_param_output.h | 70 ::std::ostream& operator<<(::std::ostream& os, const hidl_vec<KeyParameter>& set); 71 ::std::ostream& operator<<(::std::ostream& os, const KeyParameter& value);
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | authorization_set.cpp | 34 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 …]
|
D | authorization_set.h | 39 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 …]
|
D | keymaster_tags.h | 182 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 …]
|
D | key_param_output.h | 38 ::std::ostream& operator<<(::std::ostream& os, const hidl_vec<KeyParameter>& set); 45 ::std::ostream& operator<<(::std::ostream& os, const KeyParameter& value);
|
D | key_param_output.cpp | 27 ::std::ostream& operator<<(::std::ostream& os, const hidl_vec<KeyParameter>& set) { in operator <<() 70 ::std::ostream& operator<<(::std::ostream& os, const KeyParameter& param) { in operator <<()
|
D | keymaster_hidl_hal_test.cpp | 64 bool operator==(const KeyParameter& a, const KeyParameter& b) { in operator ==() 190 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() 191 size_t count = std::count_if(set.begin(), set.end(), [&](const KeyParameter& param) { in contains() 198 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag>) { in contains() 200 [&](const KeyParameter& param) { return param.tag == tag; }); in contains() 356 bool tag_in_list(const KeyParameter& entry) { in tag_in_list() 583 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Begin() 620 const hidl_vec<KeyParameter>& hidl_out_params, in Update() 648 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Finish()
|
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/ |
D | Keymaster3.h | 62 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,
|
D | Keymaster4.h | 62 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()
|
D | authorization_set.h | 27 using V4_0::KeyParameter;
|
D | keymaster_tags.h | 37 using V4_0::KeyParameter;
|
/hardware/interfaces/keymaster/4.0/support/ |
D | authorization_set.cpp | 28 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 …]
|
D | key_param_output.cpp | 32 ostream& operator<<(ostream& os, const hidl_vec<KeyParameter>& set) { in operator <<() 42 ostream& operator<<(ostream& os, const KeyParameter& param) { in operator <<()
|
/hardware/interfaces/keymaster/3.0/ |
D | IKeymasterDevice.hal | 88 generateKey(vec<KeyParameter> keyParams) 111 importKey(vec<KeyParameter> params, KeyFormat keyFormat, vec<uint8_t> keyData) 177 attestKey(vec<uint8_t> keyToAttest, vec<KeyParameter> attestParams) 194 upgradeKey(vec<uint8_t> keyBlobToUpgrade, vec<KeyParameter> upgradeParams) 274 begin(KeyPurpose purpose, vec<uint8_t> key, vec<KeyParameter> inParams) 275 generates(ErrorCode error, vec<KeyParameter> outParams, OperationHandle operationHandle); 309 update(OperationHandle operationHandle, vec<KeyParameter> inParams, vec<uint8_t> input) 310 generates(ErrorCode error, uint32_t inputConsumed, vec<KeyParameter> outParams, 335 finish(OperationHandle operationHandle, vec<KeyParameter> inParams, vec<uint8_t> input, 337 generates(ErrorCode error, vec<KeyParameter> outParams, vec<uint8_t> output);
|
D | types.hal | 372 struct KeyParameter { 401 vec<KeyParameter> softwareEnforced; 402 vec<KeyParameter> teeEnforced;
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | Keymaster4_1HidlTest.h | 147 bool contains(hidl_vec<KeyParameter>& set, TypedTag typedTag) { in contains() 148 return std::find_if(set.begin(), set.end(), [&](const KeyParameter& param) { in contains()
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | KeymasterHidlTest.cpp | 255 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Begin() 293 const hidl_vec<KeyParameter>& hidl_out_params, in Update() 322 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Finish() 630 keymaster_->upgradeKey(key_blob, hidl_vec<KeyParameter>(), in UpgradeKey()
|
D | keymaster_hidl_hal_test.cpp | 80 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() 81 size_t count = std::count_if(set.begin(), set.end(), [&](const KeyParameter& param) { in contains() 88 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag>) { in contains() 90 [&](const KeyParameter& param) { return param.tag == tag; }); in contains() 289 bool tag_in_list(const KeyParameter& entry) { in tag_in_list()
|
/hardware/interfaces/keymaster/4.0/vts/performance/ |
D | Benchmark.cpp | 250 const hidl_vec<KeyParameter>& hidl_out_params, in Begin() 278 const hidl_vec<KeyParameter>& hidl_out_params, in ProcessMessage() 297 const hidl_vec<KeyParameter>& hidl_out_params, in ProcessMessage()
|
/hardware/interfaces/keymaster/4.1/ |
D | IKeymasterDevice.hal | 22 import @4.0::KeyParameter;
|
/hardware/interfaces/keymaster/4.0/ |
D | IKeymasterDevice.hal | 363 verifyAuthorization(uint64_t operationHandle, vec<KeyParameter> parametersToVerify, 472 generateKey(vec<KeyParameter> keyParams) 507 importKey(vec<KeyParameter> keyParams, KeyFormat keyFormat, vec<uint8_t> keyData) 590 vec<uint8_t> maskingKey, vec<KeyParameter> unwrappingParams, 799 attestKey(vec<uint8_t> keyToAttest, vec<KeyParameter> attestParams) 836 upgradeKey(vec<uint8_t> keyBlobToUpgrade, vec<KeyParameter> upgradeParams) 1077 begin(KeyPurpose purpose, vec<uint8_t> keyBlob, vec<KeyParameter> inParams, 1079 generates (ErrorCode error, vec<KeyParameter> outParams, OperationHandle operationHandle); 1194 update(OperationHandle operationHandle, vec<KeyParameter> inParams, vec<uint8_t> input, 1196 generates (ErrorCode error, uint32_t inputConsumed, vec<KeyParameter> outParams, [all …]
|
D | types.hal | 1134 struct KeyParameter { 1179 vec<KeyParameter> softwareEnforced; 1180 vec<KeyParameter> hardwareEnforced; 1295 vec<KeyParameter> parametersVerified;
|