LoupVaillant / Monocypher

An easy to use, easy to deploy crypto library
https://monocypher.org
Other
580 stars 80 forks source link

Clarify crypto_x25512 function #260

Closed xobs closed 11 months ago

xobs commented 12 months ago

The example function for crypto_x25519() contains the following:

https://github.com/LoupVaillant/Monocypher/blob/014f45d9fe54271c8e08006eea83fa97b9d55d32/doc/crypto_x25519.3monocypher#L187-L195

Specifically, there's this line:

https://github.com/LoupVaillant/Monocypher/blob/014f45d9fe54271c8e08006eea83fa97b9d55d32/doc/crypto_x25519.3monocypher#L192

However, the function crypto_x25512() doesn't appear to exist anywhere.

Should this function be filled in by the user, or is it a typo? Or is this meant to be crypto_x25519_public_key()?

LoupVaillant commented 12 months ago

Woops, good catch, I must have been drunk on sleep deprivation. It should be crypto_x25519_public_key() indeed. Will correct ASAP, thanks for the report.