/hardware/interfaces/keymaster/4.0/support/ |
D | Keymaster3.cpp | 45 V3_0::KeyParameter convert(const KeyParameter& param) { in convert() 46 V3_0::KeyParameter converted; in convert() 54 KeyParameter convert(const V3_0::KeyParameter& param) { in convert() 55 KeyParameter converted; in convert() 63 hidl_vec<V3_0::KeyParameter> convert(const hidl_vec<KeyParameter>& params) { in convert() 64 hidl_vec<V3_0::KeyParameter> converted(params.size()); in convert() 71 hidl_vec<KeyParameter> convert(const hidl_vec<V3_0::KeyParameter>& params) { in convert() 72 hidl_vec<KeyParameter> converted(params.size()); in convert() 85 hidl_vec<V3_0::KeyParameter> convertAndAddAuthToken(const hidl_vec<KeyParameter>& params, in convertAndAddAuthToken() 87 hidl_vec<V3_0::KeyParameter> converted(params.size() + 1); in convertAndAddAuthToken() [all …]
|
D | authorization_set.cpp | 28 inline bool keyParamLess(const KeyParameter& a, const KeyParameter& b) { in keyParamLess() 61 inline 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/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 | Keymaster3.h | 66 Return<void> verifyAuthorization(uint64_t, const hidl_vec<KeyParameter>&, in verifyAuthorization() argument 74 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 80 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 86 const hidl_vec<KeyParameter>& /* unwrappingParams */, in importWrappedKey() argument 97 const hidl_vec<KeyParameter>& attestParams, 100 const hidl_vec<KeyParameter>& upgradeParams, 106 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, 108 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, 111 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
|
D | Keymaster4.h | 58 Return<void> verifyAuthorization(uint64_t operationHandle, const hidl_vec<KeyParameter>& params, in verifyAuthorization() 68 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 80 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, in importKey() 88 const hidl_vec<KeyParameter>& unwrappingParams, in importWrappedKey() 102 const hidl_vec<KeyParameter>& attestParams, in attestKey() 108 const hidl_vec<KeyParameter>& upgradeParams, in upgradeKey() 122 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, in begin() 127 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, in update() 134 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, in finish()
|
D | keymaster_tags.h | 180 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 183 inline auto accessTagValue(TypedTag<tag_type, tag>, const KeyParameter& param) \ 188 inline auto accessTagValue(TypedTag<tag_type, tag>, KeyParameter& param) \ 205 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR() 207 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \ 211 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \ 228 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) { 229 KeyParameter param; 238 inline KeyParameter makeKeyParameter(TypedTag<TagType::BOOL, tag>) { in makeKeyParameter() 239 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 | 66 bool operator==(const KeyParameter& a, const KeyParameter& b) { in operator ==() 192 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() 193 size_t count = std::count_if(set.begin(), set.end(), [&](const KeyParameter& param) { in contains() 200 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag>) { in contains() 202 [&](const KeyParameter& param) { return param.tag == tag; }); in contains() 358 bool tag_in_list(const KeyParameter& entry) { in tag_in_list() 601 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Begin() 638 const hidl_vec<KeyParameter>& hidl_out_params, in Update() 666 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Finish()
|
/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.0/vts/functional/ |
D | KeymasterHidlTest.cpp | 280 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Begin() 318 const hidl_vec<KeyParameter>& hidl_out_params, in Update() 347 [&](ErrorCode hidl_error, const hidl_vec<KeyParameter>& hidl_out_params, in Finish() 641 keymaster_->upgradeKey(key_blob, hidl_vec<KeyParameter>(), in UpgradeKey()
|
D | keymaster_hidl_hal_test.cpp | 79 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains() 80 size_t count = std::count_if(set.begin(), set.end(), [&](const KeyParameter& param) { in contains() 87 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag>) { in contains() 89 [&](const KeyParameter& param) { return param.tag == tag; }); in contains() 288 bool tag_in_list(const KeyParameter& entry) { in tag_in_list()
|
/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) 1079 begin(KeyPurpose purpose, vec<uint8_t> keyBlob, vec<KeyParameter> inParams, 1081 generates (ErrorCode error, vec<KeyParameter> outParams, OperationHandle operationHandle); 1196 update(OperationHandle operationHandle, vec<KeyParameter> inParams, vec<uint8_t> input, 1198 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;
|