/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_base_check.c | 246 { true, g_rsaKeySize, HKS_ARRAY_SIZE(g_rsaKeySize) }, 247 { true, g_rsaPadding, HKS_ARRAY_SIZE(g_rsaPadding) }, 249 { true, g_rsaDigest, HKS_ARRAY_SIZE(g_rsaDigest) }, 254 { true, g_rsaKeySize, HKS_ARRAY_SIZE(g_rsaKeySize) }, 255 { true, g_rsaPadding, HKS_ARRAY_SIZE(g_rsaPadding) }, 257 { true, g_rsaDigest, HKS_ARRAY_SIZE(g_rsaDigest) }, 278 { true, g_aesKeySize, HKS_ARRAY_SIZE(g_aesKeySize) }, 279 { true, g_aesPadding, HKS_ARRAY_SIZE(g_aesPadding) }, 282 { true, g_aesMode, HKS_ARRAY_SIZE(g_aesMode) } 287 { true, g_aesPadding, HKS_ARRAY_SIZE(g_aesPadding) }, [all …]
|
D | hks_check_paramset.c | 320 ret = CheckAndGetAlgorithm(paramSet, g_genKeyAlg, HKS_ARRAY_SIZE(g_genKeyAlg), &alg); in CoreCheckGenKeyParams() 372 ret = HksCheckValue(algorithmSuite->uint32Param, g_unwrapSuite, HKS_ARRAY_SIZE(g_unwrapSuite)); in CheckAndGetWrappedKeyUnwrapAlgSuite() 721 ret = CheckAndGetAlgorithm(paramSet, g_importKeyAlg, HKS_ARRAY_SIZE(g_importKeyAlg), &alg); in HksCoreCheckImportKeyParams() 766 ret = CheckAndGetAlgorithm(paramSet, g_importKeyAlg, HKS_ARRAY_SIZE(g_importKeyAlg), &alg); in HksCoreCheckImportWrappedKeyParams() 778 int32_t ret = CheckAndGetAlgorithm(paramSet, g_signAlg, HKS_ARRAY_SIZE(g_signAlg), &alg); in HksCoreCheckSignVerifyParams() 814 int32_t ret = CheckAndGetAlgorithm(paramSet, g_signAlg, HKS_ARRAY_SIZE(g_signAlg), &alg); in HksLocalCheckSignVerifyParams() 847 … ret = CheckAndGetAlgorithm(paramSet, g_agreeAlgLocal, HKS_ARRAY_SIZE(g_agreeAlgLocal), &alg); in HksCoreCheckAgreeKeyParams() 849 ret = CheckAndGetAlgorithm(paramSet, g_agreeAlg, HKS_ARRAY_SIZE(g_agreeAlg), &alg); in HksCoreCheckAgreeKeyParams() 888 int32_t ret = CheckAndGetAlgorithm(paramSet, g_cipherAlg, HKS_ARRAY_SIZE(g_cipherAlg), &alg); in HksCoreCheckCipherParams() 916 …int32_t ret = CheckAndGetAlgorithm(paramSet, g_cipherAlgLocal, HKS_ARRAY_SIZE(g_cipherAlgLocal), &… in HksLocalCheckCipherParams() [all …]
|
D | hks_crypto_adapter.c | 347 return BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatCurve25519Key() 385 return BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatAesKey() 419 int32_t ret = BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatRsaKey() 435 return BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatHmacKey() 474 int32_t ret = BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatDsaKey() 511 int32_t ret = BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatEccKey() 548 int32_t ret = BuildParamSetOut(params, HKS_ARRAY_SIZE(params), paramSetOut); in FormatDhKey()
|
D | hks_param.c | 136 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 | 43 { HKS_AUTH_ID_SYM_CIPHER, HKS_ARRAY_SIZE(g_symCipherPolicyTag), g_symCipherPolicyTag }, 44 { HKS_AUTH_ID_ASYM_CIPHER, HKS_ARRAY_SIZE(g_asymCipherPolicyTag), g_asymCipherPolicyTag }, 45 …{ HKS_AUTH_ID_SIGN_VERIFY_RSA, HKS_ARRAY_SIZE(g_signVerifyRsaPolicyTag), g_signVerifyRsaPolicyTag … 46 …{ HKS_AUTH_ID_SIGN_VERIFY_ECC, HKS_ARRAY_SIZE(g_signVerifyEccPolicyTag), g_signVerifyEccPolicyTag … 47 …{ HKS_AUTH_ID_SIGN_VERIFY_ED25519, HKS_ARRAY_SIZE(g_signVerifyEd25519PolicyTag), g_signVerifyEd255… 48 { HKS_AUTH_ID_MAC_HMAC, HKS_ARRAY_SIZE(g_macPolicyTag), g_macPolicyTag }, 49 { HKS_AUTH_ID_MAC_SM3, HKS_ARRAY_SIZE(g_macSm3PolicyTag), g_macSm3PolicyTag }, 50 { HKS_AUTH_ID_DERIVE, HKS_ARRAY_SIZE(g_derivePolicyTag), g_derivePolicyTag }, 51 { HKS_AUTH_ID_AGREE, HKS_ARRAY_SIZE(g_agreePolicyTag), g_agreePolicyTag } 156 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(g_authPolicyList); i++) { in HksAuth() [all …]
|
D | hks_keynode.c | 56 ret = HksCheckIsTagAlreadyExist(params, HKS_ARRAY_SIZE(params), inParamSet); in BuildRuntimeParamSet()
|
D | hks_core_service.c | 495 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(transferTagList); ++i) { in AddProcessIdentityInfoToParamSet() 1407 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreInitHandler); in HksCoreInit() 1482 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreUpdateHandler); in HksCoreUpdate() 1533 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreFinishHandler); in HksCoreFinish() 1592 uint32_t size = HKS_ARRAY_SIZE(g_hksCoreAbortHandler); in HksCoreAbort()
|
D | hks_keyblob.c | 311 int32_t ret = HksCheckIsTagAlreadyExist(tmpParam, HKS_ARRAY_SIZE(tmpParam), paramSet); in AddCoreServiceParams()
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_access_control_secure_sign_test.cpp | 224 .inputParamSize = HKS_ARRAY_SIZE(g_genRsaWithSignAuthParams), 231 .inputParamSize = HKS_ARRAY_SIZE(g_genEd25519WithSignAuthParams), 239 .inputParamSize = HKS_ARRAY_SIZE(g_genDsaWithSignAuthParams), 714 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_signParamsTestRsa); in BuildUpdateFinishParams() 720 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_signParamsTestEd25519); in BuildUpdateFinishParams() 726 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_signParamsTestDsa); in BuildUpdateFinishParams() 750 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_verifyParamsTestRsa); in BuildUpdateFinishVerifyParams() 756 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_verifyParamsTestEd25519); in BuildUpdateFinishVerifyParams() 762 updateFinishParams->inputParamSize = HKS_ARRAY_SIZE(g_verifyParamsTestDsa); in BuildUpdateFinishVerifyParams()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
D | hks_client_service_ipc.c | 592 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientInit() 620 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientUpdate() 654 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientFinish() 683 int32_t ret = HksParamsToParamSet(params, HKS_ARRAY_SIZE(params), &sendParamSet); in HksClientAbort()
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
D | hks_ipc_service.c | 672 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceInit() 719 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceUpdate() 759 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceFinish() 802 ret = HksParamSetToParams(paramSet, params, HKS_ARRAY_SIZE(params)); in HksIpcServiceAbort()
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_upgrade_storage_data.c | 180 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(g_rootKeyMaterialFile); ++i) { in UpgradeRootKeyMaterialFile()
|
D | hks_client_service.c | 477 for (uint32_t i = 0; i < HKS_ARRAY_SIZE(userAuthTypes); ++i) { in CheckIfUserIamSupportCurType()
|
/base/security/huks/interfaces/innerkits/huks_standard/main/include/ |
D | hks_type.h | 56 #define HKS_ARRAY_SIZE(arr) ((sizeof(arr)) / (sizeof((arr)[0]))) macro
|