• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Feb-2022-

benchmark/H10-Feb-2022-9257

testwolfcrypt/H10-Feb-2022-9658

MakefileH A D10-Feb-20222.4 KiB9374

README.mdH A D10-Feb-20221.7 KiB4734

include.amH A D10-Feb-2022379 1210

user_settings.hH A D10-Feb-20221.7 KiB8846

README.md

1This is makefile's for creating a wolfCrypt library using the m68k-elf-gcc
2toolchain and example benchmark/testwolfcrypt application linking to it. The
3examples and default builds where made to support a MCF5441X board.
4
5Macros to define for use:
6WOLFSSL_MCF5441X /* arch settings i.e. sizeof long and endianness */
7WOLFSSL_NETBURNER /* for use of NetBurner headers and RNG seed */
8
9
10To build the wolfssl.a library (settings for wolfCrypt only by default) run
11"make" from the directory wolfssl-root/IDE/M68K/.
12By default this outputs the wolfssl.a library to be at $(NBROOT)/lib. This can
13be adjusted by adjusting the variable OUTPUT in Makefile.
14
15If the macro WOLFSSL_MCF5441X is defined then
16wolfssl-root/wolfssl/wolfcrypt/settings.h sets the sizeof long and long long
17along with big endian macro.
18
19The configuration for the build is located in wolfssl-root/IDE/M68K/user_settings.h
20Along with the default build there is 2 others BUILD_B (smaller resource use),
21and BUILD_C (faster runtime with more resource use).
22
23RSA speeds of the builds
24
25default:
26RSA 2048 public 3.333 ops/sec
27RSA 2048 private 0.190 ops/sec
28
29BUILD_B
30RSA 2048 public 3.333 ops/sec
31RSA 2048 private 0.053 ops/sec
32
33BUILD_C
34RSA 2048 public 7.619 ops/sec
35RSA 2048 private 0.276 ops/sec
36
37###Building testwolfcryt/benchmark
38To build either testwolfcrypt or benchmark first build wolfssl.a, place it in
39$(NBROOT)/lib and then cd into the respective directory. Running "make" will
40then create a .s19 application that can be ran on the board.
41
42When running either testwolfcrypt or the benchmark app the first thing they do
43is loop on calling RandomValid until getting a successful return. This is done
44in order to wait for a source of entropy. It could take several moments until
45completed.
46
47