Skip to content

ARM cryptoCell: improve (de)initialization logic - #11266

Open
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-11241
Open

ARM cryptoCell: improve (de)initialization logic#11266
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-11241

Conversation

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor

Description

ARM cryptoCell: improve (de)initialization logic

Fixes F-11241

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@holtrop-wolfssl holtrop-wolfssl self-assigned this Aug 25, 2026
Copilot AI lite review requested due to automatic review settings August 25, 2026 18:34
@wolfSSL-Bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Improves ARM CC310 CryptoCell init/free sequencing by tracking a single initialized state and adding cleanup on failure paths.

Changes:

  • Replace enable reference counting with a single cc310_initialized guard.
  • Add rollback/cleanup on SaSi_LibInit / CRYS_RndInit failures.
  • Guard cc310_Free() so it only deinitializes when initialized.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
Comment thread wolfcrypt/src/port/arm/cryptoCell.c
@holtrop-wolfssl
holtrop-wolfssl force-pushed the f-11241 branch 2 times, most recently from ed14a0c to 6696a4f Compare August 26, 2026 19:19
@holtrop-wolfssl

Copy link
Copy Markdown
Contributor Author

retest this please (job removed)

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor Author

retest this please (Unable to get pull request builder trigger!!)

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