Skip to content

Reduce build size for wolfCrypt and fix Vorago documentation#708

Open
dgarske wants to merge 1 commit intowolfSSL:masterfrom
dgarske:crypt_testbench
Open

Reduce build size for wolfCrypt and fix Vorago documentation#708
dgarske wants to merge 1 commit intowolfSSL:masterfrom
dgarske:crypt_testbench

Conversation

@dgarske
Copy link
Contributor

@dgarske dgarske commented Mar 3, 2026

Example output on Vorago VA416XX board:

wolfBoot HAL Init
Boot partition: 0xB800 (sz 101460, ver 0x1, type 0x601)
Partition 1 header magic 0x00000000 invalid at 0x25800
Boot partition: 0xB800 (sz 101460, ver 0x1, type 0x601)
Booting version: 0x1
========================
VA416x0 wolfBoot demo Application
Copyright 2025 wolfSSL Inc
GPL v3
Version : 0x1
========================

System information
====================================
Firmware version : 0x1
Current firmware state: NEW
No image in update partition.

Bootloader OTP keystore information
====================================
Number of public keys: 1

  Public Key #0: size 96, type 6, mask FFFFFFFF
  ====================================
  B9 93 1B 29 C5 2A 7E CF 6C 3F E8 49 61 6A 8D 5B 
  A7 0F 36 87 84 64 2A 3B BE 87 60 E7 9B FF C0 FB 
  7E 66 B5 5C AB 79 DD 9E D8 AC 4D 82 47 29 C6 F0 
  C1 BF 70 6B 45 9E 00 4D AE 08 9D E2 5C A2 05 52 
  1A 14 2E 13 CF 5A 98 69 1E B0 01 1B 5F 4B 2B 94 
  91 16 B3 24 5F C2 67 90 C9 41 F4 D0 87 D6 6F DB 
  

Running wolfCrypt tests...
------------------------------------------------------------------------------
 wolfSSL version 5.8.4
------------------------------------------------------------------------------
macro    test passed!
error    test passed!
MEMORY   test passed!
asn      test passed!
SHA-256  test passed!
SHA-384  test passed!
SHA-512  test passed!
RANDOM   test passed!
Hash     test passed!
HMAC-SHA256 test passed!
HMAC-SHA384 test passed!
HMAC-SHA512 test passed!
AES      test passed!
AES192   test passed!
AES256   test passed!
AES-CBC  test passed!
ECC      test passed!
ECC buffer test passed!
logging  test passed!
mutex    test passed!
memcb    test passed!
Test complete
Tests complete.

@dgarske dgarske self-assigned this Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 17:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces wolfCrypt build size via configuration changes in user_settings.h and updates Vorago VA416XX documentation offsets to match the current partition layout.

Changes:

  • Tighten feature macros to exclude certain algorithms/features in test/benchmark and/or embedded builds.
  • Disable SHA-512/224 and SHA-512/256 when enabling SHA-512 (to reduce footprint).
  • Fix VA416XX bin-assemble image offsets in documentation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
include/user_settings.h Adjusts wolfCrypt/wolfSSL feature macros to reduce compiled footprint.
docs/Targets.md Updates documented flash offsets for VA416XX images.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants