Home
last modified time | relevance | path

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

12

/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_mem.h33 #define HUKS_FREE_BLOB(blob) do { \ argument
34 if ((blob).data != nullptr) { \
35 HksFree((blob).data); \
36 (blob).data = nullptr; \
38 (blob).size = 0; \
Dhuks_agree_dh_test.h92 .blob = g_keyAliasFinal1001
134 .blob = g_keyAliasFinal2001
Dhuks_three_stage_test_common.h72 struct OH_Huks_Blob *blob,
/test/xts/acts/security_lite/huks/common/
Dhks_test_common.c41 int32_t TestConstuctBlob(struct HksBlob **blob, bool blobExist, uint32_t blobSize, bool blobDataExi… in TestConstuctBlob() argument
48 *blob = (struct HksBlob *)HksTestMalloc(sizeof(struct HksBlob)); in TestConstuctBlob()
49 if (*blob == NULL) { in TestConstuctBlob()
52 (void)memset_s(*blob, sizeof(struct HksBlob), 0, sizeof(struct HksBlob)); in TestConstuctBlob()
55 (*blob)->size = realBlobDataSize; in TestConstuctBlob()
56 (*blob)->data = (uint8_t *)HksTestMalloc(realBlobDataSize); in TestConstuctBlob()
57 if ((*blob)->data == NULL) { in TestConstuctBlob()
60 (void)memset_s((*blob)->data, realBlobDataSize, 0, realBlobDataSize); in TestConstuctBlob()
71 …HKS_TEST_ASSERT(memcpy_s((*blob)->data + offset, realBlobDataSize - offset, tmp.data, tmp.size) ==… in TestConstuctBlob()
84 HKS_TEST_ASSERT(memcpy_s((*blob)->data + offset, remainSize, tmp.data, tmp.size) == EOK); in TestConstuctBlob()
[all …]
Dhks_test_aes.c95 aadParam.blob.data = g_aad; in ConstructParamSetEncryptDecryptAesPost()
96 aadParam.blob.size = sizeof(g_aad); in ConstructParamSetEncryptDecryptAesPost()
106 ivParam.blob.data = g_iv; in ConstructParamSetEncryptDecryptAesPost()
107 ivParam.blob.size = sizeof(g_iv); in ConstructParamSetEncryptDecryptAesPost()
116 nonceParam.blob.data = g_nonce; in ConstructParamSetEncryptDecryptAesPost()
117 nonceParam.blob.size = sizeof(g_nonce); in ConstructParamSetEncryptDecryptAesPost()
166 .blob = authId }, in GenerateBaseKey()
203 .blob = *baseKey }, in PlainPubKey()
205 .blob = *peerPubKey }, in PlainPubKey()
232 .blob = *baseKey }, in SetKeyAliasTrue()
[all …]
/test/xts/acts/security/huks_napi_BasicTest/src/
Dhuks_attest_test.cpp59 { .tag = OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO, .blob = g_secInfo },
60 { .tag = OH_HUKS_TAG_ATTESTATION_CHALLENGE, .blob = g_challenge },
61 { .tag = OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO, .blob = g_version },
62 { .tag = OH_HUKS_TAG_ATTESTATION_ID_ALIAS, .blob = g_keyAlias },
Dhuks_attest_test_common.cpp164 ret |= strcmp(SEC_INFO_DATA, (char *)paramSet->params[g_index0].blob.data); in ValidataAndCompareCertInfo()
165 ret |= strcmp(CHALLENGE_DATA, (char *)paramSet->params[g_index1].blob.data); in ValidataAndCompareCertInfo()
166 ret |= strcmp(VERSION_DATA, (char *)paramSet->params[g_index2].blob.data); in ValidataAndCompareCertInfo()
167 ret |= strcmp(ALIAS, (char *)paramSet->params[g_index3].blob.data); in ValidataAndCompareCertInfo()
171 ret |= strcmp(UDID_DATA, (char *)paramSet->params[g_index4].blob.data); in ValidataAndCompareCertInfo()
172 ret |= strcmp(SN_DATA, (char *)paramSet->params[g_index5].blob.data); in ValidataAndCompareCertInfo()
173 ret |= strcmp(DEVICE_ID, (char *)paramSet->params[g_index6].blob.data); in ValidataAndCompareCertInfo()
Dhuks_derive_pbkdf_test.cpp73 .blob = {
97 .blob = {
112 .blob = {
Dhuks_cipher_aes_test.cpp89 .blob = {
116 .blob = {
162 .blob = {
189 .blob = {
Dhuks_cipher_sm4_test.cpp90 .blob = {
115 .blob = {
Dhuks_warpped_test.cpp98 …{.tag = OH_HUKS_TAG_ASSOCIATED_DATA, .blob = {.size = Unittest::ImportWrapped::AAD_SIZE, .data = (…
99 …{.tag = OH_HUKS_TAG_NONCE, .blob = {.size = Unittest::ImportWrapped::NONCE_SIZE, .data = (uint8_t …
126 …{.tag = OH_HUKS_TAG_IV, .blob = {.size = Unittest::ImportWrapped::IV_SIZE, .data = (uint8_t *)Unit…
Dhuks_misc_test.cpp227 struct OH_Huks_Blob blob; variable
228 ASSERT_EQ(sizeof(blob.size) == sizeof(uint32_t), true);
229 ASSERT_EQ(sizeof(blob.data) == sizeof(uint8_t *), true);
237 ASSERT_EQ(sizeof(param.blob) == sizeof(struct OH_Huks_Blob), true);
Dhuks_agree_ecdh_test.cpp120 .blob = g_keyAliasFinal1001
162 .blob = g_keyAliasFinal2001
Dhuks_wrapped_test_common.cpp31 …{.tag = OH_HUKS_TAG_ASSOCIATED_DATA, .blob = {.size = Unittest::ImportWrapped::AAD_SIZE, .data = (…
32 …{.tag = OH_HUKS_TAG_NONCE, .blob = {.size = Unittest::ImportWrapped::NONCE_SIZE, .data = (uint8_t …
41 …{.tag = OH_HUKS_TAG_IV, .blob = {.size = Unittest::ImportWrapped::IV_SIZE, .data = (uint8_t *)Unit…
Dhuks_derive_hkdf_test.cpp86 .blob = {
Dhuks_agree_x25519_test.cpp110 .tag = OH_HUKS_TAG_KEY_ALIAS, .blob = g_keyAliasFinal1001
150 .tag = OH_HUKS_TAG_KEY_ALIAS, .blob = g_keyAliasFinal2001
Dhuks_cipher_aes_test_common.cpp144 (void)memcpy_s(decryptParamSet->params[i].blob.data, AEAD_SIZE, in HksAesCipherTestCaseGcm2()
Dhuks_three_stage_test_common.cpp311 struct OH_Huks_Blob *blob, in MallocAndCheckBlobData() argument
317 blob->data = (uint8_t *)HksMalloc(blobSize); in MallocAndCheckBlobData()
318 if (blob->data == NULL) in MallocAndCheckBlobData()
/test/xts/acts/commonlibrary/ets_utils/buffer_lib_standard/src/main/js/test/
DBuffer.test.js1987 let blob = new buffer.Blob([blob2]);
1988 blob.text().then((value) => {
2000 let blob = new buffer.Blob(["a", "b", "c"], 10);
2014 let blob = new buffer.Blob("abc", { type: "new type", endings: "transparent" });
2057 let blob = blob2.slice(0, 1);
2058 blob.arrayBuffer().then((value) => {
3677 let blob = new buffer.Blob(["a", "b", "c"]);
3678 let size = blob.size;
3687 let blob = new buffer.Blob([]);
3688 let size = blob.size;
[all …]
/test/testfwk/xdevice/
DREADME_zh.md220 [测试子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E6%B5%8B%E8%AF%95%E5%AD%90%E7%…
224 [test\_developertest](https://gitee.com/openharmony/test_developertest/blob/master/README_zh.md)
/test/testfwk/developer_test/
DREADME_zh.md8 …- [源码获取](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acqui…
387 [Fuzz用例编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/fuzzlib/README_zh.md)
392 [Benchmark用例编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/benchmark/READM…
639 [Fuzz编译文件编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/fuzzlib/README_zh.…
643 [Benchmark编译文件编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/benchmark/REA…
883 [test\_xdevice](https://gitee.com/openharmony/test_xdevice/blob/master/README_zh.md)
/test/testfwk/arkxtest/
DREADME_zh.md1048 …e.com/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts)及[示例文档说明](https://gitee.com/o…
1073 …e.com/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts)及[示例文档说明](https://gitee.com/o…
1127 …e.com/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts)及[示例文档说明](https://gitee.com/o…
1173 …e.com/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts)及[示例文档说明](https://gitee.com/o…
1206 …随版本编译,需手动处理,请参考[3.1-Release版本使用指导](https://gitee.com/openharmony/arkXtest/blob/OpenHarmony-3.1-Rel…
DREADME_en.md924 …om/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts) and [UiDriver](https://gitee.co…
949 …e.com/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts) and [By](https://gitee.com/o…
1003 …/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts) and [UiComponent](https://gitee.c…
1049 …om/openharmony/interface_sdk-js/blob/master/api/@ohos.uitest.d.ts) and [UiWindow](https://gitee.co…
1082 …, see [Pushing UiTest to a Device](https://gitee.com/openharmony/arkXtest/blob/OpenHarmony-3.1-Rel…
/test/xts/acts/security_lite/huks/common/include/
Dhks_test_common.h385 int32_t TestConstuctBlob(struct HksBlob **blob,
421 int32_t TestConstructBlobOut(struct HksBlob **blob,
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/test/
DrelationalStoreTestResultsetEtsunit.test.ets19 …ER PRIMARY KEY AUTOINCREMENT, ' + 'data1 text,' + 'data2 long, ' + 'data3 double,' + 'data4 blob)';

12