Home
last modified time | relevance | path

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

123

/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/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp76 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
125 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
126 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
131 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
132 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
137 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
138 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
143 inline static hidl_vec<hidl_vec<uint8_t>> kmCertChain2Hidl( in kmCertChain2Hidl()
145 hidl_vec<hidl_vec<uint8_t>> result; in kmCertChain2Hidl()
156 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl()
[all …]
/system/keymaster/ng/
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 …]
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 …]
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp94 inline hidl_vec<KeyParameter> injectAuthToken(const hidl_vec<KeyParameter>& keyParamsBase, in injectAuthToken()
123 return hidl_vec<KeyParameter>(std::move(keyParams)); in injectAuthToken()
128 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet()
177 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec()
178 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
183 inline hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec()
184 hidl_vec<uint8_t> result; in kmBlob2hidlVec()
189 inline hidl_vec<uint8_t> kmBuffer2hidlVec(const ::keymaster::Buffer& buf) { in kmBuffer2hidlVec()
190 hidl_vec<uint8_t> result; in kmBuffer2hidlVec()
195 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.cpp94 TokenManager::lookupToken(const hidl_vec<uint8_t> &token) { in lookupToken()
117 Return<bool> TokenManager::unregister(const hidl_vec<uint8_t> &token) { in unregister()
130 Return<sp<IBase>> TokenManager::get(const hidl_vec<uint8_t> &token) { in get()
159 const hidl_vec<uint8_t> &token = makeToken(id, hmac.data(), hmacSize); in generateToken()
165 bool TokenManager::constantTimeCompare(const hidl_vec<uint8_t> &t1, const hidl_vec<uint8_t> &t2) { in constantTimeCompare()
178 uint64_t TokenManager::getTokenId(const hidl_vec<uint8_t> &token) { in getTokenId()
190 hidl_vec<uint8_t> TokenManager::makeToken(const uint64_t id, const uint8_t *hmac, uint64_t hmacSize… in makeToken()
191 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/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/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_;
DOperationResult.h38 ::keystore::hidl_vec<uint8_t> data;
39 ::keystore::hidl_vec<::keystore::KeyParameter> outParams;
Dkeystore_hidl_support.h88 inline static hidl_vec<uint8_t> authToken2HidlVec(const Km3HardwareAuthToken& token) { in authToken2HidlVec()
98 hidl_vec<uint8_t> result; in authToken2HidlVec()
119 inline static Km3HardwareAuthToken hidlVec2Km3AuthToken(const hidl_vec<uint8_t>& buffer) { in hidlVec2Km3AuthToken()
144 inline std::string hidlVec2String(const hidl_vec<uint8_t>& value) { in hidlVec2String()
/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/keymaster/fuzzer/
Dk4_AndroidKeymaster4Device_fuzzer.cpp163 hidl_vec<uint8_t> keyBlob = {}; in process()
166 const hidl_vec<uint8_t>& hidlKeyBlob, in process()
174 [[maybe_unused]] const hidl_vec<hidl_vec<uint8_t>>& hidlCertificateChain) {}); in process()
176 mKeymaster->upgradeKey(keyBlob, hidl_vec<KeyParameter>(), in process()
178 [[maybe_unused]] const hidl_vec<uint8_t>& upgraded_blob) {}); in process()
197 [[maybe_unused]] const hidl_vec<uint8_t>& hidlKeyBlob, in process()
220 [[maybe_unused]] const hidl_vec<uint8_t>& hidlKeyBlob, in process()
227 [[maybe_unused]] const hidl_vec<uint8_t>& hidlKeyMaterial) {}); in process()
232 [[maybe_unused]] const hidl_vec<KeyParameter>& hidlOutParams, in process()
242 [[maybe_unused]] const hidl_vec<KeyParameter>& hidlOutParams, in process()
[all …]
/system/libhidl/base/include/hidl/
DHidlSupport.h336 struct hidl_vec { struct
339 hidl_vec() : mBuffer(nullptr), mSize(0), mOwnsBuffer(false) { in hidl_vec() function
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() function
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() function
383 ~hidl_vec() { in ~hidl_vec() argument
[all …]
/system/security/keystore/
Dkeystore_get_wifi_hidl.cpp31 using android::hardware::hidl_vec;
50 auto cb = [&](IKeystore::KeystoreStatusCode status, hidl_vec<uint8_t> returnedValue) { in keystore_get()
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h86 const hidl_vec<T> &vec, in readEmbeddedFromParcel()
96 parentOffset + hidl_vec<T>::kOffsetOfBuffer, in readEmbeddedFromParcel()
102 const hidl_vec<T> &vec, in writeEmbeddedToParcel()
112 parentOffset + hidl_vec<T>::kOffsetOfBuffer); in writeEmbeddedToParcel()
116 status_t findInParcel(const hidl_vec<T> &vec, const Parcel &parcel, size_t *handle) { in findInParcel()
/system/hardware/interfaces/wifi/keystore/1.0/default/include/wifikeystorehal/
Dkeystore.h22 using ::android::hardware::hidl_vec;
35 const hidl_string& keyId, const hidl_vec<uint8_t>& dataToSign,

123