Home
last modified time | relevance | path

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

1234

/system/keymaster/ng/include/
DAndroidKeymaster4Device.h34 using ::android::hardware::hidl_vec;
57 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params,
60 const hidl_vec<KeyParameter>& parametersToVerify,
63 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
64 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
66 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
67 const hidl_vec<uint8_t>& clientId,
68 const hidl_vec<uint8_t>& appData,
70 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
71 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
[all …]
DAndroidKeymaster3Device.h44 using ::android::hardware::hidl_vec;
63 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
64 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
66 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
67 const hidl_vec<uint8_t>& clientId,
68 const hidl_vec<uint8_t>& appData,
70 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
71 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
72 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
73 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
[all …]
DAndroidKeymaster41Device.h33 using ::android::hardware::hidl_vec;
80 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params, in computeSharedHmac()
86 const hidl_vec<KeyParameter>& parametersToVerify, in verifyAuthorization()
92 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override { in addRngEntropy()
96 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey()
101 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics()
102 const hidl_vec<uint8_t>& clientId, in getKeyCharacteristics()
103 const hidl_vec<uint8_t>& appData, in getKeyCharacteristics()
108 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, in importKey()
109 const hidl_vec<uint8_t>& keyData, in importKey()
[all …]
Dkeystore_hidl_support.h71 inline static hidl_vec<uint8_t> blob2hidlVec(const uint8_t* data, const size_t length,
73 hidl_vec<uint8_t> result;
83 inline static hidl_vec<uint8_t> blob2hidlVec(const std::string& value) { in blob2hidlVec()
84 hidl_vec<uint8_t> result; in blob2hidlVec()
91 inline static hidl_vec<uint8_t> blob2hidlVec(const std::vector<uint8_t>& blob) { in blob2hidlVec()
92 hidl_vec<uint8_t> result; in blob2hidlVec()
103 inline static hidl_vec<uint8_t> authToken2HidlVec(const HardwareAuthToken& token) { in authToken2HidlVec()
113 hidl_vec<uint8_t> result; in authToken2HidlVec()
127 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/security/keystore/
Dlegacy_keymaster_device_wrapper.h40 using ::android::hardware::hidl_vec;
51 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
52 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
54 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
55 const hidl_vec<uint8_t>& clientId,
56 const hidl_vec<uint8_t>& appData,
58 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
59 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
60 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
61 const hidl_vec<uint8_t>& clientId, const hidl_vec<uint8_t>& appData,
[all …]
Dlegacy_keymaster_device_wrapper.cpp69 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
118 inline static KmParamSet hidlParams2KmParamSet(const hidl_vec<KeyParameter>& params) { in hidlParams2KmParamSet()
122 inline static keymaster_blob_t hidlVec2KmBlob(const hidl_vec<uint8_t>& blob) { in hidlVec2KmBlob()
128 inline static keymaster_key_blob_t hidlVec2KmKeyBlob(const hidl_vec<uint8_t>& blob) { in hidlVec2KmKeyBlob()
134 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
138 return hidl_vec<uint8_t>(blob.key_material, blob.key_material + blob.key_material_size); in kmBlob2hidlVec()
141 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
145 return hidl_vec<uint8_t>(blob.data, blob.data + blob.data_length); in kmBlob2hidlVec()
149 inline static hidl_vec<hidl_vec<uint8_t>>
151 hidl_vec<hidl_vec<uint8_t>> result; in kmCertChain2Hidl()
[all …]
Dkeymaster_worker.h44 using ::android::hardware::hidl_vec;
177 const hidl_vec<uint8_t>& clientId,
178 const hidl_vec<uint8_t>& appData, Blob keyBlob, Blob charBlob);
200 hidl_vec<KeyParameter>* params);
210 hidl_vec<uint8_t> entropy, worker_begin_cb worker_cb);
213 void update(sp<IBinder> token, AuthorizationSet params, hidl_vec<uint8_t> data,
217 void finish(sp<IBinder> token, AuthorizationSet params, hidl_vec<uint8_t> input,
218 hidl_vec<uint8_t> signature, hidl_vec<uint8_t> entorpy, finish_cb worker_cb);
232 void computeSharedHmac(hidl_vec<HmacSharingParameters> params, computeSharedHmac_cb _hidl_cb);
236 void verifyAuthorization(uint64_t challenge, hidl_vec<KeyParameter> params,
[all …]
Dkeystore_aidl_hidl_marshalling_utils.h63 hidl_vec<uint8_t> readKeymasterBlob(const android::Parcel& in);
64 android::status_t writeKeymasterBlob(const hidl_vec<uint8_t>& blob, android::Parcel* out);
66 NullOr<hidl_vec<uint8_t>> readBlobAsByteArray(const android::Parcel& in, bool inPlace = true);
67 android::status_t writeBlobAsByteArray(const NullOr<const hidl_vec<uint8_t>&>& blob,
73 hidl_vec<KeyParameter> readParamSetFromParcel(const android::Parcel& in);
74 android::status_t writeParamSetToParcel(const hidl_vec<KeyParameter>& params, android::Parcel* out);
76 hidl_vec<hidl_vec<uint8_t>> readCertificateChainFromParcel(const android::Parcel& in);
Dconfirmation_manager.h54 const hidl_vec<uint8_t>& extraData,
70 hidl_vec<uint8_t> getLatestConfirmationToken();
81 const hidl_vec<uint8_t>& dataThatWasConfirmed,
82 const hidl_vec<uint8_t>& confirmationToken) override;
92 hidl_vec<uint8_t> dataThatWasConfirmed);
102 hidl_vec<uint8_t> mLatestConfirmationToken;
/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/keymaster/ng/
DAndroidKeymaster3Device.cpp88 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
136 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
137 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
142 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
143 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
148 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
149 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
154 inline static hidl_vec<hidl_vec<uint8_t>>
156 hidl_vec<hidl_vec<uint8_t>> result; in kmCertChain2Hidl()
167 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()
120 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/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);
/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_;
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/
DVtsHalWifiKeystoreV1_0TargetTest.cpp228 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
233 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
243 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
248 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
262 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
274 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
287 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
296 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
310 const ::android::hardware::hidl_vec<uint8_t>& /*value*/) { in TEST_P()
315 ::android::hardware::hidl_vec<uint8_t> dataToSign; in TEST_P()
[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/libhidl/
Dtest_main.cpp203 using android::hardware::hidl_vec; in TEST_F()
208 hidl_vec<int32_t> hv0(3); // size in TEST_F()
211 hidl_vec<int32_t> hv1 = v; // copy = in TEST_F()
214 hidl_vec<int32_t> hv2(v); // copy constructor in TEST_F()
220 hidl_vec<int32_t> v3 = {5, 6, 7}; // initializer_list in TEST_F()
232 using android::hardware::hidl_vec; in TEST_F()
234 hidl_vec<int32_t> empty; in TEST_F()
245 android::hardware::hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F()
281 using android::hardware::hidl_vec; in TEST_F()
283 hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F()
[all …]

1234