Commit Graph

100 Commits (keil)

Author SHA1 Message Date
Daniele Lacamera 26ebbc53c5 [Jenkins] fixed SPI CS pin config on test-bench 2020-06-29 17:55:43 +02:00
David Garske c473a53ebe Improvements to the key tools documentation. 2020-06-24 09:04:24 -07:00
Daniele Lacamera e303c282c7 Added TPM+RSA automated tests for jenkins 2020-06-24 16:56:32 +02:00
David Garske 0c5b66c39e Fixes for TPM with RSA.
* Requires PR https://github.com/wolfSSL/wolfTPM/pull/101
* Cleanup of software vs. TPM code `wolfBoot_verify_signature` functions (ECC and RSA)
* Adjusted the stack size checks with TPM.
* Added STM32F4 programming/debugging instructions.
* In V=1 mode show the keygen command.
2020-06-23 11:57:09 -07:00
David Garske e910380889 Add support for using an RSA signature that includes ASN.1 encoded header. On by default, can be disabled using `NO_RSA_SIG_ENCODING`. Added support for signing with encoding using `--rsa2048enc` or `--rsa4096enc`. 2020-06-23 11:39:30 -07:00
Daniele Lacamera 5c2e44a417 Fix broken test configuration 2020-06-22 12:07:15 +02:00
Daniele Lacamera 2523d2cd19 Removed enforced .config breaking jenkins set-up 2020-06-22 11:50:21 +02:00
David Garske 50456e27cc Fix for arg count on C sign tool. 2020-06-18 12:22:17 -07:00
Daniele Lacamera 64134ded1f Minor fixes from code review 2020-06-18 18:43:50 +02:00
Daniele Lacamera 8af26f6fe6 s/echo -n/printf in test-enc.mk 2020-06-18 18:28:26 +02:00
Daniele Lacamera 9971b8b893 USBTTY, TIMEOUT command line parameters for test-enc.mk 2020-06-18 16:51:01 +02:00
Daniele Lacamera a9755de446 Fixed output image size in sign.c 2020-06-18 16:41:40 +02:00
Daniele Lacamera 9d83b2f277 Added --encrypt option to sign.c 2020-06-18 15:32:16 +02:00
Daniele Lacamera f3f27ae2cb Fixed ChaCha20 IV usage/setting. Test/docs updated. 2020-06-18 11:12:01 +02:00
Daniele Lacamera 7d7ca4299b Added test for encrypted update over UART on STM32WB55 2020-06-17 10:36:14 +02:00
Daniele Lacamera b3fad42f05 Added helper scripts to create test update images, config for enc-uart
use case
2020-06-16 17:52:50 +02:00
Daniele Lacamera ceb07ec315 Fixed encryption alignment and signing tool IV 2020-06-16 17:52:50 +02:00
Daniele Lacamera c9f8f6a12e Added uart driver for stm32wb 2020-06-16 17:52:50 +02:00
Daniele Lacamera 53bf4d04db Encrypt: API design 2020-06-16 17:50:55 +02:00
Daniele Lacamera d21dfc2778 Merge branch 'master' into psoc6_hwcrypto 2020-06-16 09:36:54 +02:00
Daniele Lacamera e367cd17e0 keygen.c: replace gets with scanf 2020-06-11 17:14:27 +02:00
Daniele Lacamera 151a35e3b0 sign.c: Fixed parsing size of public key when in 'manual-sign' or 'sha-only'
mode.
2020-06-11 17:14:05 +02:00
Daniele Lacamera 2b6d093469 sign.py: Fixed parsing size of public key when in 'manual-sign' or 'sha-only'
mode.
2020-06-11 17:03:47 +02:00
Daniele Lacamera 17707b7a37 Support for PSOC6 crypto support: added compile option 2020-06-05 11:49:57 +02:00
Daniele Lacamera c4c786d254
Merge pull request #49 from dgarske/winfixes
Fixes for building C signing tools on Windows (Cygwin/MinGW).
2020-06-01 21:54:14 +02:00
David Garske 93d62112e9
Merge pull request #52 from danielinux/mpu
Added support for memory protection on ARM using MPU
2020-05-26 06:42:01 -07:00
David Garske 782d4b685c Fix to allow .config to define WOLFTPM variable (and others). 2020-05-25 07:01:05 -07:00
Daniele Lacamera 7ade0ee2c0 Added support for memory protection on ARM using MPU 2020-05-25 15:14:41 +02:00
David Garske 5a8032d619 Add detection for `tools/keytools/sign.exe` and `tools/keytools/keygen.exe`. Show more commands with `make V=1`. 2020-05-23 11:08:30 -07:00
David Garske 088f168062 Fixes for building C signing tools on Windows (Cygwin/MinGW). 2020-05-22 12:26:19 -07:00
David Garske 1adb2bcae0 Fix for C keygen tool RSA len variable and the ED25519 generated key. Added description to C sign defaults. Added template Cypress PSoC6 configuration file. 2020-05-20 08:28:06 -07:00
Daniele Lacamera f3d0d8fc83 PSoC6 support: updated configuration, docs added to Targets.md, revert
custom NVM_CACHE_SIZE
2020-05-20 06:53:00 -07:00
Daniele Lacamera 3db37a6b5c Updated NVM_CACHE_SIZE to match different configurations.
Progress on psoc6 HAL, fixed memory mapping and test app
2020-05-20 06:53:00 -07:00
Daniele Lacamera 75638394b1 Initial draft for psoc6 support 2020-05-20 06:53:00 -07:00
Daniele Lacamera e0d4764fcc Fixed bug in keygen.c append missing public key to ed25519.der 2020-05-19 17:10:28 +02:00
Daniele Lacamera 09909bbc84 Fix importing Ed25519 key in C sign tool 2020-05-18 12:36:01 +02:00
David Garske c6f6ce83c2
Merge pull request #40 from wolfSSL/iar
Example workspace/project to build under IAR
2020-04-07 10:53:35 -07:00
David Garske 3f1a18f8a9 Fixed unused warning fixes and missing errno.h in keygen.c. Update tools/keytools Makefile to build keygen. Cleanup to support using C version of "sign" and "keygen" after "make keytools". 2020-04-07 18:27:05 +02:00
David Garske 5c6649244c Fix for intermediate directory naming conflict between two projects. 2020-04-07 18:12:56 +02:00
Daniele Lacamera fbf4f727a6 Re-added missing includes in ufserver when compiling on linux 2020-04-07 16:41:38 +02:00
Daniele Lacamera aaa5f962e6 minor changes after code review 2020-04-07 16:39:37 +02:00
David Garske ec1b4b4d95 allow the ufserver to build on Mac 2020-04-07 16:35:20 +02:00
Daniele Lacamera 963e25a4cc keygen: added conditional compile for algorithms 2020-04-07 09:54:47 +02:00
Daniele Lacamera 6020b4efdf keygen.c: fixed indentation 2020-04-07 09:07:34 +02:00
Daniele Lacamera 3a763ac19a Removed debug in keygen tool 2020-04-07 09:06:27 +02:00
Daniele Lacamera 92e1f632c1 Removed magic numbers for bitrate 2020-04-03 20:24:13 +02:00
Daniele Lacamera 7ffcdca098 External, emulated non-volatile memory over UART 2020-04-03 14:27:42 +02:00
Daniele Lacamera 8c6272df4a Completed Windows/IAR example, removed extra files 2020-03-31 11:54:58 +02:00
Daniele Lacamera 7e6452467b Added keygen C tool + vcproj for windows 2020-03-30 14:12:39 +02:00
David Garske 94af71e9e9 Fix for signing tool and SHA3 padding at 8-bytes. 2020-03-25 08:19:11 -07:00