Skip to content

Conversation

@kaabia
Copy link

@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

- 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 <[email protected]>
@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
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.

4 participants