Skip to content

fixes for CC-RH compatibility#407

Open
miyazakh wants to merge 1 commit into
wolfSSL:mainfrom
miyazakh:ccrh_comp
Open

fixes for CC-RH compatibility#407
miyazakh wants to merge 1 commit into
wolfSSL:mainfrom
miyazakh:ccrh_comp

Conversation

@miyazakh

Copy link
Copy Markdown
Contributor

Renesas CC-RH compiler doesn't allow the following line

byte* p = (uint8_t*)(in + sizeof(foo));

@miyazakh miyazakh self-assigned this Jun 12, 2026
Copilot AI review requested due to automatic review settings June 12, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates pointer arithmetic in the server crypto RSA handler to be compatible with the Renesas CC-RH compiler by ensuring byte-wise pointer addition is performed on a byte-pointer type (rather than on a void* or other non-byte pointer type).

Changes:

  • Adjusted cryptoDataIn/cryptoDataOut pointer offset calculations in _HandleRsaFunction to cast before adding sizeof(...).

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

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #407

Scan targets checked: wolfhsm-crypto-bugs, wolfhsm-src

No new issues found in the changed files. ✅

@miyazakh miyazakh assigned wolfSSL-Bot and unassigned miyazakh Jun 12, 2026
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