Comments (7)
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.
from ipp-crypto.
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.
from ipp-crypto.
You sample is not complete. Undefined ipp_extget_BN function.
from ipp-crypto.
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.
i get it,thank u very much!
from ipp-crypto.
Related Issues (20)
- Undefined behavior issue in cpGetBitSize() HOT 1
- Add SM4-GCM support HOT 2
- Does IPPCrypto have optimizations of curve25519 for CPU without AVX512-IFMA (but has AVX2/512) HOT 5
- Is there a sample of SM2 encryption and decryption? HOT 4
- getting build failures on debian bookworm with gcc 12.2.0 HOT 5
- Issue with SM2 signature demo implementation HOT 3
- Montgomery Modular exponentiation bug when base and/or mod is huge number HOT 3
- Question about function fesm2_mul and ifma_amm52_psm2_ HOT 4
- Compiling without OpenSSL? HOT 6
- How to call mbx_sm2_ecdsa_sign_mb8()
- internal/common/ifma_cvt52.h:from 8 buffers regular (radix2^64) to mb8 redundant (radix 2^52) representation
- Contribute Intel SGX sample code(GM SM2/3/4 algorithms using IPP Crypto) to ipp-crypto repo HOT 4
- Add a GM SM2 key exchange protocol(not ECDH) to ipp-crypto HOT 6
- Compilation warnings and error in Release mode HOT 3
- Which APIs could replace those deprecated ones in ipp-crypto? HOT 2
- typo: x84 HOT 2
- Some questions about SM2 key exchange
- Unclear usage of nScalars in ippsGFpECScratchBufferSize() HOT 1
- FIPS README Level 1 Requirements Typo HOT 1
- Help Implementing FIPS Level 1 Requirements #4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipp-crypto.