David Garske
a11a3a3bc1
Fix for building C tools with Visual Studio.
2020-07-24 10:59:26 -07:00
David Garske
c473a53ebe
Improvements to the key tools documentation.
2020-06-24 09:04:24 -07: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
David Garske
50456e27cc
Fix for arg count on C sign tool.
2020-06-18 12:22:17 -07: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
ceb07ec315
Fixed encryption alignment and signing tool IV
2020-06-16 17:52:50 +02:00
Daniele Lacamera
53bf4d04db
Encrypt: API design
2020-06-16 17:50:55 +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
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
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
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
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
Daniele Lacamera
cd209e9d3a
Added --force option to keygen
2020-03-23 13:32:59 +01:00
Daniele Lacamera
5d80dcf512
Added 6 bytes to padding in manifest
...
(fixes SHA-3 misaligned access)
Spotted via test-81
2020-03-19 17:06:05 +01:00
Daniele Lacamera
f72e48f1f1
Reverted modification to keygen.py (fixes regression in test-51)
2020-03-19 15:13:05 +01:00
David Garske
99cf42b9a3
Added missing items from signing tool Visual Studio project. Updated signing documentation.
2020-03-11 12:25:51 -07:00
David Garske
2f3da0220c
Visual Studio project for standalone C signing tool.
2020-03-11 11:47:53 -07:00
David Garske
c0b534edd7
wolfBoot Aarch64 support (Xilinx Zynq and Raspberry Pi):
...
* Added Aarch64 boot/startup support
* Added configuration templates for Raspberry Pi 3 and Xilinx ZynqMP UltraScale+
* Added Xilinx Zynq QSPI bare-metal Driver
* Added `NO_XIP` option for full `ext_flash_*` API on all partitions
* Added Xilinx SDK Project Template
* Added support for DTS image partitions
* Added wolfBoot signing tool in Native C (`tools/keytools/sign.c`).
* Added libwolfboot functions `int wolfBoot_fallback_is_possible(void);` and `int wolfBoot_dualboot_candidate(void);`
* Performance improvement to only hash application firmware image once
2020-03-04 12:04:46 -08:00
Daniele Lacamera
f57a27d57c
Fixed sign tool to accommodate all the options. Fixed tests.
2020-01-09 15:09:07 +01:00
Daniele Lacamera
d33c5acac8
Added support for SHA3
2020-01-07 20:35:31 +01:00
Daniele Lacamera
c847529698
Added RSA-4096 bit support
2020-01-07 11:32:09 +01:00
Chris Conlon
1f57ad9f39
update copyright to 2020
2020-01-03 15:36:00 -08:00
David Garske
fae6a974c8
Adds RSA support to wolfBoot using "SIGN=RSA2048". Includes RSA signing script tool in Python and instructions.
2019-12-17 09:44:02 -08:00
Daniele Lacamera
fc547e4a25
wolfBoot can update itself when compiled with RAM_CODE=1
...
- Added wolfBoot version
- Added extra 16bit header tag to identify the image type and authentication
- Implemented optional in-ram self-update of the bootloader, with version control
and authentication mechanism (not fail-safe)
2019-04-29 20:32:04 +02:00
Daniele Lacamera
75fc9cc59a
C Host key tools rewritten in python (fix for #4 )
2019-04-17 07:15:59 +02:00
Daniele Lacamera
17f382b995
Fixed ECC in keygen.py (requires latest wolfcrypt-py)
2019-04-17 07:05:48 +02:00
Daniele Lacamera
91cacce82a
Added python keygen tool
2019-04-17 07:05:48 +02:00