crate-crypto / Ed448-Goldilocks

24 stars 12 forks source link

Backend auto-selection & cfg gating #36

Open pinkforest opened 6 months ago

pinkforest commented 6 months ago

Any interest for a PR that automates the backend selection ?

Also I would like to send a PR that moves to overrides over auto-selection:

cfg(ed448_goldilocks_backend) = "backend"
cfg(ed558_goldilocks_bits) = 32 | 64

We did extensive work at curve25519-dalek here:

The feature driven backend selection caused issues including potential miscompilation and where backends were not available.

More than happy to send a PR