Home
last modified time | relevance | path

Searched refs:hidl_vec (Results 1 – 25 of 78) sorted by relevance

1234

/system/keymaster/ng/include/
DAndroidKeymaster4Device.h35 using ::android::hardware::hidl_vec;
59 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params,
62 const hidl_vec<KeyParameter>& parametersToVerify,
65 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
66 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
68 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
69 const hidl_vec<uint8_t>& clientId,
70 const hidl_vec<uint8_t>& appData,
72 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
73 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
[all …]
DAndroidKeymaster3Device.h37 using ::android::hardware::hidl_vec;
62 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
63 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
65 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
66 const hidl_vec<uint8_t>& clientId,
67 const hidl_vec<uint8_t>& appData,
69 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
70 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
71 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
72 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
[all …]
DAndroidKeymaster41Device.h33 using ::android::hardware::hidl_vec;
81 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params, in computeSharedHmac()
87 const hidl_vec<KeyParameter>& parametersToVerify, in verifyAuthorization()
93 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override { in addRngEntropy()
97 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey()
102 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics()
103 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics()
104 const hidl_vec<uint8_t>& appData, in getKeyCharacteristics()
109 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, in importKey()
110 const hidl_vec<uint8_t>& keyData, in importKey()
[all …]
Dkeystore_hidl_support.h69 inline static hidl_vec<uint8_t> blob2hidlVec(const uint8_t* data, const size_t length,
71 hidl_vec<uint8_t> result;
81 inline static hidl_vec<uint8_t> blob2hidlVec(const std::string& value) { in blob2hidlVec()
82 hidl_vec<uint8_t> result; in blob2hidlVec()
89 inline static hidl_vec<uint8_t> blob2hidlVec(const std::vector<uint8_t>& blob) { in blob2hidlVec()
90 hidl_vec<uint8_t> result; in blob2hidlVec()
101 inline static hidl_vec<uint8_t> authToken2HidlVec(const HardwareAuthToken& token) { in authToken2HidlVec()
111 hidl_vec<uint8_t> result; in authToken2HidlVec()
125 inline std::string hidlVec2String(const hidl_vec<uint8_t>& value) { in hidlVec2String()
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeymaster3Device.h32 using ::android::hardware::hidl_vec;
48 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
49 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
51 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
52 const hidl_vec<uint8_t>& clientId,
53 const hidl_vec<uint8_t>& appData,
55 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
56 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
57 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
58 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
[all …]
DTrustyKeymaster4Device.h30 using ::android::hardware::hidl_vec;
53 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params,
56 const hidl_vec<KeyParameter>& parametersToVerify,
59 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
60 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
62 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
63 const hidl_vec<uint8_t>& clientId,
64 const hidl_vec<uint8_t>& appData,
66 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
67 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
[all …]
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp87 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
135 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
136 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
141 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
142 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
147 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
148 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
153 inline static hidl_vec<hidl_vec<uint8_t>>
155 hidl_vec<hidl_vec<uint8_t>> result; in kmCertChain2Hidl()
166 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl()
[all …]
DAndroidKeymaster4Device.cpp78 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) in KmParamSet()
88 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
89 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
94 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
95 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
100 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
101 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
106 inline static hidl_vec<hidl_vec<uint8_t>>
108 hidl_vec<hidl_vec<uint8_t>> result; in kmCertChain2Hidl()
119 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl()
[all …]
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp75 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
124 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
125 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
130 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
131 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
136 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
137 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
142 inline static hidl_vec<hidl_vec<uint8_t>> kmCertChain2Hidl( in kmCertChain2Hidl()
144 hidl_vec<hidl_vec<uint8_t>> result; in kmCertChain2Hidl()
155 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl()
[all …]
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp93 inline hidl_vec<KeyParameter> injectAuthToken(const hidl_vec<KeyParameter>& keyParamsBase, in injectAuthToken()
122 return hidl_vec<KeyParameter>(std::move(keyParams)); in injectAuthToken()
127 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
176 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
177 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
182 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
183 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
188 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
189 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
194 inline static hidl_vec<hidl_vec<uint8_t>> kmCertChain2Hidl( in kmCertChain2Hidl()
[all …]
/system/hwservicemanager/
DTokenManager.h36 using ::android::hardware::hidl_vec;
46 Return<bool> unregister(const hidl_vec<uint8_t> &token) override;
47 Return<sp<IBase>> get(const hidl_vec<uint8_t> &token) override;
54 static bool constantTimeCompare(const hidl_vec<uint8_t> &t1, const hidl_vec<uint8_t> &t2);
56 static hidl_vec<uint8_t> makeToken(const uint64_t id, const uint8_t *hmac, uint64_t hmacSize);
57 static uint64_t getTokenId(const hidl_vec<uint8_t> &token);
64 hidl_vec<uint8_t> token; // First eight bytes are tokenId. Remaining bytes are hmac.
71 lookupToken(const hidl_vec<uint8_t> &token);
DTokenManager.cpp85 TokenManager::lookupToken(const hidl_vec<uint8_t> &token) { in lookupToken()
108 Return<bool> TokenManager::unregister(const hidl_vec<uint8_t> &token) { in unregister()
119 Return<sp<IBase>> TokenManager::get(const hidl_vec<uint8_t> &token) { in get()
148 const hidl_vec<uint8_t> &token = makeToken(id, hmac.data(), hmacSize); in generateToken()
154 bool TokenManager::constantTimeCompare(const hidl_vec<uint8_t> &t1, const hidl_vec<uint8_t> &t2) { in constantTimeCompare()
167 uint64_t TokenManager::getTokenId(const hidl_vec<uint8_t> &token) { in getTokenId()
179 hidl_vec<uint8_t> TokenManager::makeToken(const uint64_t id, const uint8_t *hmac, uint64_t hmacSize… in makeToken()
180 hidl_vec<uint8_t> token; in makeToken()
/system/security/keystore/tests/
Dauth_token_formatting_test.cpp34 using android::hardware::hidl_vec;
93 UINT64_C(0x1d1e1f2021222324), hidl_vec<uint8_t>(test_hmac_data, test_hmac_data + 32)};
97 hidl_vec<uint8_t> hidl_test_token; in TEST()
104 hidl_vec<uint8_t> hidl_test_token; in TEST()
111 hidl_vec<uint8_t> hidl_test_token; in TEST()
118 hidl_vec<uint8_t> hidl_test_token; in TEST()
125 hidl_vec<uint8_t> hidl_test_token; in TEST()
134 hidl_vec<uint8_t> hidl_test_token; in TEST()
142 hidl_vec<uint8_t> hidl_test_token; in TEST()
145 hidl_vec<uint8_t> hidl_from_km4 = authToken2HidlVec(km4_from_hidl); in TEST()
[all …]
/system/security/keystore/include/keystore/
DKeymasterCertificateChain.h28 explicit KeymasterCertificateChain(hardware::hidl_vec<hardware::hidl_vec<uint8_t>> other) in KeymasterCertificateChain()
36 hardware::hidl_vec<hardware::hidl_vec<uint8_t>> chain;
DKeymasterArguments.h30 KeymasterArguments(hardware::hidl_vec<::keystore::KeyParameter>&& other);
31 explicit KeymasterArguments(const hardware::hidl_vec<::keystore::KeyParameter>& other);
36 const inline hardware::hidl_vec<::keystore::KeyParameter>& getParameters() const { in getParameters()
41 hardware::hidl_vec<::keystore::KeyParameter> data_;
DKeymasterBlob.h27 explicit KeymasterBlob(hardware::hidl_vec<uint8_t> data) : data_(data) {} in KeymasterBlob()
30 const hardware::hidl_vec<uint8_t>& getData() const { return data_; } in getData()
33 hardware::hidl_vec<uint8_t> data_;
/system/bt/vendor_libs/linux/interface/
Dbluetooth_hci.h36 using ::android::hardware::hidl_vec;
47 Return<void> sendHciCommand(const hidl_vec<uint8_t>& packet) override;
48 Return<void> sendAclData(const hidl_vec<uint8_t>& data) override;
49 Return<void> sendScoData(const hidl_vec<uint8_t>& data) override;
50 Return<void> sendIsoData(const hidl_vec<uint8_t>& data) override;
74 void sendDataToController(const uint8_t type, const hidl_vec<uint8_t>& data);
Dhci_packetizer.h30 using ::android::hardware::hidl_vec;
39 const hidl_vec<uint8_t>& GetPacket() const;
45 hidl_vec<uint8_t> packet_;
/system/bt/gd/rust/hal/src/ffi/
Dhidl.cc9 using ::android::hardware::hidl_vec;
39 Return<void> hciEventReceived(const hidl_vec<uint8_t>& event) { in hciEventReceived()
44 Return<void> aclDataReceived(const hidl_vec<uint8_t>& data) { in aclDataReceived()
49 Return<void> scoDataReceived(const hidl_vec<uint8_t>& data) { in scoDataReceived()
54 Return<void> isoDataReceived(const hidl_vec<uint8_t>& data) { in isoDataReceived()
104 bt_hci_->sendHciCommand(hidl_vec<uint8_t>(data.data(), data.data() + data.length())); in send_command()
109 bt_hci_->sendAclData(hidl_vec<uint8_t>(data.data(), data.data() + data.length())); in send_acl()
114 bt_hci_->sendScoData(hidl_vec<uint8_t>(data.data(), data.data() + data.length())); in send_sco()
124 bt_hci_1_1_->sendIsoData(hidl_vec<uint8_t>(data.data(), data.data() + data.length())); in send_iso()
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/
DVtsHalWifiKeystoreV1_0TargetTest.cpp200 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
205 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
215 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
220 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
234 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
246 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
259 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
268 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
282 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
287 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
[all …]
/system/libhidl/
Dtest_main.cpp217 using android::hardware::hidl_vec; in TEST_F()
222 hidl_vec<int32_t> hv0(3); // size in TEST_F()
225 hidl_vec<int32_t> hv1 = v; // copy = in TEST_F()
228 hidl_vec<int32_t> hv2(v); // copy constructor in TEST_F()
234 hidl_vec<int32_t> v3 = {5, 6, 7}; // initializer_list in TEST_F()
246 using android::hardware::hidl_vec; in TEST_F()
248 hidl_vec<int32_t> empty; in TEST_F()
259 android::hardware::hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F()
295 using android::hardware::hidl_vec; in TEST_F()
297 hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F()
[all …]
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper.h44 uint32_t uid, const ::android::hardware::hidl_vec<uint8_t>& currentPasswordHandle,
45 const ::android::hardware::hidl_vec<uint8_t>& currentPassword,
46 const ::android::hardware::hidl_vec<uint8_t>& desiredPassword,
64 const ::android::hardware::hidl_vec<uint8_t>& enrolledPasswordHandle,
65 const ::android::hardware::hidl_vec<uint8_t>& providedPassword,
Dtrusty_gatekeeper.cpp26 using ::android::hardware::hidl_vec;
57 SizedBuffer hidl_vec2sized_buffer(const hidl_vec<uint8_t>& vec) { in hidl_vec2sized_buffer()
65 const hidl_vec<uint8_t>& currentPasswordHandle, in enroll()
66 const hidl_vec<uint8_t>& currentPassword, in enroll()
67 const hidl_vec<uint8_t>& desiredPassword, in enroll()
91 hidl_vec<uint8_t> new_handle(response.enrolled_password_handle.Data<uint8_t>(), in enroll()
101 const ::android::hardware::hidl_vec<uint8_t>& enrolledPasswordHandle, in verify()
102 const ::android::hardware::hidl_vec<uint8_t>& providedPassword, verify_cb _hidl_cb) { in verify()
125 hidl_vec<uint8_t> auth_token( in verify()
/system/chre/host/hal_generic/common/
Dpermissions_util.h33 const hidl_vec<hidl_string> kSupportedPermissions = {
37 hidl_vec<hidl_string> chreToAndroidPermissions(uint32_t chrePermissions);
/system/libhidl/base/include/hidl/
DHidlSupport.h336 struct hidl_vec { struct
339 hidl_vec() : mBuffer(nullptr), mSize(0), mOwnsBuffer(false) { in hidl_vec() argument
340 static_assert(hidl_vec<T>::kOffsetOfBuffer == 0, "wrong offset"); in hidl_vec()
345 hidl_vec(size_t size) : hidl_vec() { resize(size); } in hidl_vec() argument
347 hidl_vec(const hidl_vec<T> &other) : hidl_vec() { in hidl_vec() function
351 hidl_vec(hidl_vec<T> &&other) noexcept : hidl_vec() { in hidl_vec() function
355 hidl_vec(const std::initializer_list<T> list) : hidl_vec() { *this = list; } in hidl_vec() argument
357 hidl_vec(const std::vector<T> &other) : hidl_vec() { in hidl_vec() argument
365 hidl_vec(InputIterator first, InputIterator last) : hidl_vec() { in hidl_vec() argument
383 ~hidl_vec() { in ~hidl_vec() argument
[all …]

1234