mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
53d3b5969e7376f34d86dc846e717db4889ef3b9
This adds a new API crypto_sign_publickey, which works similarly to the existing crypto_sign_keypair() API, but supports a 32-byte user-specified seed value (k). This API is necessary for implementing Ed25519 test vectors, for example, since we need to pass in a known seed to ensure we're computing the public key correctly. The name and implementation are largely borrowed from Brian Warner's python-ed25519 library. See: https://github.com/warner/python-ed25519/blob/d42d4b7049baf323e7113359f4f6bf88703543bc/src/ed25519.c#L21 That said, perhaps a different name would be more descriptive, since it still returns a keypair, not just the public key? Or perhaps that's needless bikeshedding since this name is already in use.
See README.markdown
Languages
C
93%
Shell
1.8%
M4
1.5%
Zig
1.3%
Assembly
1.1%
Other
1.2%