-
Notifications
You must be signed in to change notification settings - Fork 93
Extracting prime field modulus #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You are right, as the deprecation notes, ippsGFpECGetSubgroup is recommended replacement. |
We are closing this ticket, please let us if need further supporting from community. |
Well so getting the modulus is not supported then? The replacement function does not allow one to extract the modulus, as I said. |
@J08nY , thank you for reaching out with your question. After a brief review of the mapping between the deprecated and recommended APIs, I can confirm that you are correct. The suggested replacement for
is
With the new API, The issue you've identified seems to be an API extension request for GFp functionality - e.g. to introduce an Could you please let us know the urgency of this request? |
I have no input on the priorities. We maintain a tool that interfaces to a bunch of different ECC libraries and we try to keep it up to date. When updating the Intel Crypto interface we noticed we can no longer export curve parameters, hence this issue. I think the fixed API could be rather simple as it would just extract a BN that defines the prime out of the GFp state. |
Hi there,
as part of our efforts to implement ECTester we are working with the Intel Crypto Primitives library. The recent deprecation and removal of some ECC functions hit hard, and I am now struggling to find a way to implement some functionality we rely on.
Concretely, assuming that I have an IppsGFpECState *curve I want to be able to extract all of its parameters (think of it like I want to serialize them/export them). I found APIs to get the a, b, Gx, Gy, n, h parameters via the
ippsGFpECGet
andippsGFpECGetSubgroup
calls. However, I am not able to extract the prime modulus in any way that does not go around API restrictions in a really hacky way. TheippsGFpECGet
call only gets me theIppsGFpState
and I cannot seem to be able to extract the modulus from that.The text was updated successfully, but these errors were encountered: