Home
last modified time | relevance | path

Searched refs:HKS_ALG_ED25519 (Results 1 – 25 of 36) sorted by relevance

12

/base/security/huks/test/unittest/huks_standard_test/three_stage_test/include/
Dhks_ed25519_sign_verify_test.h78 .uint32Param = HKS_ALG_ED25519
93 .uint32Param = HKS_ALG_ED25519
108 .uint32Param = HKS_ALG_ED25519
124 .uint32Param = HKS_ALG_ED25519
139 .uint32Param = HKS_ALG_ED25519
154 .uint32Param = HKS_ALG_ED25519
169 .uint32Param = HKS_ALG_ED25519
184 .uint32Param = HKS_ALG_ED25519
200 .uint32Param = HKS_ALG_ED25519
215 .uint32Param = HKS_ALG_ED25519
[all …]
Dhks_cross_test.h252 .uint32Param = HKS_ALG_ED25519
267 .uint32Param = HKS_ALG_ED25519
282 .uint32Param = HKS_ALG_ED25519
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ability.c64 …(void)RegisterAbility(HKS_CRYPTO_ABILITY_GENERATE_KEY(HKS_ALG_ED25519), (void *)HksEd25519Generate… in RegisterAbilityGenerateKey()
86 …(void)RegisterAbility(HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(HKS_ALG_ED25519), (void *)HksGetEd25519Pub… in RegisterAbilityGetPublicKey()
105 (void)RegisterAbility(HKS_CRYPTO_ABILITY_SIGN(HKS_ALG_ED25519), (void *)HksEd25519Sign); in RegisterAbilitySign()
118 (void)RegisterAbility(HKS_CRYPTO_ABILITY_VERIFY(HKS_ALG_ED25519), (void *)HksEd25519Verify); in RegisterAbilityVerify()
167 …(void)RegisterAbility(HKS_CRYPTO_ABILITY_AGREE_KEY(HKS_ALG_ED25519), (void *)HksMbedtlsEd25519KeyA… in RegisterAbilityAgree()
Dhks_crypto_ed25519.c50 keyMaterial->keyAlg = HKS_ALG_ED25519; in SaveEd25519KeyMaterial()
Dhks_mbedtls_x25519.c802 ret = HksGetKeyFromMaterial(HKS_ALG_ED25519, false, nativeKey, &(key.rawNativeKey)); in HksMbedtlsEd25519KeyAgreement()
804 ret = HksGetKeyFromMaterial(HKS_ALG_ED25519, true, pubKey, &(key.rawPubKey)); in HksMbedtlsEd25519KeyAgreement()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_ability.c56 …(void)RegisterAbility(HKS_CRYPTO_ABILITY_GENERATE_KEY(HKS_ALG_ED25519), HksOpensslCurve25519Genera… in RegisterAbilityGenerateKey()
87 …(void)RegisterAbility(HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(HKS_ALG_ED25519), HksOpensslGetEd25519PubK… in RegisterAbilityGetPublicKey()
112 (void)RegisterAbility(HKS_CRYPTO_ABILITY_SIGN(HKS_ALG_ED25519), HksOpensslEd25519Sign); in RegisterAbilitySign()
131 (void)RegisterAbility(HKS_CRYPTO_ABILITY_VERIFY(HKS_ALG_ED25519), HksOpensslEd25519Verify); in RegisterAbilityVerify()
206 (void)RegisterAbility(HKS_CRYPTO_ABILITY_AGREE_KEY(HKS_ALG_ED25519), HksOpensslEd25519AgreeKey); in RegisterAbilityAgree()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_curve25519.c38 algParam.uint32Param = HKS_ALG_ED25519; in TestGenerateEd25519Key()
78 algParam.uint32Param = HKS_ALG_ED25519; in TestSignEd25519()
118 algParam.uint32Param = HKS_ALG_ED25519; in TestVerifyEd25519()
159 algParam.uint32Param = HKS_ALG_ED25519; in TestImportEd25519()
246 algParam.uint32Param = HKS_ALG_ED25519; in BuildTeeSignParamSet()
280 algParam.uint32Param = HKS_ALG_ED25519; in BuildLocalVerifyParamSet()
363 algParam.uint32Param = HKS_ALG_ED25519; in TestSignEd25519Wrong()
417 algParam.uint32Param = HKS_ALG_ED25519; in TestVerifyEd25519Wrong()
Dhks_test_aes.c155 .uint32Param = HKS_ALG_ED25519 }, in GenerateBaseKey()
208 .uint32Param = HKS_ALG_ED25519 }, in PlainPubKey()
237 .uint32Param = HKS_ALG_ED25519 }, in SetKeyAliasTrue()
264 .uint32Param = HKS_ALG_ED25519 }, in SetKeyAliasWrong()
307 .uint32Param = HKS_ALG_ED25519 }, in ImportPubKey()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_curve25519.c40 algParam.uint32Param = HKS_ALG_ED25519; in TestGenerateEd25519Key()
80 algParam.uint32Param = HKS_ALG_ED25519; in TestSignEd25519()
120 algParam.uint32Param = HKS_ALG_ED25519; in TestVerifyEd25519()
161 algParam.uint32Param = HKS_ALG_ED25519; in TestImportEd25519()
250 algParam.uint32Param = HKS_ALG_ED25519; in BuildTeeSignParamSet()
284 algParam.uint32Param = HKS_ALG_ED25519; in BuildLocalVerifyParamSet()
365 algParam.uint32Param = HKS_ALG_ED25519; in TestSignEd25519Wrong()
420 algParam.uint32Param = HKS_ALG_ED25519; in TestVerifyEd25519Wrong()
Dhks_test_aes.c156 .uint32Param = HKS_ALG_ED25519 }, in GenerateBaseKey()
209 .uint32Param = HKS_ALG_ED25519 }, in PlainPubKey()
238 .uint32Param = HKS_ALG_ED25519 }, in SetKeyAliasTrue()
265 .uint32Param = HKS_ALG_ED25519 }, in SetKeyAliasWrong()
309 .uint32Param = HKS_ALG_ED25519 }, in ImportPubKey()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_import_sign_verify_test.cpp377 …dataBlob.data = (alg == HKS_ALG_ED25519) ? (uint8_t *)g_ed25519PriData : (uint8_t *)g_x25519PriDat… in CopyToInner()
378 … dataBlob.size = (alg == HKS_ALG_ED25519) ? sizeof(g_ed25519PriData) : sizeof(g_x25519PriData); in CopyToInner()
380 …dataBlob.data = (alg == HKS_ALG_ED25519) ? (uint8_t *)g_ed25519PubData : (uint8_t *)g_x25519PubDat… in CopyToInner()
381 … dataBlob.size = (alg == HKS_ALG_ED25519) ? sizeof(g_ed25519PubData) : sizeof(g_x25519PubData); in CopyToInner()
395 …privKeyBlob.data = (alg == HKS_ALG_ED25519) ? (uint8_t *)g_ed25519PriData : (uint8_t *)g_x25519Pri… in ConstructImportedCurve25519Key()
396 … privKeyBlob.size = (alg == HKS_ALG_ED25519) ? sizeof(g_ed25519PriData) : sizeof(g_x25519PriData); in ConstructImportedCurve25519Key()
397 …pubKeyBlob.data = (alg == HKS_ALG_ED25519) ? (uint8_t *)g_ed25519PubData : (uint8_t *)g_x25519PubD… in ConstructImportedCurve25519Key()
398 pubKeyBlob.size = (alg == HKS_ALG_ED25519) ? sizeof(g_ed25519PubData) : sizeof(g_x25519PubData); in ConstructImportedCurve25519Key()
731 if (alg == HKS_ALG_ED25519 || alg == HKS_ALG_X25519) { in ConstructImportedKey()
955 ImportPlainKeyTest(HKS_ALG_ED25519, HKS_CURVE25519_KEY_SIZE_256, HKS_DIGEST_SHA256);
Dhks_access_control_secure_sign_test.cpp165 .uint32Param = HKS_ALG_ED25519
328 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
349 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
423 .uint32Param = HKS_ALG_ED25519
439 .uint32Param = HKS_ALG_ED25519
674 case HKS_ALG_ED25519: { in BuildImportKeyTestParams()
687 … ret = ConstructEd25519KeyPair(HKS_CURVE25519_KEY_SIZE_256, HKS_ALG_ED25519, &ed25519PubData, in BuildImportKeyTestParams()
718 case HKS_ALG_ED25519: { in BuildUpdateFinishParams()
754 case HKS_ALG_ED25519: { in BuildUpdateFinishVerifyParams()
Dhks_check_auth_part_test.cpp229 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
240 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
298 algParam->uint32Param == HKS_ALG_X25519 || algParam->uint32Param == HKS_ALG_ED25519 || in getParamSetAuthTest()
Dhks_export_test.cpp179 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
Dhks_import_key_test.cpp584 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
597 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_ED25519 },
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c63 HKS_ALG_ED25519,
99 HKS_ALG_ED25519,
141 HKS_ALG_ED25519,
340 case HKS_ALG_ED25519: in CheckImportKeySize()
644 case HKS_ALG_ED25519: in CheckKeyLen()
676 case HKS_ALG_ED25519: in CheckMutableParams()
855 if (alg == HKS_ALG_ED25519) { in HksCoreCheckAgreeKeyParams()
867 } else if (alg == HKS_ALG_ED25519) { in HksCoreCheckAgreeKeyParams()
Dhks_crypto_adapter.c235 struct KeyMaterial25519 curve25519Km = {HKS_ALG_ED25519, 0, 0, 0, 0}; in SetCurve25519KeyMaterial()
559 case HKS_ALG_ED25519: in HksSetKeyToMaterial()
585 case HKS_ALG_ED25519: in HksGetKeyFromMaterial()
598 case HKS_ALG_ED25519: in HksFormatKeyFromMaterial()
Dhks_base_check.c611 HKS_ALG_ED25519,
889 case HKS_ALG_ED25519: in InitInputParamsByAlg()
955 case HKS_ALG_ED25519: in GetExpectParams()
1461 case HKS_ALG_ED25519: in HksGetKeySize()
1627 if (((alg == HKS_ALG_SM2) || (alg == HKS_ALG_DSA) || (alg == HKS_ALG_ED25519)) && in CheckImportMutableParams()
1687 case HKS_ALG_ED25519: in HksCheckSignature()
1886 if ((alg == HKS_ALG_ED25519) || (digest == HKS_DIGEST_NONE)) { in HksCheckNeedCache()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_common.c105 case HKS_ALG_ED25519: in GetHksPubKeyInnerFormat()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_keyblob_lite.c219 keyMaterial->keyAlg = HKS_ALG_ED25519; in Ed25519BlobToKeyMaterial()
289 if ((keyInfo->keyAlg == HKS_ALG_ED25519) && (keyInfo->flag == HKS_KEY_FLAG_GENERATE_KEY)) { in GetRawKeyMaterial()
428 if ((algParam->uint32Param == HKS_ALG_ED25519) && (keyFlag == HKS_KEY_FLAG_GENERATE_KEY)) { in AdjustKey()
Dhks_upgrade_key_info.c296 keyMaterial->keyAlg = HKS_ALG_ED25519; in ConvertEd25519ToNewFormat()
430 spec->algType = HKS_ALG_ED25519; in TranslateToNewValue()
Dhks_keynode.c355 hasCalcHash &= (param2->uint32Param != HKS_ALG_ED25519); in FreeRuntimeParamSet()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_app_cert_process.c308 int32_t ret = SaveKeyMaterialCurve25519(HKS_ALG_ED25519, priKey, &keyPair); in ImportEd25519Key()
315 .algType = HKS_ALG_ED25519, in ImportEd25519Key()
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c268 } else if (algParam->uint32Param == HKS_ALG_ED25519) { in CheckLocalSignVerifyParams()
275 if (algParam->uint32Param == HKS_ALG_ED25519) { in CheckLocalSignVerifyParams()
/base/security/huks/interfaces/innerkits/huks_standard/main/include/
Dhks_type.h179 HKS_ALG_ED25519 = 102, enumerator

12