Searched refs:HKS_RKC_MK_LEN (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksrkc_fuzzer/ |
H A D | hksrkc_fuzzer.cpp | 36 … void TestGetMkFromOldKsfFile(const HksBlob *oldKsfBlob, const uint8_t mkPlaintext[HKS_RKC_MK_LEN]) in TestGetMkFromOldKsfFile() argument 43 uint8_t mk[HKS_RKC_MK_LEN] = { 0 }; in TestGetMkFromOldKsfFile() 44 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, mk }; in TestGetMkFromOldKsfFile() 47 HksMemCmp(mkPlaintext, tempMkBlob.data, HKS_RKC_MK_LEN); in TestGetMkFromOldKsfFile() 50 …d TestStoreNewKsfFile(HksBlob *rkcBlob, HksBlob *mkBlob, const uint8_t mkPlaintext[HKS_RKC_MK_LEN]) in TestStoreNewKsfFile() argument 60 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, (uint8_t *)mkPlaintext }; in TestStoreNewKsfFile() 70 const uint8_t mkPlaintext[HKS_RKC_MK_LEN]) in TestGetMkFromNewKsfFile() argument 80 uint8_t mk[HKS_RKC_MK_LEN] = { 0 }; in TestGetMkFromNewKsfFile() 81 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, mk }; in TestGetMkFromNewKsfFile() 84 HksMemCmp(mkPlaintext, tempMkBlob.data, HKS_RKC_MK_LEN); in TestGetMkFromNewKsfFile()
|
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_two/ |
H A D | hks_upgrade_rkc_test.cpp | 65 … void TestGetMkFromOldKsfFile(const HksBlob *oldKsfBlob, const uint8_t mkPlaintext[HKS_RKC_MK_LEN]) in TestGetMkFromOldKsfFile() argument 73 uint8_t mk[HKS_RKC_MK_LEN] = { 0 }; in TestGetMkFromOldKsfFile() 74 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, mk }; in TestGetMkFromOldKsfFile() 78 ASSERT_EQ(0, HksMemCmp(mkPlaintext, tempMkBlob.data, HKS_RKC_MK_LEN)); in TestGetMkFromOldKsfFile() 81 …d TestStoreNewKsfFile(HksBlob *rkcBlob, HksBlob *mkBlob, const uint8_t mkPlaintext[HKS_RKC_MK_LEN]) in TestStoreNewKsfFile() argument 92 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, (uint8_t *)mkPlaintext }; in TestStoreNewKsfFile() 106 const uint8_t mkPlaintext[HKS_RKC_MK_LEN]) in TestGetMkFromNewKsfFile() argument 118 uint8_t mk[HKS_RKC_MK_LEN] = { 0 }; in TestGetMkFromNewKsfFile() 119 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, mk }; in TestGetMkFromNewKsfFile() 123 ASSERT_EQ(0, HksMemCmp(mkPlaintext, tempMkBlob.data, HKS_RKC_MK_LEN)); in TestGetMkFromNewKsfFile()
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/include/ |
H A D | hks_rkc.h | 41 uint8_t mkMask[HKS_RKC_MK_LEN]; /* the mask of main key */ 51 uint8_t mkWithMask[HKS_RKC_MK_LEN]; /* the main key with mask */
|
H A D | hks_rkc_rw.h | 33 #define HKS_RKC_MK_LEN 32 /* the length of main key */ macro
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/ |
H A D | hks_rkc_v1.c | 254 uint8_t mk[HKS_RKC_MK_LEN] = {0}; in UpgradeV1ToV2() 255 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, mk }; in UpgradeV1ToV2() 301 (void)memset_s(mk, HKS_RKC_MK_LEN, 0, HKS_RKC_MK_LEN); in UpgradeV1ToV2()
|
H A D | hks_rkc.c | 294 struct HksBlob mkMaskBlob = { HKS_RKC_MK_LEN, g_hksRkcCfg.mkMask }; in RkcMaskMk() 298 for (uint32_t i = 0; i < HKS_RKC_MK_LEN; ++i) { in RkcMaskMk() 309 mk.data = (uint8_t *)HksMalloc(HKS_RKC_MK_LEN); in RkcMakeMk() 312 mk.size = HKS_RKC_MK_LEN; in RkcMakeMk() 428 struct HksBlob tempMkBlob = { HKS_RKC_MK_LEN, g_hksRkcMk.mkWithMask }; in RkcLoadKsf() 614 if (mainKey->size != HKS_RKC_MK_LEN) { in HksRkcGetMainKey() 620 for (uint32_t i = 0; i < HKS_RKC_MK_LEN; ++i) { in HksRkcGetMainKey()
|