Commit Graph

1978 Commits (a04f234b85825f7f2a6d469cbb2225311b49f65c)

Author SHA1 Message Date
John Bland a04f234b85 remove sector alignment check 2024-12-30 15:31:32 +01:00
John Bland c75101e999 stop the selSec from being applied twice to lastSector 2024-12-30 15:31:32 +01:00
Marco Oliverio 7008f68707 kontron-vx3060-s2: simplify example, add build test, improve docs 2024-12-19 20:12:16 +01:00
Marco Oliverio 1276e152b6 gpt: fix spelling error 2024-12-19 20:12:16 +01:00
Marco Oliverio 834a712350 fsp: move TempRamInitExit and later APIs in stage2
To avoid using Flash memory after TempRamInitExit. This protects against
malicious modification/injection of the flash after Cache-As-RAM is
disabled.
2024-12-19 20:12:16 +01:00
Marco Oliverio 151de7fd0b fsp: minor: remove unused parameter from jump_into_wolfboot 2024-12-19 20:12:16 +01:00
Marco Oliverio dab560549a fsp: refactor out common fsp routines 2024-12-19 20:12:16 +01:00
Marco Oliverio b8a81de965 x86: add wrapper to run 32bit code in 64bit long mode 2024-12-19 20:12:16 +01:00
Marco Oliverio 6358153372 x86: add support for gdt table in C 2024-12-19 20:12:16 +01:00
John Bland aa01f6e41c move disable backup flag to correct spot 2024-12-17 14:46:24 +01:00
John Bland 3b0b025cb7 fix wrong conditional compile flag 2024-12-17 14:46:24 +01:00
John Bland e24a658c89 fix comments 2024-12-17 14:46:24 +01:00
John Bland f5e3e0c8a5 unlock flash when updating partition state 2024-12-17 14:46:24 +01:00
John Bland b518782a4b fix all cases where flash was written or erased while locked 2024-12-17 14:46:24 +01:00
John Bland 665641dc13 update tests to properly simulate flash locks
add hal_flash_unlock after setting the key since setting the key locks flash
2024-12-17 14:46:24 +01:00
John Bland b52c9387aa update footprint 2024-12-17 14:46:24 +01:00
John Bland 328b063467 properly unlock flash on re-entry of wolfBoot_swap_and_final_erase
and move it out of the lock logic of update and delta update
2024-12-17 14:46:24 +01:00
Brett Nicholas 497d42a080 Update wolfHSM.md 2024-12-16 19:14:24 +01:00
Brett Nicholas 0a63f0f4aa Update wolfHSM.md
add ML-DSA to list of supported algorithms for wolfHSM
2024-12-16 19:14:24 +01:00
Brett Nicholas 638787e296 cast malloc result 2024-12-16 19:12:23 +01:00
Brett Nicholas 0d18b25a2e fix keytools public key der export to use ml-dsa level passed as env var 2024-12-16 19:12:23 +01:00
Brett Nicholas 9454deb360 add test for wolfHSM ml-dsa to CI 2024-12-16 19:12:23 +01:00
Brett Nicholas 4b8e4b7907 Additional fixes for new keytool features introduced in #521 2024-12-16 19:12:23 +01:00
Brett Nicholas ceffc788dd - support for wolfHSM ML-DSA on simulator and AURIX (DMA only)
- consolidate AURIX scripts into wbaurixtool.sh
- documentation updates
2024-12-16 19:12:23 +01:00
Brett Nicholas 21a4082952
Merge pull request #521 from danielinux/build-keytools-windows
Remove compile-time dependencies from key tools
2024-12-05 16:56:42 -07:00
David Garske fae36f2adf Reserve enough size for the ML-DSA public key in gen. 2024-12-05 14:44:30 -08:00
David Garske 6bed80fbc2 ML-DSA default is level 2. The keytools must be able to support all ML-DSA levels at run-time using `ML_DSA_LEVEL` environment variable. wolfBoot needs to be built with the correct level specified in the .config. 2024-12-05 14:25:43 -08:00
David Garske 4991eabb18 Peer review fixes. Default to ML-DSA level 2. 2024-12-05 13:39:47 -08:00
David Garske 35b98e723b Fix the Windows keytools artifact upload. 2024-12-05 11:32:22 -08:00
David Garske 29794f2ad8 Update wolfssl submodule to latest master that includes https://github.com/wolfSSL/wolfssl/pull/8257 2024-12-05 10:50:25 -08:00
David Garske 8cdefaae20 Fix to remove ext_XMS artifact from keytools Makefile. Caused mingw readdir error. 2024-12-05 10:45:52 -08:00
David Garske 4ac4de51ac Fix ML-DSA level comment. 2024-12-05 10:29:00 -08:00
David Garske eddf0bd234 Progress getting the Windows tools to build. 2024-12-05 08:36:02 -08:00
Daniele Lacamera c3fe5055f6 Fix check on ML_DSA pubkey size at runtime 2024-12-03 15:23:40 +01:00
Daniele Lacamera 51eff3e71d Adjusted size for ML_DSA build 2024-12-03 15:03:45 +01:00
Daniele Lacamera 5ab661677f keygen: removed compile-time parameters (lms, xmss) 2024-12-03 14:58:49 +01:00
Daniele Lacamera d5e402ebde Removing compile-time parameters from keygen 2024-12-03 14:50:54 +01:00
Daniele Lacamera 7132a13545 Complete generic sign 2024-12-03 11:10:16 +01:00
David Garske 06bbed4280 Peer review feedback. 2024-12-02 19:41:26 +01:00
David Garske 463c482692 Fix for building NXP LS1028A with SPI enabled. 2024-12-02 19:41:26 +01:00
David Garske 2709af28c2 For Rasp3 don't try and load the .data region (already running from RAM) by setting NO_XIP. 2024-12-02 19:41:26 +01:00
David Garske a07f3783b6 More fixes for aarch64 platforms. 2024-12-02 19:41:26 +01:00
David Garske d6ca1e1a88 Fixes for Raspi and Zynqmp builds. 2024-12-02 19:41:26 +01:00
David Garske 6e39fd1b63 Fix build for ZCU102. Fix ARM ASM defaults. 2024-12-02 19:41:26 +01:00
David Garske 7500ae9526 Fix arch.mk aarch64 and ASM. 2024-12-02 19:41:26 +01:00
David Garske fea8610ae7 Reverted boot assembly back to changes from original PR #306. This version was a refactor work in progress. 2024-12-02 19:41:26 +01:00
David Garske 467bfc7770 Cleanup arch.mk. 2024-12-02 19:41:26 +01:00
David Garske d007c9af08 Initial support for NXP LS1028A. Booting into OCRAM app. Updates to ARMv8 startup. 2024-12-02 19:41:26 +01:00
Daniele Lacamera 04d2ecd246 Remove dependency from PQC parameters. Speed up tests. 2024-12-02 18:55:32 +01:00
Daniele Lacamera b2bf2988d3 Shorten tests by not re-building keytools 2024-12-02 14:19:01 +01:00