Home
last modified time | relevance | path

Searched refs:paramSet (Results 1 – 25 of 171) sorted by relevance

1234567

/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_param_test.cpp85 struct CmParamSet *paramSet = nullptr; variable
86 int32_t ret = CmInitParamSet(&paramSet);
89 ret = CmAddParams(paramSet, nullptr, 0);
92 CmFreeParamSet(&paramSet);
103 struct CmParamSet paramSet = { CM_PARAM_SET_MAX_SIZE + 1, 0 }; variable
107 int32_t ret = CmAddParams(&paramSet, param, sizeof(param) / sizeof(struct CmParam));
119 struct CmParamSet *paramSet = nullptr; variable
120 int32_t ret = CmInitParamSet(&paramSet);
126 ret = CmAddParams(paramSet, param, CM_DEFAULT_PARAM_CNT + 1);
129 CmFreeParamSet(&paramSet);
[all …]
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_param.c31 int32_t CmInitParamSet(struct CmParamSet **paramSet) in CmInitParamSet() argument
33 if (paramSet == NULL) { in CmInitParamSet()
38 *paramSet = (struct CmParamSet *)CmMalloc(CM_DEFAULT_PARAM_SET_SIZE); in CmInitParamSet()
39 if (*paramSet == NULL) { in CmInitParamSet()
43 (*paramSet)->paramsCnt = 0; in CmInitParamSet()
44 (*paramSet)->paramSetSize = sizeof(struct CmParamSet); in CmInitParamSet()
48 static int32_t CmCheckParamSet(const struct CmParamSet *paramSet, uint32_t size) in CmCheckParamSet() argument
50 if (paramSet == NULL) { in CmCheckParamSet()
55 (paramSet->paramSetSize != size) || in CmCheckParamSet()
56 (paramSet->paramsCnt > ((size - sizeof(struct CmParamSet)) / sizeof(struct CmParam)))) { in CmCheckParamSet()
[all …]
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_param.c145 HKS_API_EXPORT int32_t HksCheckParamSetTag(const struct HksParamSet *paramSet) in HksCheckParamSetTag() argument
147 HKS_IF_NULL_RETURN(paramSet, HKS_ERROR_NULL_POINTER) in HksCheckParamSetTag()
149 for (uint32_t i = 0; i < paramSet->paramsCnt; ++i) { in HksCheckParamSetTag()
150 uint32_t curTag = paramSet->params[i].tag; in HksCheckParamSetTag()
156 for (uint32_t j = i + 1; j < paramSet->paramsCnt; ++j) { in HksCheckParamSetTag()
157 if (curTag == paramSet->params[j].tag) { in HksCheckParamSetTag()
167 static int32_t CheckBeforeAddParams(const struct HksParamSet *paramSet, const struct HksParam *para… in CheckBeforeAddParams() argument
170 … if ((params == NULL) || (paramSet == NULL) || (paramSet->paramSetSize > HKS_PARAM_SET_MAX_SIZE) || in CheckBeforeAddParams()
171 …(paramCnt > HKS_DEFAULT_PARAM_CNT) || (paramSet->paramsCnt > (HKS_DEFAULT_PARAM_CNT - paramCnt))) { in CheckBeforeAddParams()
186 static int32_t BuildParamSet(struct HksParamSet **paramSet) in BuildParamSet() argument
[all …]
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/os_dependency/idl/ipc/src/
Dhuks_ipc_serialization_test.cpp64 struct HksParamSet *paramSet = nullptr; variable
65 int32_t ret = HksInitParamSet(&paramSet);
70 ret = HksAddParams(paramSet, &aliasParam, 1);
72 ret = HksBuildParamSet(&paramSet);
75 ret = HksParamSetToParams(paramSet, &aliasOutParam, 1);
77 HksFreeParamSet(&paramSet);
88 struct HksParamSet *paramSet = nullptr; variable
89 int32_t ret = HksInitParamSet(&paramSet);
94 ret = HksBuildParamSet(&paramSet);
96 ret = HksParamSetToParams(paramSet, &aliasOutParam, 1);
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_ca_access.c41 int32_t HksAccessSign(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessSign() argument
44 return HksTeeSign(key, paramSet, srcData, signature); in HksAccessSign()
47 int32_t HksAccessVerify(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessVerify() argument
50 return HksTeeVerify(key, paramSet, srcData, signature); in HksAccessVerify()
53 int32_t HksAccessEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessEncrypt() argument
56 return HksTeeEncrypt(key, paramSet, plainText, cipherText); in HksAccessEncrypt()
59 int32_t HksAccessDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessDecrypt() argument
62 return HksTeeDecrypt(key, paramSet, cipherText, plainText); in HksAccessDecrypt()
65 int32_t HksAccessGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random) in HksAccessGenerateRandom() argument
67 return HksTeeGenerateRandom(paramSet, random); in HksAccessGenerateRandom()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_session_max_test.cpp57 struct HksParamSet *paramSet = NULL; in GenerateBaseKey() local
58 ASSERT_TRUE(HksInitParamSet(&paramSet) == 0); in GenerateBaseKey()
71 ASSERT_TRUE(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in GenerateBaseKey()
72 ASSERT_TRUE(HksBuildParamSet(&paramSet) == 0); in GenerateBaseKey()
73 ASSERT_TRUE(HksGenerateKey(alias, paramSet, NULL) == 0); in GenerateBaseKey()
75 HksFreeParamSet(&paramSet); in GenerateBaseKey()
80 struct HksParamSet *paramSet = NULL; in ConstructInitParamSet() local
81 ASSERT_TRUE(HksInitParamSet(&paramSet) == 0); in ConstructInitParamSet()
92 ASSERT_TRUE(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in ConstructInitParamSet()
93 ASSERT_TRUE(HksBuildParamSet(&paramSet) == 0); in ConstructInitParamSet()
[all …]
Dhks_test_curve25519.c33 struct HksParamSet *paramSet = NULL; in TestGenerateEd25519Key() local
34 int32_t ret = HksInitParamSet(&paramSet); in TestGenerateEd25519Key()
39 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
44 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
49 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
54 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
59 ret = HksAddParams(paramSet, &paddingParam, 1); in TestGenerateEd25519Key()
61 ret = HksBuildParamSet(&paramSet); in TestGenerateEd25519Key()
63 ret = HksGenerateKey(&alias, paramSet, NULL); in TestGenerateEd25519Key()
65 HksFreeParamSet(&paramSet); in TestGenerateEd25519Key()
[all …]
Dhks_test_aes.c36 struct HksParamSet **paramSet) in ConstructParamSetEncryptDecryptAesPre() argument
38 int32_t ret = HksInitParamSet(paramSet); in ConstructParamSetEncryptDecryptAesPre()
48 ret = HksAddParams(*paramSet, (const struct HksParam *)&algParam, 1); in ConstructParamSetEncryptDecryptAesPre()
57 ret = HksAddParams(*paramSet, (const struct HksParam *)&modeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
66 ret = HksAddParams(*paramSet, (const struct HksParam *)&padParam, 1); in ConstructParamSetEncryptDecryptAesPre()
79 ret = HksAddParams(*paramSet, (const struct HksParam *)&purposeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
88 static int32_t ConstructParamSetEncryptDecryptAesPost(uint32_t mode, struct HksParamSet **paramSet) in ConstructParamSetEncryptDecryptAesPost() argument
96 ret = HksAddParams(*paramSet, (const struct HksParam *)&aadParam, 1); in ConstructParamSetEncryptDecryptAesPost()
107 ret = HksAddParams(*paramSet, (const struct HksParam *)&ivParam, 1); in ConstructParamSetEncryptDecryptAesPost()
117 ret = HksAddParams(*paramSet, (const struct HksParam *)&nonceParam, 1); in ConstructParamSetEncryptDecryptAesPost()
[all …]
/base/security/huks/interfaces/innerkits/huks_standard/main/src/
Dhks_api.c132 const struct HksParamSet *paramSet, const struct HksBlob *key) in HksImportKey() argument
136 if ((keyAlias == NULL) || (paramSet == NULL) || (key == NULL)) { in HksImportKey()
139 int32_t ret = HksImportKeyAdapter(keyAlias, paramSet, key); in HksImportKey()
144 (void)paramSet; in HksImportKey()
151 const struct HksParamSet *paramSet, const struct HksBlob *wrappedKeyData) in HksImportWrappedKey() argument
155 …if ((keyAlias == NULL) || (wrappingKeyAlias == NULL)|| (paramSet == NULL) || (wrappedKeyData == NU… in HksImportWrappedKey()
159 int32_t ret = HksClientImportWrappedKey(keyAlias, wrappingKeyAlias, paramSet, wrappedKeyData); in HksImportWrappedKey()
166 (void)paramSet; in HksImportWrappedKey()
173 const struct HksParamSet *paramSet, struct HksBlob *key) in HksExportPublicKey() argument
180 int32_t ret = HksExportPublicKeyAdapter(keyAlias, paramSet, key); in HksExportPublicKey()
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_interfaces.c38 int32_t HuksHdiGenerateKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet, in HuksHdiGenerateKey() argument
41 return HksCoreGenerateKey(keyAlias, paramSet, keyIn, keyOut); in HuksHdiGenerateKey()
45 const struct HksParamSet *paramSet, struct HksBlob *keyOut) in HuksHdiImportKey() argument
47 return HksCoreImportKey(keyAlias, key, paramSet, keyOut); in HuksHdiImportKey()
51 … const struct HksBlob *wrappedKeyData, const struct HksParamSet *paramSet, struct HksBlob *keyOut) in HuksHdiImportWrappedKey() argument
53 return HksCoreImportWrappedKey(keyAlias, key, wrappedKeyData, paramSet, keyOut); in HuksHdiImportWrappedKey()
56 int32_t HuksHdiExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet, struc… in HuksHdiExportPublicKey() argument
58 return HksCoreExportPublicKey(key, paramSet, keyOut); in HuksHdiExportPublicKey()
61 int32_t HuksHdiInit(const struct HksBlob *key, const struct HksParamSet *paramSet, struct HksBlob … in HuksHdiInit() argument
64 return HksCoreInit(key, paramSet, handle, token); in HuksHdiInit()
[all …]
/base/security/huks/interfaces/kits/c/src/
Dnative_huks_param.c27 struct OH_Huks_Result OH_Huks_InitParamSet(struct OH_Huks_ParamSet **paramSet) in OH_Huks_InitParamSet() argument
29 int32_t result = HksInitParamSet((struct HksParamSet **) paramSet); in OH_Huks_InitParamSet()
33 struct OH_Huks_Result OH_Huks_AddParams(struct OH_Huks_ParamSet *paramSet, in OH_Huks_AddParams() argument
36 int32_t result = HksAddParams((struct HksParamSet *) paramSet, in OH_Huks_AddParams()
41 struct OH_Huks_Result OH_Huks_BuildParamSet(struct OH_Huks_ParamSet **paramSet) in OH_Huks_BuildParamSet() argument
43 int32_t result = HksBuildParamSet((struct HksParamSet **) paramSet); in OH_Huks_BuildParamSet()
47 void OH_Huks_FreeParamSet(struct OH_Huks_ParamSet **paramSet) in OH_Huks_FreeParamSet() argument
49 HksFreeParamSet((struct HksParamSet **) paramSet); in OH_Huks_FreeParamSet()
53 uint32_t fromParamSetSize, struct OH_Huks_ParamSet **paramSet) in OH_Huks_CopyParamSet() argument
56 fromParamSetSize, (struct HksParamSet **) paramSet); in OH_Huks_CopyParamSet()
[all …]
Dnative_huks_api.c43 const struct OH_Huks_ParamSet *paramSet, const struct OH_Huks_Blob *key) in OH_Huks_ImportKeyItem() argument
46 (const struct HksParamSet *) paramSet, (const struct HksBlob *) key); in OH_Huks_ImportKeyItem()
51 const struct OH_Huks_Blob *wrappingKeyAlias, const struct OH_Huks_ParamSet *paramSet, in OH_Huks_ImportWrappedKeyItem() argument
55 (const struct HksBlob *) wrappingKeyAlias, (const struct HksParamSet *) paramSet, in OH_Huks_ImportWrappedKeyItem()
61 const struct OH_Huks_ParamSet *paramSet, struct OH_Huks_Blob *key) in OH_Huks_ExportPublicKeyItem() argument
64 (const struct HksParamSet *) paramSet, (struct HksBlob *) key); in OH_Huks_ExportPublicKeyItem()
69 const struct OH_Huks_ParamSet *paramSet) in OH_Huks_DeleteKeyItem() argument
71 …_t result = HksDeleteKey((const struct HksBlob *) keyAlias, (const struct HksParamSet *) paramSet); in OH_Huks_DeleteKeyItem()
84 const struct OH_Huks_ParamSet *paramSet) in OH_Huks_IsKeyItemExist() argument
86 …2_t result = HksKeyExist((const struct HksBlob *) keyAlias, (const struct HksParamSet *) paramSet); in OH_Huks_IsKeyItemExist()
[all …]
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_attest_key_test_common.cpp75 struct HksParamSet *paramSet = nullptr; in TestGenerateKey() local
76 int32_t ret = HksInitParamSet(&paramSet); in TestGenerateKey()
82 ret = HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])); in TestGenerateKey()
85 HksFreeParamSet(&paramSet); in TestGenerateKey()
89 ret = HksBuildParamSet(&paramSet); in TestGenerateKey()
92 HksFreeParamSet(&paramSet); in TestGenerateKey()
96 ret = HksGenerateKey(keyAlias, paramSet, nullptr); in TestGenerateKey()
100 HksFreeParamSet(&paramSet); in TestGenerateKey()
145 int32_t GenerateParamSet(struct HksParamSet **paramSet, const struct HksParam tmpParams[], uint32_t… in GenerateParamSet() argument
147 int32_t ret = HksInitParamSet(paramSet); in GenerateParamSet()
[all …]
/base/security/huks/interfaces/innerkits/huks_standard/main/include/
Dhuks_hdi.h27 … int32_t (*HuksHdiGenerateKey)(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet,
31 const struct HksParamSet *paramSet, struct HksBlob *keyOut);
34 … const struct HksBlob *wrappedKeyData, const struct HksParamSet *paramSet, struct HksBlob *keyOut);
36 int32_t (*HuksHdiExportPublicKey)(const struct HksBlob *key, const struct HksParamSet *paramSet,
39 …int32_t (*HuksHdiInit)(const struct HksBlob *key, const struct HksParamSet *paramSet, struct HksBl…
42 int32_t (*HuksHdiUpdate)(const struct HksBlob *handle, const struct HksParamSet *paramSet,
45 int32_t (*HuksHdiFinish)(const struct HksBlob *handle, const struct HksParamSet *paramSet,
48 int32_t (*HuksHdiAbort)(const struct HksBlob *handle, const struct HksParamSet *paramSet);
50 … int32_t (*HuksHdiGetKeyProperties)(const struct HksParamSet *paramSet, const struct HksBlob *key);
52 int32_t (*HuksHdiAttestKey)(const struct HksBlob *key, const struct HksParamSet *paramSet,
[all …]
Dhks_api.h35 const struct HksParamSet *paramSet, const struct HksBlob *key);
38 const struct HksParamSet *paramSet, const struct HksBlob *wrappedKeyData);
41 const struct HksParamSet *paramSet, struct HksBlob *key);
43 …PI_EXPORT int32_t HksDeleteKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet);
48 …API_EXPORT int32_t HksKeyExist(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet);
50 HKS_API_EXPORT int32_t HksGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random…
52 HKS_API_EXPORT int32_t HksSign(const struct HksBlob *key, const struct HksParamSet *paramSet,
55 HKS_API_EXPORT int32_t HksVerify(const struct HksBlob *key, const struct HksParamSet *paramSet,
58 HKS_API_EXPORT int32_t HksEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet,
61 HKS_API_EXPORT int32_t HksDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet,
[all …]
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/
Dhks_client_ipc.h32 int32_t HksClientImportKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet,
35 int32_t HksClientExportPublicKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet,
39 const struct HksParamSet *paramSet, const struct HksBlob *wrappedKeyData);
41 int32_t HksClientDeleteKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet);
43 int32_t HksClientGetKeyParamSet(const struct HksBlob *keyAlias, struct HksParamSet *paramSet);
45 int32_t HksClientKeyExist(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet);
47 int32_t HksClientGenerateRandom(struct HksBlob *random, const struct HksParamSet *paramSet);
49 int32_t HksClientSign(const struct HksBlob *key, const struct HksParamSet *paramSet,
52 int32_t HksClientVerify(const struct HksBlob *key, const struct HksParamSet *paramSet,
55 int32_t HksClientEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet,
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_core_service_three_stage.h33 …CoreSignVerifyThreeStageInit(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
36 …reSignVerifyThreeStageUpdate(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
39 …reSignVerifyThreeStageFinish(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
42 …oreSignVerifyThreeStageAbort(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
45 … HksCoreCryptoThreeStageInit(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
48 …ksCoreCryptoThreeStageUpdate(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
51 …sCoreEncryptThreeStageFinish(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
54 …HksCoreCryptoThreeStageAbort(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
57 …sCoreDecryptThreeStageFinish(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
60 … HksCoreDeriveThreeStageInit(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
[all …]
Dhks_core_service.h31 int32_t HksCoreGenerateKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet,
34 int32_t HksCoreSign(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct Hks…
37 int32_t HksCoreVerify(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct H…
40 int32_t HksCoreEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct …
43 int32_t HksCoreDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct …
46 int32_t HksCoreGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random);
49 const struct HksParamSet *paramSet, struct HksBlob *keyOut);
51 int32_t HksCoreExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet, struc…
53 int32_t HksCoreAgreeKey(const struct HksParamSet *paramSet, const struct HksBlob *privateKey,
56 int32_t HksCoreDeriveKey(const struct HksParamSet *paramSet, const struct HksBlob *mainKey, struct …
[all …]
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_curve25519.c35 struct HksParamSet *paramSet = NULL; in TestGenerateEd25519Key() local
36 int32_t ret = HksInitParamSet(&paramSet); in TestGenerateEd25519Key()
41 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
46 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
51 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
56 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
61 ret = HksAddParams(paramSet, &paddingParam, 1); in TestGenerateEd25519Key()
63 ret = HksBuildParamSet(&paramSet); in TestGenerateEd25519Key()
65 ret = HksGenerateKey(&alias, paramSet, NULL); in TestGenerateEd25519Key()
67 HksFreeParamSet(&paramSet); in TestGenerateEd25519Key()
[all …]
Dhks_test_aes.c37 struct HksParamSet **paramSet) in ConstructParamSetEncryptDecryptAesPre() argument
39 int32_t ret = HksInitParamSet(paramSet); in ConstructParamSetEncryptDecryptAesPre()
49 ret = HksAddParams(*paramSet, (const struct HksParam *)&algParam, 1); in ConstructParamSetEncryptDecryptAesPre()
58 ret = HksAddParams(*paramSet, (const struct HksParam *)&modeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
67 ret = HksAddParams(*paramSet, (const struct HksParam *)&padParam, 1); in ConstructParamSetEncryptDecryptAesPre()
80 ret = HksAddParams(*paramSet, (const struct HksParam *)&purposeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
89 static int32_t ConstructParamSetEncryptDecryptAesPost(uint32_t mode, struct HksParamSet **paramSet) in ConstructParamSetEncryptDecryptAesPost() argument
97 ret = HksAddParams(*paramSet, (const struct HksParam *)&aadParam, 1); in ConstructParamSetEncryptDecryptAesPost()
108 ret = HksAddParams(*paramSet, (const struct HksParam *)&ivParam, 1); in ConstructParamSetEncryptDecryptAesPost()
118 ret = HksAddParams(*paramSet, (const struct HksParam *)&nonceParam, 1); in ConstructParamSetEncryptDecryptAesPost()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/core/include/
Dhuks_access.h34 const struct HksParamSet *paramSet, struct HksBlob *keyOut);
37 … const struct HksBlob *wrappedKeyData, const struct HksParamSet *paramSet, struct HksBlob *keyOut);
39 int32_t HuksAccessExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet,
42 int32_t HuksAccessInit(const struct HksBlob *key, const struct HksParamSet *paramSet, struct HksBl…
45 int32_t HuksAccessUpdate(const struct HksBlob *handle, const struct HksParamSet *paramSet,
48 int32_t HuksAccessFinish(const struct HksBlob *handle, const struct HksParamSet *paramSet,
51 int32_t HuksAccessAbort(const struct HksBlob *handle, const struct HksParamSet *paramSet);
53 int32_t HuksAccessGetKeyProperties(const struct HksParamSet *paramSet, const struct HksBlob *key);
59 int32_t HuksAccessCalcMacHeader(const struct HksParamSet *paramSet, const struct HksBlob *salt,
65 int32_t HuksAccessGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random);
[all …]
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_param.h58 struct OH_Huks_Result OH_Huks_InitParamSet(struct OH_Huks_ParamSet **paramSet);
71 struct OH_Huks_Result OH_Huks_AddParams(struct OH_Huks_ParamSet *paramSet,
83 struct OH_Huks_Result OH_Huks_BuildParamSet(struct OH_Huks_ParamSet **paramSet);
92 void OH_Huks_FreeParamSet(struct OH_Huks_ParamSet **paramSet);
106 uint32_t fromParamSetSize, struct OH_Huks_ParamSet **paramSet);
119 struct OH_Huks_Result OH_Huks_GetParam(const struct OH_Huks_ParamSet *paramSet, uint32_t tag,
134 struct OH_Huks_Result OH_Huks_FreshParamSet(struct OH_Huks_ParamSet *paramSet, bool isCopy);
145 struct OH_Huks_Result OH_Huks_IsParamSetTagValid(const struct OH_Huks_ParamSet *paramSet);
157 struct OH_Huks_Result OH_Huks_IsParamSetValid(const struct OH_Huks_ParamSet *paramSet, uint32_t siz…
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/
Dhuks_access.c66 const struct HksParamSet *paramSet, struct HksBlob *keyOut)) in ENABLE_CFI() argument
73 return g_hksHalDevicePtr->HuksHdiImportKey(keyAlias, key, paramSet, keyOut); in ENABLE_CFI()
77 … const struct HksBlob *wrappedKeyData, const struct HksParamSet *paramSet, struct HksBlob *keyOut)) in ENABLE_CFI() argument
84 …_hksHalDevicePtr->HuksHdiImportWrappedKey(wrappingKeyAlias, key, wrappedKeyData, paramSet, keyOut); in ENABLE_CFI()
87 …FI(int32_t HuksAccessExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() argument
95 return g_hksHalDevicePtr->HuksHdiExportPublicKey(key, paramSet, keyOut); in ENABLE_CFI()
98 ENABLE_CFI(int32_t HuksAccessInit(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() argument
106 return g_hksHalDevicePtr->HuksHdiInit(key, paramSet, handle, token); in ENABLE_CFI()
109 …ABLE_CFI(int32_t HuksAccessUpdate(const struct HksBlob *handle, const struct HksParamSet *paramSet, in ENABLE_CFI() argument
117 return g_hksHalDevicePtr->HuksHdiUpdate(handle, paramSet, inData, outData); in ENABLE_CFI()
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_key_operation.c61 struct HksParamSet *paramSet = NULL; in ConstructParamSet() local
62 int32_t ret = HksInitParamSet(&paramSet); in ConstructParamSet()
68 ret = HksAddParams(paramSet, params, paramCount); in ConstructParamSet()
71 HksFreeParamSet(&paramSet); in ConstructParamSet()
75 ret = HksBuildParamSet(&paramSet); in ConstructParamSet()
78 HksFreeParamSet(&paramSet); in ConstructParamSet()
82 *outParamSet = paramSet; in ConstructParamSet()
95 struct HksParamSet *paramSet = NULL; in CmKeyOpGenMacKey() local
97 &paramSet); in CmKeyOpGenMacKey()
104 ret = HksGenerateKey(&keyAlias, paramSet, NULL); in CmKeyOpGenMacKey()
[all …]
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_client_service_ipc.c79 int32_t HksClientImportKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet, in HksClientImportKey() argument
82 int32_t ret = HksCheckIpcImportKey(keyAlias, paramSet, key); in HksClientImportKey()
86 …inBlob.size = sizeof(keyAlias->size) + ALIGN_SIZE(keyAlias->size) + ALIGN_SIZE(paramSet->paramSetS… in HksClientImportKey()
92 ret = HksImportKeyPack(&inBlob, keyAlias, paramSet, key); in HksClientImportKey()
95 ret = HksSendRequest(HKS_MSG_IMPORT_KEY, &inBlob, NULL, paramSet); in HksClientImportKey()
102 int32_t HksClientExportPublicKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet, in HksClientExportPublicKey() argument
117 ret = HksSendRequest(HKS_MSG_EXPORT_PUBLIC_KEY, &inBlob, key, paramSet); in HksClientExportPublicKey()
125 const struct HksParamSet *paramSet, const struct HksBlob *wrappedKeyData) in HksClientImportWrappedKey() argument
127 int32_t ret = HksCheckIpcImportWrappedKey(keyAlias, wrappingKeyAlias, paramSet, wrappedKeyData); in HksClientImportWrappedKey()
133 ALIGN_SIZE(paramSet->paramSetSize) + in HksClientImportWrappedKey()
[all …]

1234567