Cosmian / crypto_core

Other
1 stars 1 forks source link

Improve curves high-level structs and traits #62

Open bgrieder opened 1 year ago

bgrieder commented 1 year ago

The implementing structs and traits for curves need to be revisited so that we can have high-level traits that cover all the possible curves. There should be 4 of them.

Also, let us try to use associated types and const as much as possible here since:

bgrieder commented 1 year ago

To support RSA:

The most commonly accepted way of creating a Public key seems to be calling public_key() on the Private Key. This will trigger a redesign of NistPrivate/PublicKey