Skip to content

devcrypto fixes, forcezero on memory after use, RX64 GetHash port fix, blake2 stor64 alignment#10508

Open
JacobBarthelmeh wants to merge 10 commits into
wolfSSL:masterfrom
JacobBarthelmeh:static_analysis_3
Open

devcrypto fixes, forcezero on memory after use, RX64 GetHash port fix, blake2 stor64 alignment#10508
JacobBarthelmeh wants to merge 10 commits into
wolfSSL:masterfrom
JacobBarthelmeh:static_analysis_3

Conversation

@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

Fenrir fixes

@JacobBarthelmeh JacobBarthelmeh self-assigned this May 20, 2026
Copilot AI review requested due to automatic review settings May 20, 2026 23:12
Copy link
Copy Markdown
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 bundles several small fixes across hardware/port backends and crypto primitives, mainly addressing correctness in devcrypto parameter setup, sensitive-memory cleanup, and a Renesas RX64 SHA “empty input” edge case.

Changes:

  • Fix devcrypto struct initialization/parameter sizing issues (AEAD memset size, RSA n/d bit-size mix-up, ECDSA kop initialization).
  • Add/expand sensitive-memory zeroization after use (TropicSquare pairing keys; NXP DCP AES key scratch buffer).
  • Add RX64 SHA “GetHash on empty state” handling to return the documented empty-message digest.

Reviewed changes

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

Show a summary per file
File Description
wolfssl/wolfcrypt/blake2-impl.h Adjusts fast-path load/store selection for alignment-sensitive targets.
wolfcrypt/src/rc2.c Tightens 16-bit word assembly casts when reading input blocks.
wolfcrypt/src/port/tropicsquare/tropic01.c Zeroizes stored pairing keys on deinit.
wolfcrypt/src/port/Renesas/renesas_rx64_hw_sha.c Returns correct empty-message digest in RX64_HashGet for freshly inited hashes.
wolfcrypt/src/port/nxp/dcp_port.c Adds key scratch-buffer zeroization around DCP AES SetKey/Free.
wolfcrypt/src/port/devcrypto/wc_devcrypto.c Fixes AEAD crypt_auth_op memset size.
wolfcrypt/src/port/devcrypto/devcrypto_rsa.c Fixes RSA private op parameter bit-size assignments for n/d.
wolfcrypt/src/port/devcrypto/devcrypto_ecdsa.c Ensures crypt_kop is fully zero-initialized before ioctl.
linuxkm/lkcapi_aes_glue.c Uses Linux errno (-ENOMEM) instead of wolfSSL error code for allocation failure.

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

Comment thread wolfssl/wolfcrypt/blake2-impl.h
Comment thread wolfcrypt/src/port/nxp/dcp_port.c
Comment thread wolfcrypt/src/port/nxp/dcp_port.c
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

MemBrowse Memory Report

No memory changes detected for:

@JacobBarthelmeh JacobBarthelmeh marked this pull request as ready for review May 21, 2026 17:08
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.

3 participants