Daniele Lacamera
7b51eef290
Fixed comparison of RSA4096 header size in sign.py
2022-03-02 17:46:35 +01:00
David Garske
262a5b0a78
Merge pull request #167 from danielinux/aes-encryption
...
Add AES encryption support
2022-02-09 10:55:51 -08:00
Daniele Lacamera
67912790de
Fixed Chacha in C keytools
2022-02-07 16:39:56 +01:00
Daniele Lacamera
61275ec9dd
Update Chacha ENCRYPT_BLOCK_SIZE to match IV ctr
2022-02-07 16:35:25 +01:00
Daniele Lacamera
92e9a443fb
Updated key tools to use complete IV range for AES
2022-02-07 10:51:18 +01:00
Daniele Lacamera
bd69326e0f
Propagate the selected IMAGE_HEADER_SIZE to sign.c
2022-02-02 12:23:32 +01:00
Daniele Lacamera
daff2a04a8
Fixed STM32L4 HAL, added IMAGE_HEADER_SIZE option
2022-02-02 12:05:14 +01:00
Daniele Lacamera
a9cbb91892
Added support for --aes128/--aes256 in sign.c
2022-01-31 18:16:19 +01:00
Daniele Lacamera
43a5a38629
Fixes to AES-CTR encryption after testing
2022-01-31 16:46:09 +01:00
Daniele Lacamera
b656e4abef
Support for --aes128 and --aes256 in sign.py
2022-01-28 20:26:59 +01:00
Daniele Lacamera
b7406994c0
Fix alignment of delta fields in sign.c
2022-01-20 17:52:59 +01:00
Daniele Lacamera
5be0b42c8d
Fixed delta manifest header alignment
2022-01-17 13:34:54 +01:00
Elms
e42094e23c
tools: windows solution using windows slashes for includes
2021-12-15 08:46:06 -08:00
Elms
8726c1cc42
tools: Add ed448 for windows solutions
2021-12-15 08:46:06 -08:00
Elms
fa8284e448
tools: update sign tool solution for windows
2021-12-15 08:46:06 -08:00
Daniele Lacamera
845fd02edf
Added tests for ed448, fixed sign.py
2021-12-14 16:55:10 +01:00
Daniele Lacamera
241099eebf
Added Ed448 support for python keytools
...
Depends on https://github.com/wolfSSL/wolfcrypt-py/pull/25/
2021-12-13 13:52:06 +01:00
Daniele Lacamera
2e7b63eae5
Adding support for ED448 verification
2021-12-13 12:05:37 +01:00
Daniele Lacamera
157a03edd3
Fixed key import ranges in ecc sign.py
...
Same fix as wolfcrypt-py/b79527f876385ecfc23ff47696c32eaf74ff792c
The array slicing in ecc.decode_key_raw() call wrongly assumed array as
inclusive (i.e. [0:31] to include from 0 to 31, instead of the correct
form [0:32]).
2021-09-27 19:19:31 +02:00
Daniele Lacamera
b29aea4422
Fixed keytools error handling. Removed inclusion of target.h.
2021-09-06 17:45:41 +02:00
David Garske
cabbb5e556
Fix for building key tools to make sure target.h exists. Fix key tool warnings.
2021-08-31 07:06:34 -07:00
Daniele Lacamera
012bba3ce3
Fixed after review comments
2021-08-20 10:10:51 +02:00
Daniele Lacamera
25eb2b963e
Added header tags for inverse update, fixed sign.c
2021-08-19 19:04:04 +02:00
Daniele Lacamera
39ee01a948
Added roll-back feature via inverse patch
2021-08-17 15:44:34 +02:00
Daniele Lacamera
092783b0ea
Refactoring of sign.c to add delta updates
2021-08-16 12:04:06 +02:00
Daniele Lacamera
11959dac9f
Fixed sign.py, delta offset. Simplest case update works.
2021-08-16 11:59:46 +02:00
Daniele Lacamera
b74a4f69e2
Changed delta mechanism + added key tool diff function
2021-08-16 11:59:45 +02:00
David Garske
d38de3b432
Update copyright year
2021-07-19 07:50:02 -07:00
Daniele Lacamera
d763d63e65
Fixed/unified keytool sign warning on NO_SIGN
2021-06-28 13:52:00 +02:00
Daniele Lacamera
f2bab09777
Added support for SIGN=NONE
2021-06-28 13:52:00 +02:00
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