/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_base_check.c | 250 { true, g_rsaKeySize, HKS_ARRAY_SIZE(g_rsaKeySize) }, 251 { true, g_rsaPadding, HKS_ARRAY_SIZE(g_rsaPadding) }, 253 { true, g_rsaDigest, HKS_ARRAY_SIZE(g_rsaDigest) }, 258 { true, g_rsaKeySize, HKS_ARRAY_SIZE(g_rsaKeySize) }, 259 { true, g_rsaPadding, HKS_ARRAY_SIZE(g_rsaPadding) }, 261 { true, g_rsaDigest, HKS_ARRAY_SIZE(g_rsaDigest) }, 282 { true, g_aesKeySize, HKS_ARRAY_SIZE(g_aesKeySize) }, 283 { true, g_aesPadding, HKS_ARRAY_SIZE(g_aesPadding) }, 286 { true, g_aesMode, HKS_ARRAY_SIZE(g_aesMode) } 291 { true, g_aesPadding, HKS_ARRAY_SIZE(g_aesPadding) }, [all …]
|
D | hks_tags_type_manager.c | 30 *listSize = HKS_ARRAY_SIZE(HKS_ALG_PARAMS_TAG); in HksGetAlgTagsList() 36 *listSize = HKS_ARRAY_SIZE(HKS_KEY_FILE_TAGS); in HksGetKeyFileTagsList()
|
D | hks_check_paramset.c | 339 ret = CheckAndGetAlgorithm(paramSet, g_genKeyAlg, HKS_ARRAY_SIZE(g_genKeyAlg), &alg); in CoreCheckGenKeyParams() 391 ret = HksCheckValue(algorithmSuite->uint32Param, g_unwrapSuite, HKS_ARRAY_SIZE(g_unwrapSuite)); in CheckAndGetWrappedKeyUnwrapAlgSuite() 740 ret = CheckAndGetAlgorithm(paramSet, g_importKeyAlg, HKS_ARRAY_SIZE(g_importKeyAlg), &alg); in HksCoreCheckImportKeyParams() 786 ret = CheckAndGetAlgorithm(paramSet, g_importKeyAlg, HKS_ARRAY_SIZE(g_importKeyAlg), &alg); in HksCoreCheckImportWrappedKeyParams() 798 int32_t ret = CheckAndGetAlgorithm(paramSet, g_signAlg, HKS_ARRAY_SIZE(g_signAlg), &alg); in HksCoreCheckSignVerifyParams() 834 int32_t ret = CheckAndGetAlgorithm(paramSet, g_signAlg, HKS_ARRAY_SIZE(g_signAlg), &alg); in HksLocalCheckSignVerifyParams() 867 … ret = CheckAndGetAlgorithm(paramSet, g_agreeAlgLocal, HKS_ARRAY_SIZE(g_agreeAlgLocal), &alg); in HksCoreCheckAgreeKeyParams() 869 ret = CheckAndGetAlgorithm(paramSet, g_agreeAlg, HKS_ARRAY_SIZE(g_agreeAlg), &alg); in HksCoreCheckAgreeKeyParams() 908 int32_t ret = CheckAndGetAlgorithm(paramSet, g_cipherAlg, HKS_ARRAY_SIZE(g_cipherAlg), &alg); in HksCoreCheckCipherParams() 936 …int32_t ret = CheckAndGetAlgorithm(paramSet, g_cipherAlgLocal, HKS_ARRAY_SIZE(g_cipherAlgLocal), &… in HksLocalCheckCipherParams() [all …]
|
D | hks_check_trust_list.c | 24 uint32_t listSize = HKS_ARRAY_SIZE(g_trustList); in HksCheckIsInTrustList()
|
D | hks_crypto_adapter.c | 278 return BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatKeyInner() 364 return BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatCurve25519Key() 402 return BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatAesOrHmacKey()
|
D | hks_param.c | 140 uint32_t tagSize = HKS_ARRAY_SIZE(g_validTags); in IsValidTag()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_auth.c | 44 { HKS_AUTH_ID_SYM_CIPHER, HKS_ARRAY_SIZE(g_symCipherPolicyTag), g_symCipherPolicyTag }, 45 { HKS_AUTH_ID_ASYM_CIPHER, HKS_ARRAY_SIZE(g_asymCipherPolicyTag), g_asymCipherPolicyTag }, 46 …{ HKS_AUTH_ID_SIGN_VERIFY_RSA, HKS_ARRAY_SIZE(g_signVerifyRsaPolicyTag), g_signVerifyRsaPolicyTag … 47 …{ HKS_AUTH_ID_SIGN_VERIFY_ECC, HKS_ARRAY_SIZE(g_signVerifyEccPolicyTag), g_signVerifyEccPolicyTag … 48 …{ HKS_AUTH_ID_SIGN_VERIFY_ED25519, HKS_ARRAY_SIZE(g_signVerifyEd25519PolicyTag), g_signVerifyEd255… 49 { HKS_AUTH_ID_MAC_HMAC, HKS_ARRAY_SIZE(g_macPolicyTag), g_macPolicyTag }, 50 { HKS_AUTH_ID_MAC_SM3, HKS_ARRAY_SIZE(g_macSm3PolicyTag), g_macSm3PolicyTag }, 51 { HKS_AUTH_ID_DERIVE, HKS_ARRAY_SIZE(g_derivePolicyTag), g_derivePolicyTag }, 52 { HKS_AUTH_ID_AGREE, HKS_ARRAY_SIZE(g_agreePolicyTag), g_agreePolicyTag } 169 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(g_authPolicyList); i++) { in HksAuth() [all …]
|
D | hks_upgrade_key.c | 149 uint32_t funcArraySize = HKS_ARRAY_SIZE(HKS_ADD_MANDATORY_FUNC_LIST); in AddMandatoryParamsInCore()
|
D | hks_keynode.c | 56 ret = HksCheckIsTagAlreadyExist(params, HKS_ARRAY_SIZE(params), inParamSet); in BuildRuntimeParamSet()
|
D | hks_sm_import_wrap_key.c | 142 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(accessTagList); ++i) { in AddDecryptKeyParamSetFromUnwrapSuite() 562 ret = HksCheckValue(alg->uint32Param, g_validCipher, HKS_ARRAY_SIZE(g_validCipher)); in CheckAlgAndGetSuit()
|
D | hks_core_service.c | 518 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(transferTagList); ++i) { in AddProcessIdentityInfoToParamSet() 1455 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreInitHandler); in HksCoreInit() 1530 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreUpdateHandler); in HksCoreUpdate() 1581 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreFinishHandler); in HksCoreFinish() 1640 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreAbortHandler); in HksCoreAbort()
|
D | hks_keyblob.c | 330 int32_t ret = HksCheckIsTagAlreadyExist(tmpParam, HKS_ARRAY_SIZE(tmpParam), paramSet); in AddCoreServiceParams()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/upgrade_key_test/src/ |
D | hks_upgrade_key_test.cpp | 245 …int32_t ret = TestGenerateOldkey(&keyAliasTest001, GEN_AES_PARAMS, HKS_ARRAY_SIZE(GEN_AES_PARAMS)); 252 struct HksBlob plainBlob = { .size = HKS_ARRAY_SIZE(plainText), .data = plainText}; 253 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; 255 …ret = TestDoEncrypt(&keyAliasTest001, ENCYPT_AES_PARAMS, HKS_ARRAY_SIZE(ENCYPT_AES_PARAMS), &plain… 260 uint8_t decryptedText[HKS_ARRAY_SIZE(plainText) + 1] = { 0 }; 261 struct HksBlob decryptedBlob = { .size = HKS_ARRAY_SIZE(decryptedText), .data = decryptedText}; 263 ret = TestDoDecrypt(&keyAliasTest001, DECRYPT_AES_PARAMS, HKS_ARRAY_SIZE(DECRYPT_AES_PARAMS), 268 ret = HksMemCmp(decryptedText, plainText, HKS_ARRAY_SIZE(plainText));
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/ |
D | hks_compatibility_test.cpp | 174 struct HksBlob plainBlob = { .size = HKS_ARRAY_SIZE(plainText), .data = plainText}; 175 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; 271 struct HksBlob plainBlob = { .size = HKS_ARRAY_SIZE(plainText), .data = plainText}; 272 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; 279 uint8_t decryptedText[HKS_ARRAY_SIZE(plainText) + 1] = { 0 }; 280 struct HksBlob decryptedBlob = { .size = HKS_ARRAY_SIZE(decryptedText), .data = decryptedText}; 287 ret = HksMemCmp(decryptedText, plainText, HKS_ARRAY_SIZE(plainText)); 418 struct HksBlob plainBlob = { .size = HKS_ARRAY_SIZE(plainText), .data = plainText}; 419 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText};
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
D | hks_keyblob_test.cpp | 97 …struct HksParam keyParam = { .tag = HKS_TAG_KEY, .blob = { .size = HKS_ARRAY_SIZE(blobArray), .dat… 159 .blob = { .size = HKS_ARRAY_SIZE(keyBlobData), .data = (uint8_t *)keyBlobData } }; 197 .blob = { .size = HKS_ARRAY_SIZE(keyBlobData), .data = (uint8_t *)keyBlobData } };
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_access_control_secure_sign_test.cpp | 233 .inputParamSize = HKS_ARRAY_SIZE(g_genRsaWithSignAuthParams), 240 .inputParamSize = HKS_ARRAY_SIZE(g_genEd25519WithSignAuthParams), 248 .inputParamSize = HKS_ARRAY_SIZE(g_genDsaWithSignAuthParams), 723 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_signParamsTestRsa); in BuildUpdateFinishParams() 729 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_signParamsTestEd25519); in BuildUpdateFinishParams() 735 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_signParamsTestDsa); in BuildUpdateFinishParams() 759 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_verifyParamsTestRsa); in BuildUpdateFinishVerifyParams() 765 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_verifyParamsTestEd25519); in BuildUpdateFinishVerifyParams() 771 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_verifyParamsTestDsa); in BuildUpdateFinishVerifyParams()
|
D | hks_chipset_platform_encrypt_test.cpp | 271 int32_t ret = InitParamSet(&genParamSet.s, genParams, HKS_ARRAY_SIZE(genParams)); in GenerateTmpKeyPairAndExportPublicKey() 304 int32_t ret = InitParamSet(&agreeParamSet.s, agreeParams, HKS_ARRAY_SIZE(agreeParams)); in AgreeSharedKey() 350 EXPECT_EQ(InitParamSet(&hmacParamSet.s, hmacParams, HKS_ARRAY_SIZE(hmacParams)), HKS_SUCCESS); in HmacWrapKey() 396 ret = InitParamSet(&encryptParamSet.s, encryptParams, HKS_ARRAY_SIZE(encryptParams)); in AesGcmEncrypt()
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/module_test/src/ |
D | hks_compatibility_module_test.cpp | 314 struct HksBlob plainBlob = { .size = HKS_ARRAY_SIZE(plainText), .data = plainText}; 315 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; 322 uint8_t decryptedText[HKS_ARRAY_SIZE(plainText) + 1] = { 0 }; 323 struct HksBlob decryptedBlob = { .size = HKS_ARRAY_SIZE(decryptedText), .data = decryptedText};
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
D | hks_client_service_ipc.c | 618 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientInit() 645 int32_t ret = HksParamsToParamSet(updateParams, HKS_ARRAY_SIZE(updateParams), &sendParamSet); in HksClientUpdate() 679 int32_t ret = HksParamsToParamSet(finishParams, HKS_ARRAY_SIZE(finishParams), &sendParamSet); in HksClientFinish() 708 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientAbort() 738 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientExportChipsetPlatformPublicKey()
|
/base/security/huks/interfaces/kits/napi/src/ |
D | huks_napi.cpp | 692 napi_property_descriptor desc[HKS_ARRAY_SIZE(NAPI_FUNC_DESC) + HKS_ARRAY_SIZE(propDesc)]; in HuksNapiRegister() 694 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(NAPI_FUNC_DESC); ++i) { in HuksNapiRegister() 698 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(propDesc); ++i) { in HuksNapiRegister() 699 desc[HKS_ARRAY_SIZE(NAPI_FUNC_DESC) + i] = propDesc[i]; in HuksNapiRegister()
|
/base/security/huks/interfaces/kits/liteapi/src/ |
D | hks_lite_api_common.cpp | 417 JSI::CallFunction(callback, thisVal, params, HKS_ARRAY_SIZE(params)); in HksCallbackResultFailure() 425 JSI::CallFunction(callback, thisVal, params, HKS_ARRAY_SIZE(params)); in HksCallbackResultSuccess()
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
D | hks_ipc_service.c | 671 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceInit() 719 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceUpdOrFin() 778 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceAbort() 821 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceExportChipsetPlatformPublicKey()
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_type.h | 64 #define HKS_ARRAY_SIZE(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) macro
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_client_service.c | 451 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(userAuthTypes); ++i) { in CheckIfUserIamSupportCurType()
|