diff --git a/Makefile.am b/Makefile.am index 05a6c655d..63451fc50 100644 --- a/Makefile.am +++ b/Makefile.am @@ -64,6 +64,10 @@ include mplabx/ctaocrypt_benchmark.X/nbproject/include.am include mplabx/ctaocrypt_test.X/nbproject/include.am include mplabx/cyassl.X/nbproject/include.am include mcapi/include.am +include mcapi/ctaocrypt_mcapi.X/nbproject/include.am +include mcapi/ctaocrypt_test.X/nbproject/include.am +include mcapi/cyassl.X/nbproject/include.am +include mcapi/zlib.X/nbproject/include.am if USE_VALGRIND TESTS_ENVIRONMENT=./valgrind-error.sh diff --git a/m4/ax_harden_compiler_flags.m4 b/m4/ax_harden_compiler_flags.m4 index 3ea233587..2c225db58 100644 --- a/m4/ax_harden_compiler_flags.m4 +++ b/m4/ax_harden_compiler_flags.m4 @@ -123,7 +123,9 @@ AX_APPEND_COMPILE_FLAGS([-Wunknown-pragmas],,[$ax_append_compile_cflags_extra]) AX_APPEND_COMPILE_FLAGS([-Wthis-test-should-fail],,[$ax_append_compile_cflags_extra]) dnl Anything below this comment please keep sorted. - AX_APPEND_COMPILE_FLAGS([--param=ssp-buffer-size=1],,[$ax_append_compile_cflags_extra]) + AS_IF([test "$CC" = "clang"],[],[ + AX_APPEND_COMPILE_FLAGS([--param=ssp-buffer-size=1],,[$ax_append_compile_cflags_extra]) + ]) AX_APPEND_COMPILE_FLAGS([-Waddress],,[$ax_append_compile_cflags_extra]) AX_APPEND_COMPILE_FLAGS([-Warray-bounds],,[$ax_append_compile_cflags_extra]) AX_APPEND_COMPILE_FLAGS([-Wbad-function-cast],,[$ax_append_compile_cflags_extra]) diff --git a/mcapi/README b/mcapi/README new file mode 100644 index 000000000..c75b79f4a --- /dev/null +++ b/mcapi/README @@ -0,0 +1,72 @@ +CyaSSL MPLAB X Project Files + +This directory contains project files for the Microchip MPLAB X IDE. These +projects have been set up to use the Microchip PIC32 Ethernet Starter Kit +and the Microchip XC32 compiler, and have been created specifically to test +the Microchip-specific CTaoCrypt API with compression support. For MPLAB X +projects that don't use compression and are generic to the CTaoCrypt API, +please see the /mplabx directory. + +In order to generate the necessary auto-generated MPLAB X files, make sure +to import the cyassl.X and zlib.X projects into your MPLAB X workspace before +trying to build either the CTaoCrypt test or benchmark applications. This will +correctly set up the respective project's Makefiles. + +Included Project Files +----------------------- + +1. CyaSSL library (cyassl.X) + + This project builds a static CyaSSL library. Prior to building this + project, uncomment the MICROCHIP_PIC32 define located in: + + /cyassl/ctaocrypt/settings.h + + After this project has been built, the compiled library will be located + at: + + /mplabx/cyassl.X/dist/default/production/cyassl.X.a + + Note that this project includes the zlib header location in the project's + include paths. This is because this project has been set up to be compiled + with zlib support to enable compression and decompression features. + +2. CTaoCrypt Test App (ctaocrypt_test.X) + + This project tests the CTaoCrypt cryptography modules. It is generally + a good idea to run this first on an embedded system after compiling + CyaSSL in order to verify all underlying crypto is working correctly. + +3. CTaoCrypt Benchmark App (ctaocrypt_benchmark.X) + + This project builds the CTaoCrypt benchmark application. If the CyaSSL + project (cyassl.X) has been compiled with libz support and is being + used to build this project, the zlib.X project will need to added to + the "Libraries" folder under the ctaocrypt_benchmark.X project before + it will compile successfully. + +4. CTaoCrypt MCAPI Test App (ctaocrypt_mcapi.X) + + This project tests the Microchip crytpo API layer. The Microchip crypto + layer is located under the /mcapi directory. + +5. zlib library (zlib.X) + + This project builds the zlib library for use in the ctaocrypt_test.X + and ctaocrypt_mcapi.X projects. This project expects the zlib sources + to be located under the CyaSSL root directory. Currently it is set up + to work with zlib 1.2.7, and looks for sources under: + + /zlib-1.2.7 + +MIPS16 and MIPS32 Support +------------------------- + +These projects support both MIPS16 and MIPS32 instruction sets. Switching +between these two instruction sets can be done in each project's properties +settings by checking the "Generate 16-bit code" checkbox. + +Support +------- +Please send questions or comments to support@wolfssl.com + diff --git a/mcapi/ctaocrypt_mcapi.X/Makefile b/mcapi/ctaocrypt_mcapi.X/Makefile new file mode 100644 index 000000000..05a3fb1b6 --- /dev/null +++ b/mcapi/ctaocrypt_mcapi.X/Makefile @@ -0,0 +1,108 @@ +# +# There exist several targets which are by default empty and which can be +# used for execution of your targets. These targets are usually executed +# before and after some main targets. They are: +# +# .build-pre: called before 'build' target +# .build-post: called after 'build' target +# .clean-pre: called before 'clean' target +# .clean-post: called after 'clean' target +# .clobber-pre: called before 'clobber' target +# .clobber-post: called after 'clobber' target +# .all-pre: called before 'all' target +# .all-post: called after 'all' target +# .help-pre: called before 'help' target +# .help-post: called after 'help' target +# +# Targets beginning with '.' are not intended to be called on their own. +# +# Main targets can be executed directly, and they are: +# +# build build a specific configuration +# clean remove built files from a configuration +# clobber remove all built files +# all build all configurations +# help print help mesage +# +# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and +# .help-impl are implemented in nbproject/makefile-impl.mk. +# +# Available make variables: +# +# CND_BASEDIR base directory for relative paths +# CND_DISTDIR default top distribution directory (build artifacts) +# CND_BUILDDIR default top build directory (object files, ...) +# CONF name of current configuration +# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) +# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) +# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) +# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) +# CND_PACKAGE_NAME_${CONF} name of package (current configuration) +# CND_PACKAGE_PATH_${CONF} path to package (current configuration) +# +# NOCDDL + + +# Environment +MKDIR=mkdir +CP=cp +CCADMIN=CCadmin +RANLIB=ranlib + + +# build +build: .build-post + +.build-pre: +# Add your pre 'build' code here... + +.build-post: .build-impl +# Add your post 'build' code here... + + +# clean +clean: .clean-post + +.clean-pre: +# Add your pre 'clean' code here... + +.clean-post: .clean-impl +# Add your post 'clean' code here... + + +# clobber +clobber: .clobber-post + +.clobber-pre: +# Add your pre 'clobber' code here... + +.clobber-post: .clobber-impl +# Add your post 'clobber' code here... + + +# all +all: .all-post + +.all-pre: +# Add your pre 'all' code here... + +.all-post: .all-impl +# Add your post 'all' code here... + + +# help +help: .help-post + +.help-pre: +# Add your pre 'help' code here... + +.help-post: .help-impl +# Add your post 'help' code here... + + + +# include project implementation makefile +include nbproject/Makefile-impl.mk + +# include project make variables +include nbproject/Makefile-variables.mk diff --git a/mcapi/ctaocrypt_mcapi.X/nbproject/configurations.xml b/mcapi/ctaocrypt_mcapi.X/nbproject/configurations.xml new file mode 100644 index 000000000..0c1e4c6cf --- /dev/null +++ b/mcapi/ctaocrypt_mcapi.X/nbproject/configurations.xml @@ -0,0 +1,143 @@ + + + + + + + + + ../../mcapi/test.c + + + Makefile + + + Makefile + + + + localhost + PIC32MX795F512L + + + SKDEPIC32PlatformTool + XC32 + 1.10 + 4 + + + + + + + + + + + + + + + + false + + + + + false + + false + + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcapi/ctaocrypt_mcapi.X/nbproject/include.am b/mcapi/ctaocrypt_mcapi.X/nbproject/include.am new file mode 100644 index 000000000..4e2ba8afd --- /dev/null +++ b/mcapi/ctaocrypt_mcapi.X/nbproject/include.am @@ -0,0 +1,11 @@ +# vim:ft=automake +# All paths should be given relative to the root +# + +EXTRA_DIST += \ + mcapi/ctaocrypt_mcapi.X/Makefile + +EXTRA_DIST += \ + mcapi/ctaocrypt_mcapi.X/nbproject/configurations.xml \ + mcapi/ctaocrypt_mcapi.X/nbproject/project.xml + diff --git a/mcapi/ctaocrypt_mcapi.X/nbproject/project.xml b/mcapi/ctaocrypt_mcapi.X/nbproject/project.xml new file mode 100644 index 000000000..ba9477e80 --- /dev/null +++ b/mcapi/ctaocrypt_mcapi.X/nbproject/project.xml @@ -0,0 +1,19 @@ + + + com.microchip.mplab.nbide.embedded.makeproject + + + ctaocrypt_mcapi + 2ca6ab9b-e225-4ad3-b48e-9ea7b47a4ca4 + 0 + c + + + ISO-8859-1 + + ../zlib.X + ../cyassl.X + + + + diff --git a/mcapi/ctaocrypt_test.X/Makefile b/mcapi/ctaocrypt_test.X/Makefile new file mode 100644 index 000000000..05a3fb1b6 --- /dev/null +++ b/mcapi/ctaocrypt_test.X/Makefile @@ -0,0 +1,108 @@ +# +# There exist several targets which are by default empty and which can be +# used for execution of your targets. These targets are usually executed +# before and after some main targets. They are: +# +# .build-pre: called before 'build' target +# .build-post: called after 'build' target +# .clean-pre: called before 'clean' target +# .clean-post: called after 'clean' target +# .clobber-pre: called before 'clobber' target +# .clobber-post: called after 'clobber' target +# .all-pre: called before 'all' target +# .all-post: called after 'all' target +# .help-pre: called before 'help' target +# .help-post: called after 'help' target +# +# Targets beginning with '.' are not intended to be called on their own. +# +# Main targets can be executed directly, and they are: +# +# build build a specific configuration +# clean remove built files from a configuration +# clobber remove all built files +# all build all configurations +# help print help mesage +# +# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and +# .help-impl are implemented in nbproject/makefile-impl.mk. +# +# Available make variables: +# +# CND_BASEDIR base directory for relative paths +# CND_DISTDIR default top distribution directory (build artifacts) +# CND_BUILDDIR default top build directory (object files, ...) +# CONF name of current configuration +# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) +# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) +# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) +# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) +# CND_PACKAGE_NAME_${CONF} name of package (current configuration) +# CND_PACKAGE_PATH_${CONF} path to package (current configuration) +# +# NOCDDL + + +# Environment +MKDIR=mkdir +CP=cp +CCADMIN=CCadmin +RANLIB=ranlib + + +# build +build: .build-post + +.build-pre: +# Add your pre 'build' code here... + +.build-post: .build-impl +# Add your post 'build' code here... + + +# clean +clean: .clean-post + +.clean-pre: +# Add your pre 'clean' code here... + +.clean-post: .clean-impl +# Add your post 'clean' code here... + + +# clobber +clobber: .clobber-post + +.clobber-pre: +# Add your pre 'clobber' code here... + +.clobber-post: .clobber-impl +# Add your post 'clobber' code here... + + +# all +all: .all-post + +.all-pre: +# Add your pre 'all' code here... + +.all-post: .all-impl +# Add your post 'all' code here... + + +# help +help: .help-post + +.help-pre: +# Add your pre 'help' code here... + +.help-post: .help-impl +# Add your post 'help' code here... + + + +# include project implementation makefile +include nbproject/Makefile-impl.mk + +# include project make variables +include nbproject/Makefile-variables.mk diff --git a/mcapi/ctaocrypt_test.X/main.c b/mcapi/ctaocrypt_test.X/main.c new file mode 100644 index 000000000..c39a3c9e9 --- /dev/null +++ b/mcapi/ctaocrypt_test.X/main.c @@ -0,0 +1,51 @@ +/* main.c + * + * Copyright (C) 2006-2013 wolfSSL Inc. All rights reserved. + * + * This file is part of CyaSSL. + * + * Contact licensing@yassl.com with any questions or comments. + * + * http://www.yassl.com + */ + + +#define PIC32_STARTER_KIT + +#include +#include +#include +#include +#include + +/* func_args from test.h, so don't have to pull in other junk */ +typedef struct func_args { + int argc; + char** argv; + int return_code; +} func_args; + +/* + * Main driver for CTaoCrypt tests. + */ +int main(int argc, char** argv) { + + SYSTEMConfigPerformance(80000000); + + DBINIT(); + printf("CTaoCrypt Test:\n"); + + func_args args; + + args.argc = argc; + args.argv = argv; + + ctaocrypt_test(&args); + + if (args.return_code == 0) { + printf("All tests passed!\n"); + } + + return 0; +} + diff --git a/mcapi/ctaocrypt_test.X/nbproject/configurations.xml b/mcapi/ctaocrypt_test.X/nbproject/configurations.xml new file mode 100644 index 000000000..83cc5d002 --- /dev/null +++ b/mcapi/ctaocrypt_test.X/nbproject/configurations.xml @@ -0,0 +1,185 @@ + + + + + ../../ctaocrypt/test/test.h + + + + + main.c + ../../ctaocrypt/test/test.c + + + Makefile + + + Makefile + + + + localhost + PIC32MX795F512L + + + SKDEPIC32PlatformTool + XC32 + 1.10 + 4 + + + + + + + + + + + + + + + + false + + + + + false + + false + + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcapi/ctaocrypt_test.X/nbproject/include.am b/mcapi/ctaocrypt_test.X/nbproject/include.am new file mode 100644 index 000000000..ec09b769e --- /dev/null +++ b/mcapi/ctaocrypt_test.X/nbproject/include.am @@ -0,0 +1,12 @@ +# vim:ft=automake +# All paths should be given relative to the root +# + +EXTRA_DIST += \ + mcapi/ctaocrypt_test.X/Makefile \ + mcapi/ctaocrypt_test.X/main.c + +EXTRA_DIST += \ + mcapi/ctaocrypt_test.X/nbproject/configurations.xml \ + mcapi/ctaocrypt_test.X/nbproject/project.xml + diff --git a/mcapi/ctaocrypt_test.X/nbproject/project.xml b/mcapi/ctaocrypt_test.X/nbproject/project.xml new file mode 100644 index 000000000..0edce97de --- /dev/null +++ b/mcapi/ctaocrypt_test.X/nbproject/project.xml @@ -0,0 +1,19 @@ + + + com.microchip.mplab.nbide.embedded.makeproject + + + ctaocrypt_test + b34c4937-7042-4352-88b1-7717bcdf8aeb + 0 + c + + h + ISO-8859-1 + + ../zlib.X + ../cyassl.X + + + + diff --git a/mcapi/cyassl.X/Makefile b/mcapi/cyassl.X/Makefile new file mode 100644 index 000000000..05a3fb1b6 --- /dev/null +++ b/mcapi/cyassl.X/Makefile @@ -0,0 +1,108 @@ +# +# There exist several targets which are by default empty and which can be +# used for execution of your targets. These targets are usually executed +# before and after some main targets. They are: +# +# .build-pre: called before 'build' target +# .build-post: called after 'build' target +# .clean-pre: called before 'clean' target +# .clean-post: called after 'clean' target +# .clobber-pre: called before 'clobber' target +# .clobber-post: called after 'clobber' target +# .all-pre: called before 'all' target +# .all-post: called after 'all' target +# .help-pre: called before 'help' target +# .help-post: called after 'help' target +# +# Targets beginning with '.' are not intended to be called on their own. +# +# Main targets can be executed directly, and they are: +# +# build build a specific configuration +# clean remove built files from a configuration +# clobber remove all built files +# all build all configurations +# help print help mesage +# +# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and +# .help-impl are implemented in nbproject/makefile-impl.mk. +# +# Available make variables: +# +# CND_BASEDIR base directory for relative paths +# CND_DISTDIR default top distribution directory (build artifacts) +# CND_BUILDDIR default top build directory (object files, ...) +# CONF name of current configuration +# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) +# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) +# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) +# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) +# CND_PACKAGE_NAME_${CONF} name of package (current configuration) +# CND_PACKAGE_PATH_${CONF} path to package (current configuration) +# +# NOCDDL + + +# Environment +MKDIR=mkdir +CP=cp +CCADMIN=CCadmin +RANLIB=ranlib + + +# build +build: .build-post + +.build-pre: +# Add your pre 'build' code here... + +.build-post: .build-impl +# Add your post 'build' code here... + + +# clean +clean: .clean-post + +.clean-pre: +# Add your pre 'clean' code here... + +.clean-post: .clean-impl +# Add your post 'clean' code here... + + +# clobber +clobber: .clobber-post + +.clobber-pre: +# Add your pre 'clobber' code here... + +.clobber-post: .clobber-impl +# Add your post 'clobber' code here... + + +# all +all: .all-post + +.all-pre: +# Add your pre 'all' code here... + +.all-post: .all-impl +# Add your post 'all' code here... + + +# help +help: .help-post + +.help-pre: +# Add your pre 'help' code here... + +.help-post: .help-impl +# Add your post 'help' code here... + + + +# include project implementation makefile +include nbproject/Makefile-impl.mk + +# include project make variables +include nbproject/Makefile-variables.mk diff --git a/mcapi/cyassl.X/nbproject/configurations.xml b/mcapi/cyassl.X/nbproject/configurations.xml new file mode 100644 index 000000000..f98818350 --- /dev/null +++ b/mcapi/cyassl.X/nbproject/configurations.xml @@ -0,0 +1,186 @@ + + + + + + + + + ../../src/crl.c + ../../src/internal.c + ../../src/io.c + ../../src/keys.c + ../../src/ocsp.c + ../../src/sniffer.c + ../../src/ssl.c + ../../src/tls.c + ../../ctaocrypt/src/aes.c + ../../ctaocrypt/src/arc4.c + ../../ctaocrypt/src/asm.c + ../../ctaocrypt/src/asn.c + ../../ctaocrypt/src/coding.c + ../../ctaocrypt/src/des3.c + ../../ctaocrypt/src/dh.c + ../../ctaocrypt/src/dsa.c + ../../ctaocrypt/src/ecc.c + ../../ctaocrypt/src/ecc_fp.c + ../../ctaocrypt/src/error.c + ../../ctaocrypt/src/hc128.c + ../../ctaocrypt/src/hmac.c + ../../ctaocrypt/src/integer.c + ../../ctaocrypt/src/logging.c + ../../ctaocrypt/src/md2.c + ../../ctaocrypt/src/md4.c + ../../ctaocrypt/src/md5.c + ../../ctaocrypt/src/memory.c + ../../ctaocrypt/src/misc.c + ../../ctaocrypt/src/pwdbased.c + ../../ctaocrypt/src/rabbit.c + ../../ctaocrypt/src/random.c + ../../ctaocrypt/src/ripemd.c + ../../ctaocrypt/src/rsa.c + ../../ctaocrypt/src/sha.c + ../../ctaocrypt/src/sha256.c + ../../ctaocrypt/src/sha512.c + ../../ctaocrypt/src/tfm.c + ../../mcapi/crypto.c + ../../ctaocrypt/src/compress.c + ../../ctaocrypt/src/camellia.c + + + Makefile + + + + .. + + Makefile + + + + localhost + PIC32MX795F512L + + + SKDEPIC32PlatformTool + XC32 + 1.10 + 4 + + + + + + + false + + false + + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcapi/cyassl.X/nbproject/include.am b/mcapi/cyassl.X/nbproject/include.am new file mode 100644 index 000000000..163090026 --- /dev/null +++ b/mcapi/cyassl.X/nbproject/include.am @@ -0,0 +1,12 @@ +# vim:ft=automake +# All paths should be given relative to the root +# + +EXTRA_DIST += \ + mcapi/README \ + mcapi/cyassl.X/Makefile + +EXTRA_DIST += \ + mcapi/cyassl.X/nbproject/configurations.xml \ + mcapi/cyassl.X/nbproject/project.xml + diff --git a/mcapi/cyassl.X/nbproject/project.xml b/mcapi/cyassl.X/nbproject/project.xml new file mode 100644 index 000000000..831eae925 --- /dev/null +++ b/mcapi/cyassl.X/nbproject/project.xml @@ -0,0 +1,16 @@ + + + com.microchip.mplab.nbide.embedded.makeproject + + + cyassl + 93bbfc3a-a0fa-4d48-bbc8-6cd47a2bd05b + 0 + c + + + ISO-8859-1 + + + + diff --git a/mcapi/zlib.X/Makefile b/mcapi/zlib.X/Makefile new file mode 100644 index 000000000..05a3fb1b6 --- /dev/null +++ b/mcapi/zlib.X/Makefile @@ -0,0 +1,108 @@ +# +# There exist several targets which are by default empty and which can be +# used for execution of your targets. These targets are usually executed +# before and after some main targets. They are: +# +# .build-pre: called before 'build' target +# .build-post: called after 'build' target +# .clean-pre: called before 'clean' target +# .clean-post: called after 'clean' target +# .clobber-pre: called before 'clobber' target +# .clobber-post: called after 'clobber' target +# .all-pre: called before 'all' target +# .all-post: called after 'all' target +# .help-pre: called before 'help' target +# .help-post: called after 'help' target +# +# Targets beginning with '.' are not intended to be called on their own. +# +# Main targets can be executed directly, and they are: +# +# build build a specific configuration +# clean remove built files from a configuration +# clobber remove all built files +# all build all configurations +# help print help mesage +# +# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and +# .help-impl are implemented in nbproject/makefile-impl.mk. +# +# Available make variables: +# +# CND_BASEDIR base directory for relative paths +# CND_DISTDIR default top distribution directory (build artifacts) +# CND_BUILDDIR default top build directory (object files, ...) +# CONF name of current configuration +# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) +# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) +# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) +# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) +# CND_PACKAGE_NAME_${CONF} name of package (current configuration) +# CND_PACKAGE_PATH_${CONF} path to package (current configuration) +# +# NOCDDL + + +# Environment +MKDIR=mkdir +CP=cp +CCADMIN=CCadmin +RANLIB=ranlib + + +# build +build: .build-post + +.build-pre: +# Add your pre 'build' code here... + +.build-post: .build-impl +# Add your post 'build' code here... + + +# clean +clean: .clean-post + +.clean-pre: +# Add your pre 'clean' code here... + +.clean-post: .clean-impl +# Add your post 'clean' code here... + + +# clobber +clobber: .clobber-post + +.clobber-pre: +# Add your pre 'clobber' code here... + +.clobber-post: .clobber-impl +# Add your post 'clobber' code here... + + +# all +all: .all-post + +.all-pre: +# Add your pre 'all' code here... + +.all-post: .all-impl +# Add your post 'all' code here... + + +# help +help: .help-post + +.help-pre: +# Add your pre 'help' code here... + +.help-post: .help-impl +# Add your post 'help' code here... + + + +# include project implementation makefile +include nbproject/Makefile-impl.mk + +# include project make variables +include nbproject/Makefile-variables.mk diff --git a/mcapi/zlib.X/nbproject/configurations.xml b/mcapi/zlib.X/nbproject/configurations.xml new file mode 100644 index 000000000..bdf84a38d --- /dev/null +++ b/mcapi/zlib.X/nbproject/configurations.xml @@ -0,0 +1,157 @@ + + + + + + + + + ../../zlib-1.2.7/adler32.c + ../../zlib-1.2.7/compress.c + ../../zlib-1.2.7/crc32.c + ../../zlib-1.2.7/deflate.c + ../../zlib-1.2.7/gzclose.c + ../../zlib-1.2.7/gzlib.c + ../../zlib-1.2.7/gzread.c + ../../zlib-1.2.7/gzwrite.c + ../../zlib-1.2.7/infback.c + ../../zlib-1.2.7/inffast.c + ../../zlib-1.2.7/inflate.c + ../../zlib-1.2.7/inftrees.c + ../../zlib-1.2.7/trees.c + ../../zlib-1.2.7/uncompr.c + ../../zlib-1.2.7/zutil.c + + + Makefile + + + Makefile + + + + localhost + PIC32MX795F512L + + + SKDEPIC32PlatformTool + XC32 + 1.10 + 4 + + + + + + + false + + false + + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcapi/zlib.X/nbproject/include.am b/mcapi/zlib.X/nbproject/include.am new file mode 100644 index 000000000..9d855dde7 --- /dev/null +++ b/mcapi/zlib.X/nbproject/include.am @@ -0,0 +1,11 @@ +# vim:ft=automake +# All paths should be given relative to the root +# + +EXTRA_DIST += \ + mcapi/zlib.X/Makefile + +EXTRA_DIST += \ + mcapi/zlib.X/nbproject/configurations.xml \ + mcapi/zlib.X/nbproject/project.xml + diff --git a/mcapi/zlib.X/nbproject/project.xml b/mcapi/zlib.X/nbproject/project.xml new file mode 100644 index 000000000..060627700 --- /dev/null +++ b/mcapi/zlib.X/nbproject/project.xml @@ -0,0 +1,16 @@ + + + com.microchip.mplab.nbide.embedded.makeproject + + + zlib + 8eef651d-e634-46ae-9183-39443c98e390 + 0 + c + + + ISO-8859-1 + + + + diff --git a/mplabx/README b/mplabx/README index 3879a79c7..dcc7a1be8 100644 --- a/mplabx/README +++ b/mplabx/README @@ -6,7 +6,8 @@ and the Microchip XC32 compiler. In order to generate the necessary auto-generated MPLAB X files, make sure to import the cyassl.X project into your MPLAB X workspace before trying to -build either the CTaoCrypt test or benchmark applications. +build either the CTaoCrypt test or benchmark applications. This will +correctly set up the respective project's Makefiles. Included Project Files ----------------------- @@ -24,9 +25,14 @@ Included Project Files /mplabx/cyassl.X/dist/default/production/cyassl.X.a 2. CTaoCrypt Test App (ctaocrypt_test.X) + + This project tests the CTaoCrypt cryptography modules. It is generally + a good idea to run this first on an embedded system after compiling + CyaSSL in order to verify all underlying crypto is working correctly. 3. CTaoCrypt Benchmark App (ctaocrypt_benchmark.X) - + + This project builds the CTaoCrypt benchmark application. MIPS16 and MIPS32 Support ------------------------- @@ -35,3 +41,7 @@ These projects support both MIPS16 and MIPS32 instruction sets. Switching between these two instruction sets can be done in each project's properties settings by checking the "Generate 16-bit code" checkbox. +Support +------- +Please send questions or comments to support@wolfssl.com +