sharpie
This is a Rust library for signing and verifying digital signatures using RSA or ED25519.
Dependency
[]
= "0.1.2"
For most recent version see crates.io
Usage
Run the example:
$ cargo run -p sharpie --example sign
For Ed25519, use the sharpie::ed module.
use ;
Optionally, generate your keys with OpenSSL:
$ openssl genpkey -algorithm ED25519 -out ed.private.pem
$ openssl pkey -in private-key-ed.pem -pubout -out ed.public.pem
And then sign:
let privkey = PEM;
let sig = sign?;
Or, verify:
let pubkey =
PEM;
// sig is Vec<u8>
verify?;
Copyright
Copyright (c) 2022 @jondot. See LICENSE for further details.