Searched refs:ecParams (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
H A D | ecc_openssl_common.c | 56 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 D | sm2_asy_key_generator_openssl.c | 69 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 D | ecc_asy_key_generator_openssl.c | 593 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 D | ecc_openssl_common.h | 28 HcfResult GenerateEcGroupWithParamsSpec(const HcfEccCommParamsSpec *ecParams, EC_GROUP **ecGroup);
|