wolfssl-examples/signature
David Garske e3fb299e37 Corrected the RSA w/DER encoding text and reverted accidental check-in to enable debugging. 2016-02-08 15:32:14 -08:00
..
Makefile wolfSSL signature example. This example takes a file and creates a signature for it using the "wc_Signature*" wrapper functions. This example generates a new ECC key and dumps the key values, then creates a signature from a hash of the file and signs it. Then it performs a verification using the signature and public key. 2015-11-12 09:54:15 -08:00
README.md Corrected the RSA w/DER encoding text and reverted accidental check-in to enable debugging. 2016-02-08 15:32:14 -08:00
signature.c Corrected the RSA w/DER encoding text and reverted accidental check-in to enable debugging. 2016-02-08 15:32:14 -08:00

README.md

wolfSSL Signature Example

This directory contains:

A simple example of using wolfSSL to sign and verify binary data. It supports RSA and ECC for signing and MD2, MD4, MD5, SHA, SHA256, SHA384 and SHA512.

This example creates a signature from a hash of the file and signs it using a generated key. Then it performs a verification using the signature and public key.

Compiling and Running the Example

$ make
$ ./firmware [filename] [sig] [hash]

Usage

Usage: signature : 1=ECC (def), 2=RSA, 3=RSA (w/DER Encoding) : 1=MD2, 2=MD4, 3=MD5, 4=SHA, 5=SHA256 (def), 6=SHA384, 7=SHA512, 8=MD5+SHA