Merge pull request #384 from embhorn/zd15987

Cleanup signature example
pull/283/merge
Tim Weller 2023-04-17 14:50:30 -05:00 committed by GitHub
commit f63c84d730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ This example creates a signature from a hash of the file and signs it using a ge
```
$ make
$ ./firmware [filename] [sig] [hash]
$ ./signature [filename] [sig] [hash]
```
## Usage

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wolfssl/options.h>
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/ssl.h>
#include <wolfssl/wolfcrypt/ecc.h>
@ -395,7 +397,7 @@ int main(int argc, char** argv)
int ret = 0;
int fileLen;
byte* fileBuf = NULL;
int verifyFileLen;
int verifyFileLen = 0;
byte* verifyFileBuf = NULL;
const char* verify_file = NULL;
enum wc_SignatureType sig_type = WC_SIGNATURE_TYPE_NONE;