Open bgrieder opened 1 year ago
To support RSA:
PublickKey should be built from a PrivateKey only
The types described above should be renamed EcPrivateKey and EcPublicKey
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
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: