Home
last modified time | relevance | path

Searched refs:ecParams (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/src/
H A Decc_openssl_common.c56 HcfECFieldFp *field = (HcfECFieldFp *)(ecParams->field); in NewGroupFromCurveGFp()
63 BigIntegerToBigNum(&(ecParams->a), &a) != HCF_SUCCESS || in NewGroupFromCurveGFp()
64 BigIntegerToBigNum(&(ecParams->b), &b) != HCF_SUCCESS) { in NewGroupFromCurveGFp()
101 if (BigIntegerToBigNum(&(ecParams->g.x), &x) != HCF_SUCCESS || in SetEcPointToGroup()
102 BigIntegerToBigNum(&(ecParams->g.y), &y) != HCF_SUCCESS || in SetEcPointToGroup()
103 BigIntegerToBigNum(&(ecParams->n), &order) != HCF_SUCCESS || in SetEcPointToGroup()
104 !OpensslBnSetWord(cofactor, (uint32_t)ecParams->h)) { in SetEcPointToGroup()
137 HcfResult GenerateEcGroupWithParamsSpec(const HcfEccCommParamsSpec *ecParams, EC_GROUP **ecGroup) in GenerateEcGroupWithParamsSpec() argument
139 if (ecParams == NULL || ecGroup == NULL) { in GenerateEcGroupWithParamsSpec()
149 HcfResult ret = NewGroupFromCurveGFp(ecParams, &group, ctx); in GenerateEcGroupWithParamsSpec()
[all …]
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Dsm2_asy_key_generator_openssl.c69 HcfECFieldFp *field = (HcfECFieldFp *)(ecParams->field); in CheckParamsSpecToGetCurveId()
96 if (ecParams == NULL || returnKey == NULL) { in GenerateSm2KeyWithParamsSpec()
112 ret = GenerateEcGroupWithParamsSpec(ecParams, &group); in GenerateSm2KeyWithParamsSpec()
139 if (ecParams == NULL || returnEckey == NULL) { in NewSm2KeyPairWithCommSpec()
166 if (ecParams == NULL || returnEcKey == NULL) { in NewSm2PubKeyWithPubSpec()
176 ret = SetEcKey(&(ecParams->pk), NULL, ecKey); in NewSm2PubKeyWithPubSpec()
194 if (ecParams == NULL || returnEcKey == NULL) { in NewSm2PriKeyWithPriSpec()
204 ret = SetEcKey(NULL, &(ecParams->sk), ecKey); in NewSm2PriKeyWithPriSpec()
223 if (ecParams == NULL || returnEcKey == NULL) { in NewSm2KeyWithKeyPairSpec()
234 ret = SetEcKey(&(ecParams->pk), &(ecParams->sk), ecKey); in NewSm2KeyWithKeyPairSpec()
[all …]
H A Decc_asy_key_generator_openssl.c593 HcfECFieldFp *field = (HcfECFieldFp *)(ecParams->field); in CheckParamsSpecToGetCurveId()
640 if (ecParams == NULL || returnKey == NULL) { in GenerateEcKeyWithParamsSpec()
656 ret = GenerateEcGroupWithParamsSpec(ecParams, &group); in GenerateEcKeyWithParamsSpec()
683 if (ecParams == NULL || returnEckey == NULL) { in NewEcKeyPairWithCommSpec()
710 if (ecParams == NULL || returnEcKey == NULL) { in NewEcPubKeyWithPubSpec()
720 ret = SetEcKey(&(ecParams->pk), NULL, ecKey); in NewEcPubKeyWithPubSpec()
738 if (ecParams == NULL || returnEcKey == NULL) { in NewEcPriKeyWithPriSpec()
748 ret = SetEcKey(NULL, &(ecParams->sk), ecKey); in NewEcPriKeyWithPriSpec()
767 if (ecParams == NULL || returnEcKey == NULL) { in NewEcKeyWithKeyPairSpec()
778 ret = SetEcKey(&(ecParams->pk), &(ecParams->sk), ecKey); in NewEcKeyWithKeyPairSpec()
[all …]
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Decc_openssl_common.h28 HcfResult GenerateEcGroupWithParamsSpec(const HcfEccCommParamsSpec *ecParams, EC_GROUP **ecGroup);