update ED25519 examples based on feedback

pull/43/head
kaleb-himes 2017-04-12 11:41:36 -06:00
parent 7bb3cc3ad1
commit 76cc800750
4 changed files with 18 additions and 2 deletions

View File

@ -15,8 +15,8 @@ LIBRARIES :=
#example: if using custom install location add the include and lib dir to the
# INCLUDE_DIRS and LIBRARY_DIRS respectively
#INCLUDE_DIRS += /Users/khimes/work/testDir/wolf-install-dir-for-testing/include
#LIBRARY_DIRS += /Users/khimes/work/testDir/wolf-install-dir-for-testing/lib
#INCLUDE_DIRS += /path-to-custom/wolf-install-dir-for-testing/include
#LIBRARY_DIRS += /path-to-custom/wolf-install-dir-for-testing/lib
LIBRARIES += wolfssl
CPPFLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))

View File

@ -1,3 +1,11 @@
Configure and install wolfSSL with these options:
./configure --enable-ed25519
make
make install
(if any build issues due to previous installations please run 'ldconfig`)
To compile without Makefile:
gcc -o gen_key_files gen_key_files.c -lwolfssl

View File

@ -3,6 +3,10 @@
#include <wolfssl/wolfcrypt/ed25519.h>
#include <wolfssl/ssl.h>
#ifndef HAVE_ED25519
#error "Please build wolfSSL with the --enable-ed25519 option"
#endif
int create_and_output_ed_key(void);
static int err_sys(const char* msg, int es);

View File

@ -8,6 +8,10 @@
#define USE_CERT_BUFFERS_ED
#include "test_keys.h"
#ifndef HAVE_ED25519
#error "Please build wolfSSL with the --enable-ed25519 option"
#endif
static int err_sys(const char* msg, int es);
static int err_sys(const char* msg, int es)