intel / intel/cryptography-primitives

Extracting prime field modulus

Open
#90 5 comments 0 reactions 1 assignee Claimed by @rcao8 View on GitHub
enhancement help wanted
Dominant language
C
Stars
387
Forks
108
PR merge metrics
No merged PRs in 30d

Description

Hi there,
as part of our efforts to implement [ECTester](https://github.com/crocs-muni/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.