From 7deab4c54f5540e96ec2d339fc4519f2ff3d4694 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Wed, 21 Aug 2019 11:12:09 +0900 Subject: [PATCH] add KDS sample project --- IDE/KDS/.cproject | 204 +++++++++++++++++ IDE/KDS/.project | 394 +++++++++++++++++++++++++++++++++ IDE/KDS/config/user_settings.h | 32 +++ IDE/KDS/include.am | 7 + 4 files changed, 637 insertions(+) create mode 100644 IDE/KDS/.cproject create mode 100644 IDE/KDS/.project create mode 100644 IDE/KDS/config/user_settings.h create mode 100644 IDE/KDS/include.am diff --git a/IDE/KDS/.cproject b/IDE/KDS/.cproject new file mode 100644 index 000000000..c489270aa --- /dev/null +++ b/IDE/KDS/.cproject @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/IDE/KDS/.project b/IDE/KDS/.project new file mode 100644 index 000000000..d83ae5ca4 --- /dev/null +++ b/IDE/KDS/.project @@ -0,0 +1,394 @@ + + + wolfssl-test + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + + src/test.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/test/test.c + + + src/wolfcrypt-src/aes.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/aes.c + + + src/wolfcrypt-src/arc4.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/arc4.c + + + src/wolfcrypt-src/asm.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/asm.c + + + src/wolfcrypt-src/asn.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/asn.c + + + src/wolfcrypt-src/blake2b.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/blake2b.c + + + src/wolfcrypt-src/blake2s.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/blake2s.c + + + src/wolfcrypt-src/camellia.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/camellia.c + + + src/wolfcrypt-src/chacha.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/chacha.c + + + src/wolfcrypt-src/chacha20_poly1305.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/chacha20_poly1305.c + + + src/wolfcrypt-src/cmac.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/cmac.c + + + src/wolfcrypt-src/coding.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/coding.c + + + src/wolfcrypt-src/compress.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/compress.c + + + src/wolfcrypt-src/cpuid.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/cpuid.c + + + src/wolfcrypt-src/cryptocb.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/cryptocb.c + + + src/wolfcrypt-src/curve25519.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/curve25519.c + + + src/wolfcrypt-src/des3.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/des3.c + + + src/wolfcrypt-src/dh.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/dh.c + + + src/wolfcrypt-src/dsa.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/dsa.c + + + src/wolfcrypt-src/ecc.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/ecc.c + + + src/wolfcrypt-src/ecc_fp.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/ecc_fp.c + + + src/wolfcrypt-src/ed25519.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/ed25519.c + + + src/wolfcrypt-src/error.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/error.c + + + src/wolfcrypt-src/fe_low_mem.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/fe_low_mem.c + + + src/wolfcrypt-src/fe_operations.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/fe_operations.c + + + src/wolfcrypt-src/ge_low_mem.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/ge_low_mem.c + + + src/wolfcrypt-src/ge_operations.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/ge_operations.c + + + src/wolfcrypt-src/hash.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/hash.c + + + src/wolfcrypt-src/hc128.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/hc128.c + + + src/wolfcrypt-src/hmac.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/hmac.c + + + src/wolfcrypt-src/idea.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/idea.c + + + src/wolfcrypt-src/integer.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/integer.c + + + src/wolfcrypt-src/logging.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/logging.c + + + src/wolfcrypt-src/md2.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/md2.c + + + src/wolfcrypt-src/md4.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/md4.c + + + src/wolfcrypt-src/md5.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/md5.c + + + src/wolfcrypt-src/memory.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/memory.c + + + src/wolfcrypt-src/pkcs12.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/pkcs12.c + + + src/wolfcrypt-src/pkcs7.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/pkcs7.c + + + src/wolfcrypt-src/poly1305.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/poly1305.c + + + src/wolfcrypt-src/pwdbased.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/pwdbased.c + + + src/wolfcrypt-src/rabbit.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/rabbit.c + + + src/wolfcrypt-src/random.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/random.c + + + src/wolfcrypt-src/ripemd.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/ripemd.c + + + src/wolfcrypt-src/rsa.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/rsa.c + + + src/wolfcrypt-src/sha.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sha.c + + + src/wolfcrypt-src/sha256.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sha256.c + + + src/wolfcrypt-src/sha3.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sha3.c + + + src/wolfcrypt-src/sha512.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sha512.c + + + src/wolfcrypt-src/signature.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/signature.c + + + src/wolfcrypt-src/sp_arm32.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_arm32.c + + + src/wolfcrypt-src/sp_arm64.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_arm64.c + + + src/wolfcrypt-src/sp_armthumb.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_armthumb.c + + + src/wolfcrypt-src/sp_c32.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_c32.c + + + src/wolfcrypt-src/sp_c64.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_c64.c + + + src/wolfcrypt-src/sp_cortexm.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_cortexm.c + + + src/wolfcrypt-src/sp_int.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_int.c + + + src/wolfcrypt-src/sp_x86_64.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/sp_x86_64.c + + + src/wolfcrypt-src/srp.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/srp.c + + + src/wolfcrypt-src/tfm.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/tfm.c + + + src/wolfcrypt-src/wc_encrypt.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/wc_encrypt.c + + + src/wolfcrypt-src/wc_pkcs11.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/wc_pkcs11.c + + + src/wolfcrypt-src/wc_port.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/wc_port.c + + + src/wolfcrypt-src/wolfevent.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/wolfevent.c + + + src/wolfcrypt-src/wolfmath.c + 1 + PARENT-2-PROJECT_LOC/wolfcrypt/src/wolfmath.c + + + src/wolfssl-src/crl.c + 1 + PARENT-2-PROJECT_LOC/src/crl.c + + + src/wolfssl-src/internal.c + 1 + PARENT-2-PROJECT_LOC/src/internal.c + + + src/wolfssl-src/keys.c + 1 + PARENT-2-PROJECT_LOC/src/keys.c + + + src/wolfssl-src/ocsp.c + 1 + PARENT-2-PROJECT_LOC/src/ocsp.c + + + src/wolfssl-src/ssl.c + 1 + PARENT-2-PROJECT_LOC/src/ssl.c + + + src/wolfssl-src/tls.c + 1 + PARENT-2-PROJECT_LOC/src/tls.c + + + src/wolfssl-src/tls13.c + 1 + PARENT-2-PROJECT_LOC/src/tls13.c + + + src/wolfssl-src/wolfio.c + 1 + PARENT-2-PROJECT_LOC/src/wolfio.c + + + diff --git a/IDE/KDS/config/user_settings.h b/IDE/KDS/config/user_settings.h new file mode 100644 index 000000000..99086cee3 --- /dev/null +++ b/IDE/KDS/config/user_settings.h @@ -0,0 +1,32 @@ +/* #define NO_MAIN_DRIVER */ +#define BENCH_EMBEDDED +#define NO_WRITEV +#define WOLFSSL_USER_IO +#define NO_DEV_RANDOM +#define USE_CERT_BUFFERS_2048 +#define WOLFSSL_USER_CURRTIME +#define SIZEOF_LONG_LONG 8 +#define NO_WOLFSSL_DIR +#define WOLFSSL_NO_CURRDIR +#define NO_WOLF_C99 +#define NO_MULTIBYTE_PRINT + +#define WOLFSSL_USER_CURRTIME /* for benchmark */ + +#define WOLFSSL_GENSEED_FORTEST /* Warning: define your own seed gen */ + +#define TFM_TIMING_RESISTANT +#define ECC_TIMING_RESISTANT +#define WC_RSA_BLINDING + +#define SINGLE_THREADED /* or define RTOS option */ +/* #define WOLFSSL_CMSIS_RTOS */ +#define NO_FILESYSTEM + +#define NO_DH +#define HAVE_AESGCM +#define WOLFSSL_SHA512 +#define HAVE_ECC +#define HAVE_CURVE25519 +#define CURVE25519_SMALL +#define HAVE_ED25519 diff --git a/IDE/KDS/include.am b/IDE/KDS/include.am new file mode 100644 index 000000000..9884facb0 --- /dev/null +++ b/IDE/KDS/include.am @@ -0,0 +1,7 @@ +# vim:ft=automake +# included from Top Level Makefile.am +# All paths should be given relative to the root + +EXTRA_DIST+= IDE/KDS/.cproject +EXTRA_DIST+= IDE/KDS/.project +EXTRA_DIST+= IDE/KDS/config/user_settings.h