Skip to content

Verify an ed25519 signature via CLI (C + OpenSSL)

License

Notifications You must be signed in to change notification settings

greg-kennedy/ed25519-verify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ed25519-verify

Greg Kennedy 2022

Verify an ed25519 signature via CLI (C + OpenSSL).

This is a minimal example to verify an ed25519 signature as a command-line tool. Usage is:

ed25519-verify <key> <signature>

The message should be passed on STDIN (via cat, echo, etc). Remember that some Unix tools append a newline by default, and this will cause the signature to differ.

NOTE: proper cleanup of buffers / structures is omitted, be cautious embedding this in any larger project