Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 14 of 14) sorted by relevance

/hardware/libhardware/include/hardware/
Dkeymaster_defs.h314 keymaster_blob_t blob; /* KM_BIGNUM and KM_BYTES*/ member
518 param.blob.data = (uint8_t*)bytes; in keymaster_param_blob()
519 param.blob.data_length = bytes_len; in keymaster_param_blob()
565 if (a->blob.data_length != 0 && b->blob.data_length == 0) in keymaster_param_compare()
567 if (a->blob.data_length == 0 && b->blob.data_length == 0) in keymaster_param_compare()
569 if (a->blob.data_length == 0 && b->blob.data_length > 0) in keymaster_param_compare()
572 retval = memcmp(a->blob.data, b->blob.data, a->blob.data_length < b->blob.data_length in keymaster_param_compare()
573 ? a->blob.data_length in keymaster_param_compare()
574 : b->blob.data_length); in keymaster_param_compare()
577 else if (a->blob.data_length != b->blob.data_length) { in keymaster_param_compare()
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.cpp54 if (a.blob.size() == 0) return b.blob.size() != 0; in keyParamLess()
55 if (b.blob.size() == 0) return false; in keyParamLess()
57 retval = memcmp(&a.blob[0], &b.blob[0], std::min(a.blob.size(), b.blob.size())); in keyParamLess()
60 return a.blob.size() < b.blob.size(); in keyParamLess()
87 if (a.blob.size() != b.blob.size()) return false; in keyParamEqual()
88 return a.blob.size() == 0 || memcmp(&a.blob[0], &b.blob[0], a.blob.size()) == 0; in keyParamEqual()
207 OutStreams& serializeParamValue(OutStreams& out, const hidl_vec<uint8_t>& blob) { in serializeParamValue() argument
211 auto blob_length = blob.size(); in serializeParamValue()
231 if (blob_length) out.indirect.write(reinterpret_cast<const char*>(&blob[0]), blob_length); in serializeParamValue()
320 InStreams& deserializeParamValue(InStreams& in, hidl_vec<uint8_t>* blob) { in deserializeParamValue() argument
[all …]
Dkey_param_output.cpp109 for (size_t i = 0; i < param.blob.size(); ++i) { in operator <<()
110 os << ::std::hex << ::std::setw(2) << static_cast<int>(param.blob[i]) << ::std::dec; in operator <<()
115 for (size_t i = 0; i < param.blob.size(); ++i) { in operator <<()
116 os << ::std::hex << ::std::setw(2) << static_cast<int>(param.blob[i]) << ::std::dec; in operator <<()
Dkeymaster_tags.h201 MAKE_TAG_VALUE_ACCESSOR(TagType::BYTES, blob) in MAKE_TAG_VALUE_ACCESSOR() argument
202 MAKE_TAG_VALUE_ACCESSOR(TagType::BIGNUM, blob) in MAKE_TAG_VALUE_ACCESSOR()
Dkeymaster_hidl_hal_test.cpp133 return a.blob == b.blob; in operator ==()
282 X509* parse_cert_blob(const hidl_vec<uint8_t>& blob) { in parse_cert_blob() argument
283 const uint8_t* p = blob.data(); in parse_cert_blob()
284 return d2i_X509(nullptr, &p, blob.size()); in parse_cert_blob()
/hardware/interfaces/keymaster/3.0/default/
DKeymasterDevice.cpp256 keymaster_param_blob(tag, &keyParams[i].blob[0], keyParams[i].blob.size()); in KmParamSet()
278 inline static keymaster_blob_t hidlVec2KmBlob(const hidl_vec<uint8_t>& blob) { in hidlVec2KmBlob() argument
280 if (blob.size()) return {&blob[0], blob.size()}; in hidlVec2KmBlob()
284 inline static keymaster_key_blob_t hidlVec2KmKeyBlob(const hidl_vec<uint8_t>& blob) { in hidlVec2KmKeyBlob() argument
286 if (blob.size()) return {&blob[0], blob.size()}; in hidlVec2KmKeyBlob()
290 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec() argument
292 result.setToExternal(const_cast<unsigned char*>(blob.key_material), blob.key_material_size); in kmBlob2hidlVec()
295 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec() argument
297 result.setToExternal(const_cast<unsigned char*>(blob.data), blob.data_length); in kmBlob2hidlVec()
345 result[i].blob.setToExternal(const_cast<unsigned char*>(params[i].blob.data), in kmParamSet2Hidl()
[all …]
/hardware/interfaces/gatekeeper/1.0/
Dtypes.hal41 /** optional crypto blob. Opaque to Android system. */
/hardware/libhardware/tests/keymaster/
Dkeymaster_test.cpp73 friend std::ostream &operator<<(std::ostream &stream, const UniqueBlob& blob);
79 std::ostream &operator<<(std::ostream &stream, const UniqueBlob& blob) { in operator <<() argument
80 const size_t length = blob.mLength; in operator <<()
83 const uint8_t* data = blob.get(); in operator <<()
733 UniqueBlob blob(key_blob, key_blob_length); in TEST_F() local
/hardware/interfaces/keymaster/3.0/
Dtypes.hal374 * Discriminates the uinon/blob field used. The blob cannot be coincided with the union, but
375 * only one of "f" and "blob" is ever used at a time. */
397 vec<uint8_t> blob;
DIKeymasterDevice.hal75 * Generates a key, or key pair, returning a key blob and/or a description of the key.
92 * Imports a key, or key pair, returning a key blob and/or a description of the key.
198 * Deletes the key, or key pair, associated with the key blob. After calling this function it
/hardware/interfaces/drm/1.0/
DIDrmPluginListener.hal37 * @param data event-specific data blob
DIDrmPlugin.hal58 * getKeyRequest() is used to obtain an opaque key request blob that is
85 * @return request if successful, the opaque key request blob is returned
174 * is used to obtain an opaque provisioning request blob that is delivered
185 * @return request if successful the opaque certificate request blob
513 * @param data event-specific data blob
/hardware/interfaces/wifi/1.0/
DIWifiChip.hal281 * @param blob Vector of bytes retrieved from the driver.
283 requestDriverDebugDump() generates (WifiStatus status, vec<uint8_t> blob);
294 * @param blob Vector of bytes retrieved from the driver.
296 requestFirmwareDebugDump() generates (WifiStatus status, vec<uint8_t> blob);
/hardware/interfaces/camera/device/3.2/
Dtypes.hal515 * Transport header for camera blob types; generally compressed JPEG buffers in
523 * this structure inside the output stream buffer. The camera blob ID field must