Home
last modified time | relevance | path

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

1234

/test/xts/acts/security/huks/huks_napi_BasicTest/include/
Dhuks_mem.h33 #define HUKS_FREE_BLOB(blob) \ argument
35 if ((blob).data != nullptr) { \
36 HksFree((blob).data); \
37 (blob).data = nullptr; \
39 (blob).size = 0; \
Dhuks_agree_dh_test.h59 {.tag = OH_HUKS_TAG_KEY_ALIAS, .blob = g_keyAliasFinal1001},
75 {.tag = OH_HUKS_TAG_KEY_ALIAS, .blob = g_keyAliasFinal2001},
Dhuks_three_stage_test_common.h59 OH_Huks_Result MallocAndCheckBlobData(struct OH_Huks_Blob *blob, const uint32_t blobSize);
/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/asset/asset_ndk/entry/src/main/cpp/
Dhello.cpp48 {.tag = ASSET_TAG_SECRET, .value.blob = secret}, in Asset_Add()
49 {.tag = ASSET_TAG_ALIAS, .value.blob = alias}, in Asset_Add()
81 {.tag = ASSET_TAG_SECRET, .value.blob = secret}, in Asset_AddCE()
82 {.tag = ASSET_TAG_ALIAS, .value.blob = alias}, in Asset_AddCE()
88 {.tag = ASSET_TAG_ALIAS, .value.blob = alias}, in Asset_AddCE()
96 …if (memcmp(secret->value.blob.data, reinterpret_cast<uint8_t *>(secretBuffer), secret->value.blob.… in Asset_AddCE()
135 {.tag = ASSET_TAG_SECRET, .value.blob = secret}, in Asset_Add_Auth()
136 {.tag = ASSET_TAG_ALIAS, .value.blob = alias}, in Asset_Add_Auth()
137 {.tag = ASSET_TAG_DATA_LABEL_NORMAL_1, .value.blob = label}, in Asset_Add_Auth()
155 {.tag = ASSET_TAG_AUTH_CHALLENGE, .value.blob = challenge}, in AssetPreAndPostQuerySuccess()
[all …]
/test/xts/tools/sample/AppSampleF/
DREADME_zh.md7 …cs/blob/OpenHarmony-4.0-Beta1/zh-cn/application-dev/reference/apis/js-apis-image.md),[@ohos.multim…
46 + 接口参考:[@ohos.worker](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/referenc…
47 ,[@ohos.multimedia.camera](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/ref…
48 ,[@ohos.multimedia.image](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/refe…
49 ,[@ohos.events.emitter](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/refere…
53 #### 允许使用相机服务:[ohos.permission.CAMERA](https://gitee.com/openharmony/docs/blob/master/zh-cn/applica…
57 …enharmony-tpc/zxing),[参考如何安装ohpm包](https://gitee.com/openharmony-tpc/docs/blob/master/OpenHarmony_…
/test/xts/acts/security/huks/huks_napi_BasicTest/src/
Dhuks_attest_test.cpp53 {.tag = OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO, .blob = g_secInfo},
54 {.tag = OH_HUKS_TAG_ATTESTATION_CHALLENGE, .blob = g_challenge},
55 {.tag = OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO, .blob = g_version},
56 {.tag = OH_HUKS_TAG_ATTESTATION_ID_ALIAS, .blob = g_keyAlias},
Dhuks_attest_test_common.cpp166 ret |= strcmp(SEC_INFO_DATA, (char *)paramSet->params[g_index0].blob.data); in ValidataAndCompareCertInfo()
167 ret |= strcmp(CHALLENGE_DATA, (char *)paramSet->params[g_index1].blob.data); in ValidataAndCompareCertInfo()
168 ret |= strcmp(VERSION_DATA, (char *)paramSet->params[g_index2].blob.data); in ValidataAndCompareCertInfo()
169 ret |= strcmp(ALIAS, (char *)paramSet->params[g_index3].blob.data); in ValidataAndCompareCertInfo()
173 ret |= strcmp(UDID_DATA, (char *)paramSet->params[g_index4].blob.data); in ValidataAndCompareCertInfo()
174 ret |= strcmp(SN_DATA, (char *)paramSet->params[g_index5].blob.data); in ValidataAndCompareCertInfo()
175 ret |= strcmp(DEVICE_ID, (char *)paramSet->params[g_index6].blob.data); in ValidataAndCompareCertInfo()
Dhuks_derive_pbkdf_test.cpp54 {.tag = OH_HUKS_TAG_SALT, .blob = {sizeof(g_saltgen), (uint8_t *)g_saltgen}},
62 {.tag = OH_HUKS_TAG_SALT, .blob = {sizeof(g_saltgen), (uint8_t *)g_saltgen}},
68 ….blob = {strlen("HksPBKDF2DeriveKeyAliasTest001_2"), (uint8_t *)"HksPBKDF2DeriveKeyAliasTest001_2"…
Dhuks_cipher_aes_test.cpp58 {.tag = OH_HUKS_TAG_IV, .blob = {.size = IV_SIZE, .data = (uint8_t *)IV}},
67 {.tag = OH_HUKS_TAG_IV, .blob = {.size = IV_SIZE, .data = (uint8_t *)IV}},
84 {.tag = OH_HUKS_TAG_IV, .blob = {.size = IV_SIZE, .data = (uint8_t *)IV}},
93 {.tag = OH_HUKS_TAG_IV, .blob = {.size = IV_SIZE, .data = (uint8_t *)IV}},
Dhuks_cipher_sm4_test.cpp64 {.tag = OH_HUKS_TAG_IV, .blob = {.size = HKS_SM4_IV_SIZE, .data = (uint8_t *)g_hksSm4TestIv}},
73 {.tag = OH_HUKS_TAG_IV, .blob = {.size = HKS_SM4_IV_SIZE, .data = (uint8_t *)g_hksSm4TestIv}},
Dhuks_warpped_test.cpp85 ….blob = {.size = Unittest::ImportWrapped::AAD_SIZE, .data = (uint8_t *)Unittest::ImportWrapped::AA…
87 ….blob = {.size = Unittest::ImportWrapped::NONCE_SIZE, .data = (uint8_t *)Unittest::ImportWrapped::…
117 ….blob = {.size = Unittest::ImportWrapped::IV_SIZE, .data = (uint8_t *)Unittest::ImportWrapped::IV}…
Dhuks_misc_test.cpp219 struct OH_Huks_Blob blob; variable
220 ASSERT_EQ(sizeof(blob.size) == sizeof(uint32_t), true);
221 ASSERT_EQ(sizeof(blob.data) == sizeof(uint8_t *), true);
229 ASSERT_EQ(sizeof(param.blob) == sizeof(struct OH_Huks_Blob), true);
Dhuks_agree_ecdh_test.cpp73 {.tag = OH_HUKS_TAG_KEY_ALIAS, .blob = g_keyAliasFinal1001},
89 {.tag = OH_HUKS_TAG_KEY_ALIAS, .blob = g_keyAliasFinal2001},
/test/xts/acts/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/ohosTest/ets/workers/
Dnewworker_038.js22 let blob = new buffer.Blob(['a', 'b', 'c']);
23 let pro = blob.arrayBuffer();
/test/xts/acts/security/huks/huks_ndk_Test/entry/src/main/cpp/
Dutils.cpp91 {.tag = OH_HUKS_TAG_ASSOCIATED_DATA, .blob = {.size = AAD_SIZE, .data = (uint8_t*)AAD}},
92 {.tag = OH_HUKS_TAG_NONCE, .blob = {.size = NONCE_SIZE, .data = (uint8_t*)NONCE}},
112 … {.tag = OH_HUKS_TAG_IV, .blob = {.size = WRAPPED_KEY_IV_SIZE, .data = (uint8_t*)WRAPPED_KEY_IV}},
126 {.tag = OH_HUKS_TAG_ASSOCIATED_DATA, .blob = {.size = AAD_SIZE, .data = (uint8_t*)AAD}},
127 {.tag = OH_HUKS_TAG_NONCE, .blob = {.size = NONCE_SIZE, .data = (uint8_t*)NONCE}},
136 {.tag = OH_HUKS_TAG_IV, .blob = {.size = IV_SIZE, .data = (uint8_t*)IV}},
163 OH_Huks_Result MallocAndCheckBlobData(struct OH_Huks_Blob* blob, const uint32_t blobSize) in MallocAndCheckBlobData() argument
168 blob->data = (uint8_t*)malloc(blobSize); in MallocAndCheckBlobData()
170 if (blob->data == NULL) { in MallocAndCheckBlobData()
178 #define HUKS_FREE_BLOB(blob) \ argument
[all …]
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/types/libnnrtndk/
Doh-package.json519 …"description": "Function list of https://gitee.com/openharmony/interface_sdk_c/blob/master/ai/neur…
/test/xts/acts/arkcompiler/esmodule/esmodule_dynamicimport/Sharelibraryhsp/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
/test/xts/acts/customization/enterprise_device_management/edm_xts_stage/entry/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
/test/xts/acts/arkcompiler/esmodule/esmodule_dynamicimport/hspdephar/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
/test/xts/acts/arkcompiler/esmodule/esmodule_dynamicimport/entry/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
/test/xts/acts/arkcompiler/arkts_module_test/napi_load/harTwo/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
/test/xts/acts/commonlibrary/ets_utils/arkts_ason_lib_standard/entry/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
/test/xts/acts/telephony/telephonyjstest/netmanager_base/network_netmanager/network_netmanagerndk/entry/
Dobfuscation-rules.txt5 # https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md

1234