Commit Graph

76 Commits (fb4dd67f6d7ac10c8dd2058bbd676a8a6c68f563)

Author SHA1 Message Date
Daniele Lacamera fb4dd67f6d Make pubkey lookup actually CT by not returning at the match 2026-03-09 19:51:35 +01:00
Daniele Lacamera 193d3d44c7 Fix more build issues in CI 2026-03-09 19:01:25 +01:00
Daniele Lacamera 8e5aec2c01 Fixed regressions in CI tests 2026-03-09 16:43:45 +01:00
Daniele Lacamera 9afe8a5e9a Do not rely on alignment when loading RSA exponent
F/369
2026-03-09 11:49:14 +01:00
Daniele Lacamera 819ae95989 QSPI: limit page-write loop to remaining bytes
F/221
2026-03-09 11:45:32 +01:00
Daniele Lacamera 1596b3b13b Add upper limit for PCI capabilities
Prevent loops on malformed PCI trees
F/232
2026-03-09 11:31:44 +01:00
Daniele Lacamera 314f0a5a2b RSA: validate key size buffer when decoding signature
F/93
2026-03-09 10:38:28 +01:00
Daniele Lacamera e73b518da0 Fix delta wb_patch double esc corner case
F/235
2026-03-09 10:11:55 +01:00
Daniele Lacamera 73f03f2b9f Self update: check size
Add a maximum size check for fw_size against the expected bootloader partition size

F/230
2026-03-09 10:02:15 +01:00
Daniele Lacamera 8a73b54ca0 GPT: verify the header CRC32 checksum stored in the header
F/229
2026-03-09 09:58:56 +01:00
Daniele Lacamera 66badb2874 Improved PSA & PKCS11 store write boundary checks
F/220
2026-03-09 09:51:08 +01:00
Paul Adelsbach 260a78e5e3 Fix string compare functions 2026-03-06 19:25:07 +01:00
Marco Oliverio 1e8bdfe1dc multiboot.c: add multiboot unit test 2026-03-05 09:43:32 +01:00
Daniele Lacamera a7b1002919 Fix image len bound check in update_ram.c 2026-03-02 13:37:23 +01:00
Daniele Lacamera d01077d417 Adfressed copilot's comments 2026-02-27 16:46:24 +01:00
Daniele Lacamera 5176764d8e Enforce checking signature size 2026-02-27 15:27:08 +01:00
Marco Oliverio 7305ebc7a7 unit-disk.c: add test with GPT table created by sfdisk 2026-02-27 15:09:36 +01:00
Marco Oliverio 1d00cbe0f2 unit-disk.c: don't make mock partitions overlaps 2026-02-27 15:09:36 +01:00
Marco Oliverio d149077549 unit-test: add disk and gpt unit testing 2026-02-27 15:09:36 +01:00
David Garske 38e2a1f89a
Merge pull request #695 from rizlik/fix-pci
Pci: fixes and unit testings
2026-02-25 14:56:03 -08:00
David Garske bd02eea7eb
Merge pull request #694 from danielinux/add-extra-verify-enc-fallback
Added extra verify step in encrypted fallback
2026-02-25 09:45:48 -08:00
Marco Oliverio b9ecbca141 pci: minor formatting 2026-02-25 18:30:26 +01:00
Daniele Lacamera 6d9ff5ca6f Adjusted bound check in unit test 2026-02-25 17:54:42 +01:00
Marco Oliverio 729f6a6e9e
Update tools/unit-tests/unit-pci.c
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-25 17:23:54 +01:00
Daniele Lacamera bdaa5ad38a Addressed copilot's comments 2026-02-25 17:03:13 +01:00
Marco Oliverio 45edf98dc7 unit: pci: add comprehensive pci unit test 2026-02-25 13:20:09 +01:00
Daniele Lacamera c9d94d6a78 Using 'len' iso magic number 70000 in test 2026-02-24 16:30:14 +01:00
Daniele Lacamera 4e119ce11c Addressed copilot's comment 2026-02-24 16:21:23 +01:00
Daniele Lacamera b180574097 Addressed copilot's comments 2026-02-24 14:19:22 +01:00
Daniele Lacamera 43f2273a7f Added extra verify step in encrypted fallback
Using the original IV
2026-02-24 11:34:48 +01:00
Daniele Lacamera 96228bdd25 Added boundary checks for delta image 2026-02-24 10:51:11 +01:00
Daniele Lacamera 2244688d70 Renamed function as suggested by copilot 2026-02-23 21:03:52 +01:00
Daniele Lacamera 6a5762d241 Addressed copilot review comments
- Converted 'strncat' to the standard POSIX behavior. Fixed fdt-parser
  to use the right len argument.
2026-02-23 21:03:52 +01:00
Daniele Lacamera 25ae592093 Fix strncasecmp bounds and alpha-only case folding
+ Added unit tests for string.c
2026-02-23 21:03:35 +01:00
Daniele Lacamera d9fe0f42df Fix spi_flash_write_page to stop at len or page boundary
+ Added unit tests for spi_flash.c
2026-02-23 17:56:27 +01:00
David Garske fd10a1d8a5 Patch to fix unit-test missing `wolfBoot_get_blob_version` 2025-10-30 16:31:27 +01:00
Daniele Lacamera 68ee02d36e Improved unit test coverage 2025-10-17 15:25:07 +02:00
gojimmypi fbd8dcf8a2
Update Copyright year to 2025 2025-10-15 11:33:53 -07:00
David Garske be15345d07
Merge pull request #597 from LinuxJedi/wolfpkcs11-2.0
wolfPKCS 2.0 support
2025-10-02 07:58:08 -07:00
Brett Nicholas 2e06a5fafe Refactor Makefiles to allow overriding library dependency paths 2025-10-02 15:16:27 +02:00
Andrew Hutchings 79cfce2d1d wolfPKCS 2.0 support
`wolfPKCS11_Store_Remove` was added in wolfPKCS11 2.0, support for it is
needed.
2025-10-01 14:17:39 +01:00
Daniele Lacamera 9e8ed9029e Update unit tests: inverted selection
after correcting update_trigger double write
2025-06-30 13:33:36 +02:00
Daniele Lacamera 076cd1d6c4 Fix for unit test failing 2025-03-04 18:20:46 +01:00
Daniele Lacamera 10cdc5408a Add env variable to unit test 2024-11-28 11:06:16 +01:00
David Garske aec2809212 Cleanups after hybrid signing PR. 2024-10-31 11:23:52 +01:00
Daniele Lacamera cc447ea879 Support for hybrid authentication (2 ciphers) 2024-10-30 13:17:06 +01:00
Daniele Lacamera 865e3ee6c3 Fixed wrong check due to fail_if refactoring 2024-09-06 16:55:57 +02:00
Daniele Lacamera 29729988a8 Removed deprecate libcheck API 2024-09-06 13:51:14 +02:00
Daniele Lacamera a1a7601314 Unit tests: cleanup warnings 2024-09-06 11:36:16 +02:00
Daniele Lacamera 6737d7e7ad Refactoring of PKCS11 store module + unit tests 2024-09-05 18:53:03 +02:00