FiloSottile / edwards25519

filippo.io/edwards25519 — A safer, faster, and more powerful low-level edwards25519 Go implementation.
https://filippo.io/edwards25519
BSD 3-Clause "New" or "Revised" License
139 stars 30 forks source link

Exposing checkInitialized for input sanitation #37

Open joshbuddy opened 1 year ago

joshbuddy commented 1 year ago

First thank you for this excellent library!

I wanted to discuss making an API change. Specifically the checkInitialized function would be useful to have exported to make it easier to sanitize inputs. How would you feel about exposing that function? If that makes sense to you I'm happy to provide a pr.

FiloSottile commented 11 months ago

What kind of input sanitization do you need to do? checkInitialized exists only to catch API misuses where zero-valued Points are used as inputs.