Skip to content

Extracting prime field modulus #90

@J08nY

Description

@J08nY

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 and ippsGFpECGetSubgroup 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. The ippsGFpECGet call only gets me the IppsGFpState and I cannot seem to be able to extract the modulus from that.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions