/hardware/interfaces/identity/aidl/vts/ |
D | VtsAttestationParserSupport.h | 76 keymaster_blob_t blob; in getHwEnforcedBlob() local 77 if (att_hw_enforced_.GetTagValue(tag, &blob)) { in getHwEnforcedBlob() 81 vector<uint8_t> ret(blob.data, blob.data + blob.data_length); in getHwEnforcedBlob() 87 keymaster_blob_t blob; in getSwEnforcedBlob() local 88 if (!att_sw_enforced_.GetTagValue(tag, &blob)) { in getSwEnforcedBlob() 92 vector<uint8_t> ret(blob.data, blob.data + blob.data_length); in getSwEnforcedBlob() 102 X509* parseCertBlob(const keymaster_blob_t& blob);
|
D | VtsAttestationParserSupport.cpp | 105 X509* AttestationCertificateParser::parseCertBlob(const keymaster_blob_t& blob) { in parseCertBlob() argument 106 const uint8_t* p = blob.data; in parseCertBlob() 107 return d2i_X509(nullptr, &p, blob.data_length); in parseCertBlob()
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | UnlockedDeviceRequiredTest.cpp | 40 EXPECT_EQ(ErrorCode::OK, UseAesKey(aesKeyData.blob)); in TEST_P() 41 EXPECT_EQ(ErrorCode::OK, UseHmacKey(hmacKeyData.blob)); in TEST_P() 42 EXPECT_EQ(ErrorCode::OK, UseRsaKey(rsaKeyData.blob)); in TEST_P() 43 EXPECT_EQ(ErrorCode::OK, UseEcdsaKey(ecdsaKeyData.blob)); in TEST_P() 50 EXPECT_EQ(ErrorCode::DEVICE_LOCKED, UseAesKey(aesKeyData.blob)); in TEST_P() 51 EXPECT_EQ(ErrorCode::DEVICE_LOCKED, UseHmacKey(hmacKeyData.blob)); in TEST_P() 52 EXPECT_EQ(ErrorCode::DEVICE_LOCKED, UseRsaKey(rsaKeyData.blob)); in TEST_P() 53 EXPECT_EQ(ErrorCode::DEVICE_LOCKED, UseEcdsaKey(ecdsaKeyData.blob)); in TEST_P()
|
D | EarlyBootKeyTest.cpp | 58 EXPECT_EQ(ErrorCode::OK, UseAesKey(aesKeyData.blob)); in TEST_P() 59 EXPECT_EQ(ErrorCode::OK, UseHmacKey(hmacKeyData.blob)); in TEST_P() 60 EXPECT_EQ(ErrorCode::OK, UseRsaKey(rsaKeyData.blob)); in TEST_P() 61 EXPECT_EQ(ErrorCode::OK, UseEcdsaKey(ecdsaKeyData.blob)); in TEST_P() 69 EXPECT_EQ(ErrorCode::EARLY_BOOT_ENDED, UseAesKey(aesKeyData.blob)); in TEST_P() 70 EXPECT_EQ(ErrorCode::EARLY_BOOT_ENDED, UseHmacKey(hmacKeyData.blob)); in TEST_P() 71 EXPECT_EQ(ErrorCode::EARLY_BOOT_ENDED, UseRsaKey(rsaKeyData.blob)); in TEST_P() 72 EXPECT_EQ(ErrorCode::EARLY_BOOT_ENDED, UseEcdsaKey(ecdsaKeyData.blob)); in TEST_P()
|
D | Keymaster4_1HidlTest.h | 39 HidlBuf blob; member 46 super::GenerateKey(keyDescription, &keyData.blob, &keyData.characteristics)); in GenerateKeyData() 50 void CheckedDeleteKeyData(KeyData* keyData) { CheckedDeleteKey(&keyData->blob); } in CheckedDeleteKeyData()
|
/hardware/libhardware/include/hardware/ |
D | keymaster_defs.h | 328 keymaster_blob_t blob; /* KM_BIGNUM and KM_BYTES*/ member 539 param.blob.data = (uint8_t*)bytes; in keymaster_param_blob() 540 param.blob.data_length = bytes_len; in keymaster_param_blob() 586 if (a->blob.data_length != 0 && b->blob.data_length == 0) in keymaster_param_compare() 588 if (a->blob.data_length == 0 && b->blob.data_length == 0) in keymaster_param_compare() 590 if (a->blob.data_length == 0 && b->blob.data_length > 0) in keymaster_param_compare() 593 retval = memcmp(a->blob.data, b->blob.data, a->blob.data_length < b->blob.data_length in keymaster_param_compare() 594 ? a->blob.data_length in keymaster_param_compare() 595 : b->blob.data_length); in keymaster_param_compare() 598 else if (a->blob.data_length != b->blob.data_length) { in keymaster_param_compare() [all …]
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | authorization_set.cpp | 54 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 …]
|
D | key_param_output.cpp | 109 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 <<()
|
/hardware/interfaces/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/ |
D | ComposerCommandBuffer.h | 98 size_t metadataSize = metadataBlob.blob.size() / sizeof(uint32_t); in setLayerPerFrameMetadataBlobs() 101 (metadataBlob.blob.size() - (metadataSize * sizeof(uint32_t)) > 0) ? 1 : 0; in setLayerPerFrameMetadataBlobs() 116 write(static_cast<uint32_t>(metadataBlob.blob.size())); in setLayerPerFrameMetadataBlobs() 117 writeBlob(static_cast<uint32_t>(metadataBlob.blob.size()), metadataBlob.blob.data()); in setLayerPerFrameMetadataBlobs() 128 void writeBlob(uint32_t length, const unsigned char* blob) { in writeBlob() argument 129 memcpy(&mData[mDataWritten], blob, length); in writeBlob()
|
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/ |
D | keymaster_tags.h | 205 MAKE_TAG_VALUE_ACCESSOR(TagType::BYTES, blob) in MAKE_TAG_VALUE_ACCESSOR() argument 206 MAKE_TAG_VALUE_ACCESSOR(TagType::BIGNUM, blob) in MAKE_TAG_VALUE_ACCESSOR() 384 if (a.blob.size() == 0) return b.blob.size() != 0; 385 if (b.blob.size() == 0) return false; 387 retval = memcmp(&a.blob[0], &b.blob[0], std::min(a.blob.size(), b.blob.size())); 389 if (retval == 0) return a.blob.size() < b.blob.size(); 416 if (a.blob.size() != b.blob.size()) return false; 417 return a.blob.size() == 0 || memcmp(&a.blob[0], &b.blob[0], a.blob.size()) == 0;
|
D | keymaster_utils.h | 49 inline static hidl_vec<uint8_t> blob2hidlVec(const std::vector<uint8_t>& blob) { in blob2hidlVec() argument 50 hidl_vec<uint8_t> result(blob.data(), blob.data() + static_cast<size_t>(blob.size())); in blob2hidlVec()
|
/hardware/interfaces/keymaster/4.0/support/ |
D | authorization_set.cpp | 48 if (a.blob.size() == 0) return b.blob.size() != 0; in keyParamLess() 49 if (b.blob.size() == 0) return false; in keyParamLess() 51 retval = memcmp(&a.blob[0], &b.blob[0], std::min(a.blob.size(), b.blob.size())); in keyParamLess() 53 if (retval == 0) return a.blob.size() < b.blob.size(); in keyParamLess() 80 if (a.blob.size() != b.blob.size()) return false; in keyParamEqual() 81 return a.blob.size() == 0 || memcmp(&a.blob[0], &b.blob[0], a.blob.size()) == 0; in keyParamEqual() 209 OutStreams& serializeParamValue(OutStreams& out, const hidl_vec<uint8_t>& blob) { in serializeParamValue() argument 213 auto blob_length = blob.size(); in serializeParamValue() 232 if (blob_length) out.indirect.write(reinterpret_cast<const char*>(&blob[0]), blob_length); in serializeParamValue() 335 InStreams& deserializeParamValue(InStreams& in, hidl_vec<uint8_t>* blob) { in deserializeParamValue() argument [all …]
|
D | key_param_output.cpp | 81 for (size_t i = 0; i < param.blob.size(); ++i) { in operator <<() 82 os << std::hex << ::std::setw(2) << static_cast<int>(param.blob[i]) << ::std::dec; in operator <<() 87 for (size_t i = 0; i < param.blob.size(); ++i) { in operator <<() 88 os << ::std::hex << ::std::setw(2) << static_cast<int>(param.blob[i]) << ::std::dec; in operator <<()
|
/hardware/google/av/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/ |
D | types.h | 230 const hidl_vec<uint8_t> &blob); 241 hidl_vec<uint8_t> *blob, 244 hidl_vec<uint8_t> *blob, 247 hidl_vec<uint8_t> *blob, 250 hidl_vec<uint8_t> *blob, 263 Params blob); 274 const Params& blob);
|
/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ |
D | ComposerCommandEngine.h | 95 metadataBlob.blob.resize(blobSize); in executeSetLayerPerFrameMetadataBlobs() 96 readBlob(blobSize, metadataBlob.blob.data()); in executeSetLayerPerFrameMetadataBlobs() 105 void readBlob(uint32_t size, void* blob) { in readBlob() argument 106 memcpy(blob, &mData[mDataRead], size); in readBlob()
|
/hardware/qcom/sm8150/display/libhistogram/ |
D | histogram_collector.cpp | 200 drmModePropertyBlobPtr blob = drmModeGetPropertyBlob(work.fd, work.id); in blob_processing_thread() local 201 if (!blob) { in blob_processing_thread() 205 histogram->insert(*static_cast<struct drm_msm_hist*>(blob->data)); in blob_processing_thread() 206 drmModeFreePropertyBlob(blob); in blob_processing_thread()
|
/hardware/google/av/codec2/vndk/include/util/ |
D | C2ParamUtils.h | 38 C2Param *ParseFirst(const uint8_t *blob, size_t size);
|
/hardware/google/av/media/sfplugin/tests/ |
D | ReflectedParamUpdater_test.cpp | 58 uint8_t blob[8]; member 67 C2FIELD(blob, "blob") 276 EXPECT_EQ(0, memcmp("\0\0\0\0\0\0\0\0", CastParam<C2CompositeInfo>(params[0])->m.blob, 8)); in TEST_F() 284 EXPECT_EQ(0, memcmp("buffer08", CastParam<C2CompositeInfo>(params[0])->m.blob, 8)); in TEST_F() 286 hexdump(CastParam<C2CompositeInfo>(params[0])->m.blob, 8, 0, &hex); in TEST_F() 297 EXPECT_EQ(0, memcmp("buf05\0\0\0", CastParam<C2CompositeInfo>(params[0])->m.blob, 8)); in TEST_F() 306 EXPECT_EQ(0, memcmp("ReallyLo", CastParam<C2CompositeInfo>(params[0])->m.blob, 8)); in TEST_F()
|
/hardware/google/av/codec2/hidl/1.0/utils/ |
D | types.cpp | 1415 c2_status_t parseParamsBlob(std::vector<C2Param*> *params, const hidl_vec<uint8_t> &blob) { in parseParamsBlob() argument 1417 size_t size = blob.size(); in parseParamsBlob() 1419 const uint8_t *data = blob.data(); in parseParamsBlob() 1445 Status _createParamsBlob(hidl_vec<uint8_t> *blob, const T ¶ms) { in _createParamsBlob() argument 1455 blob->resize(size); in _createParamsBlob() 1466 &(*blob)[ix]); in _createParamsBlob() 1470 blob->resize(ix); in _createParamsBlob() 1478 hidl_vec<uint8_t> *blob, in createParamsBlob() argument 1480 return _createParamsBlob(blob, params); in createParamsBlob() 1485 hidl_vec<uint8_t> *blob, in createParamsBlob() argument [all …]
|
/hardware/interfaces/keymaster/4.1/support/ |
D | Keymaster3.cpp | 46 converted.blob = param.blob; in convert() 55 converted.blob = param.blob; in convert() 88 converted[params.size()].blob = V4_0::support::authToken2HidlVec(authToken); in convertAndAddAuthToken()
|
/hardware/google/av/codec2/vndk/util/ |
D | C2ParamUtils.cpp | 197 C2Param *C2ParamUtils::ParseFirst(const uint8_t *blob, size_t size) { in ParseFirst() argument 203 C2Param *param = (C2Param*)blob; in ParseFirst()
|
/hardware/interfaces/broadcastradio/1.1/ |
D | IBroadcastRadio.hal | 34 * passing an image data blob in the MetadataType.RAW field, the HAL 60 * @return image A binary blob with image data
|
/hardware/interfaces/graphics/composer/2.3/ |
D | IComposerClient.hal | 74 * A set of PerFrameMetadataKey pertains specifically to blob-formatted 81 * Specifies a metadata blob adhering to 91 * of keys representing blob-formatted metadata 101 * This struct encapsulates blob 103 * associated with blob-type metadata key 104 * and the blob must adhere to the format specified by 109 vec<uint8_t> blob; 162 * associated layer. The metadata structure follows a {key, blob} 165 * be part of the list of keys associated with blob-type metadata 176 * for display output. The data blob is parsed to determine its format, [all …]
|
/hardware/interfaces/graphics/composer/2.3/utils/passthrough/include/composer-passthrough/2.3/ |
D | HwcHal.h | 255 sizes.push_back(metadataBlob.blob.size()); in setLayerPerFrameMetadataBlobs() 258 blobs.resize(blobs.size() + metadataBlob.blob.size()); in setLayerPerFrameMetadataBlobs() 259 memcpy(blobs.data() + writeIndex, metadataBlob.blob.data(), metadataBlob.blob.size()); in setLayerPerFrameMetadataBlobs()
|
/hardware/interfaces/gatekeeper/1.0/ |
D | types.hal | 41 /** optional crypto blob. Opaque to Android system. */
|