Skip to content

Conversation

@kaabia
Copy link
Contributor

@kaabia kaabia commented Nov 8, 2025

This Pull Request standardizes message field translation using internal macros and implements several fixes to enhance message handling safety and consistency across communication and crypto message files;

Key changes:

  • Replace wh_Translate32/64 usages with WH_T32/WH_T64/WH_T64 macros in message translation files.
  • Make internal DMA translation helpers static and add NULL checks.
  • Change hashType from int to uint32_t in wh_message_crypto.h for consistent (de)serialization.

@wolfSSL-Bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@bigbrett bigbrett left a comment

Choose a reason for hiding this comment

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

@kaabia please remove the changes I flagged as unnecessary

@kaabia kaabia force-pushed the fix/translate-macros-and-stray-tokens branch from 3bcb435 to 3e1df6e Compare November 12, 2025 21:56
@kaabia kaabia requested a review from bigbrett November 12, 2025 21:56
@bigbrett bigbrett assigned billphipps and unassigned bigbrett and jackctj117 Dec 12, 2025
@bigbrett bigbrett requested a review from billphipps December 12, 2025 15:58
@bigbrett
Copy link
Contributor

@kaabia looks like CI is failing. Could you please rebase this ontop of the latest? I believe that will fix the CI falure.

- Replace wh_Translate32/64 usages with WH_T32/WH_T64/WH_T64 macros
  in message translation files.
- Use WH_NVM_LABEL_LEN for label memcpy to avoid sizeof mismatch.
- Make internal DMA translation helpers static and add NULL checks.
- Change hashType from int to uint32_t in wh_message_crypto.h
  for consistent (de)serialization.

Signed-off-by: Badr Bacem KAABIA <badrbacemkaabia@gmail.com>
@kaabia kaabia force-pushed the fix/translate-macros-and-stray-tokens branch from 3e1df6e to 4828814 Compare December 17, 2025 20:52
@kaabia
Copy link
Contributor Author

kaabia commented Dec 17, 2025

@kaabia looks like CI is failing. Could you please rebase this ontop of the latest? I believe that will fix the CI falure.

Sorry for the late respond.
Done, branch rebased ontop of last main commit nad CI commit gate PASS

@billphipps billphipps merged commit 33bc5c8 into wolfSSL:main Dec 17, 2025
21 checks passed
@kaabia kaabia deleted the fix/translate-macros-and-stray-tokens branch December 17, 2025 21:21
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.

5 participants