Giter Club home page Giter Club logo

Comments (7)

skirillo avatar skirillo commented on August 16, 2024

It seems the only situation where ippsGFpECESGetSize_SM2() returns the ippStsNotSupportedModeErr status is incorrect initialization of the Elliptic Curve (or underlying finite field). If you send a short example illustrating this problem, it helps to understand the source of issue and fix it.
By the way, the SM2 curve has fixed P, A, B, X, Y and N parameters, Are you sure your values (above) are corresponds to SM2 EC?

from ipp-crypto.

DaiJiaKang avatar DaiJiaKang commented on August 16, 2024

@skirillo

example.zip

from ipp-crypto.

skirillo avatar skirillo commented on August 16, 2024

In your example I did not find the following:
'ipp_print_BN' undefined; assuming extern returning int
'ipp_getBN_pint' undefined; assuming extern returning int
'get_time_seed' undefined; assuming extern returning int
'ipp_ramdom_init' undefined; assuming extern returning int
'ipp_random_BN_get' undefined; assuming extern returning int
'ipp_mod_BN' undefined; assuming extern returning int
'ipp_delete_BN' undefined; assuming extern returning int
'ipp_random_release' undefined; assuming extern returning int
Could you prepare compete example?

from ipp-crypto.

DaiJiaKang avatar DaiJiaKang commented on August 16, 2024

example.zip
@skirillo

from ipp-crypto.

skirillo avatar skirillo commented on August 16, 2024

You sample is not complete. Undefined ipp_extget_BN function.

from ipp-crypto.

skirillo avatar skirillo commented on August 16, 2024

when EC created the underlying field is not copied into EC state but instead saved the pointer to GF state only.
In the ipp_ecc_ende_sm2Gen() GF state created correctly but DESTROYED before return.
The ipp_ecc_ende_sm2init() require correct content of EC state including reference to GF state. But it destroyed ..
It's the reason why ippsGFpECESGetSize_SM2() returns error status.

I recommend to take a look at SM2 encryption/decryption protocol

from ipp-crypto.

DaiJiaKang avatar DaiJiaKang commented on August 16, 2024

i get it,thank u very much!

from ipp-crypto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.