Home
last modified time | relevance | path

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

/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_lite/huks_hal/src/
Dsecurity_data_huks_gen_del_test.c25 void HksStBlobInit1(struct hks_blob *blob, size_t nmemb, size_t size, uint8_t type) in HksStBlobInit1() argument
27 if (blob == NULL || nmemb == 0 || size == 0) { in HksStBlobInit1()
31 blob->data = (uint8_t *)calloc(nmemb, size); in HksStBlobInit1()
32 if (blob->data == NULL) { in HksStBlobInit1()
36 if (memset_s(blob->data, size, 0, size) != EOK) { in HksStBlobInit1()
39 blob->size = size; in HksStBlobInit1()
40 blob->type = type; in HksStBlobInit1()
42 void HksBlobDestroyT1(struct hks_blob *blob) in HksBlobDestroyT1() argument
44 if (blob == NULL) { in HksBlobDestroyT1()
47 if (blob && blob->data) { in HksBlobDestroyT1()
[all …]
Dsecurity_data_huks.h72 void HksStBlobInit1(struct hks_blob *blob, size_t nmemb, size_t size, uint8_t type);
74 void HksBlobDestroyT1(struct hks_blob *blob);
/test/xts/acts/security_lite/huks_posix/src/
DSecurityDataHuksGenDelTest.cpp208 void HksStBlobInit1(struct hks_blob *blob, size_t nmemb, size_t size, uint8_t type) in HksStBlobInit1() argument
210 if (blob == nullptr || nmemb == 0 || size == 0) { in HksStBlobInit1()
214 blob->data = (uint8_t *)calloc(nmemb, size); in HksStBlobInit1()
215 if (blob->data == NULL) { in HksStBlobInit1()
219 if (memset_s(blob->data, size, 0, size) != EOK) { in HksStBlobInit1()
223 blob->size = size; in HksStBlobInit1()
224 blob->type = type; in HksStBlobInit1()
227 void HksBlobDestroyT1(struct hks_blob *blob) in HksBlobDestroyT1() argument
229 if (blob == nullptr) { in HksBlobDestroyT1()
233 if (blob && blob->data) { in HksBlobDestroyT1()
[all …]
DSecurityDataHuks.h108 void HksStBlobInit1(struct hks_blob *blob, size_t nmemb, size_t size, uint8_t type);
110 void HksBlobDestroyT1(struct hks_blob *blob);
/test/developertest/
DREADME_zh.md8 …- [源码获取](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acqui…
379 [Fuzz用例编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/fuzzlib/README_zh.md)
384 [Benchmark用例编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/benchmark/READM…
629 [Fuzz编译文件编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/fuzzlib/README_zh.…
633 [Benchmark编译文件编写规范](https://gitee.com/openharmony/test_developertest/blob/master/libs/benchmark/REA…
863 [test\_xdevice](https://gitee.com/openharmony/test_xdevice/blob/master/README_zh.md)
DREADME.md359 [testing subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/testing-subsystem.md)
363 [test\_xdevice](https://gitee.com/openharmony/test_xdevice/blob/master/README.md)
/test/xdevice/
DREADME_zh.md221 [测试子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E6%B5%8B%E8%AF%95%E5%AD%90%E7%…
225 [test\_developertest](https://gitee.com/openharmony/test_developertest/blob/master/README_zh.md)
DREADME.md223 [testing subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/testing-subsystem.md)
227 [test\_developertest](https://gitee.com/openharmony/test_developertest/blob/master/README.md)
/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/developertest/libs/fuzzlib/
DREADME_zh.md39 参考[ 开发者测试组件](https://gitee.com/openharmony/test_developertest/blob/master/README_zh.md)中的描述完成测试框架安装…
/test/developertest/libs/benchmark/
DREADME_zh.md243 …benchmark还支持其他多种参数,具体介绍和使用参考[benchmark](https://gitee.com/openharmony/third_party_benchmark/blob/m…
/test/xts/tools/lite/
DREADME_zh.md525 [XTS认证子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/XTS%E8%AE%A4%E8%AF%81%E5%AD%…
527 [xts\_acts](https://gitee.com/openharmony/xts_acts/blob/master/README_zh.md)
DREADME.md525 [X Test Suite](https://gitee.com/openharmony/docs/blob/master/en/readme/x-test-suite.md)
527 [xts\_acts](https://gitee.com/openharmony/xts_acts/blob/master/README.md)