Skip to content

[Microchip TA-100] Fix port + update to cryptoauthlib v3.6.0#9702

Open
danielinux wants to merge 14 commits intowolfSSL:masterfrom
danielinux:ta100_2025
Open

[Microchip TA-100] Fix port + update to cryptoauthlib v3.6.0#9702
danielinux wants to merge 14 commits intowolfSSL:masterfrom
danielinux:ta100_2025

Conversation

@danielinux
Copy link
Member

Description

Rework of TA-100 support to match cryptoauthlib v3.6.0's API. AES-GCM now working.

Fixes zd#20640

Testing

Used wolfDemo board (STM32U585) + TA100 mikrobus module.

Test log (with verbose TA-100 interactions) attached.

test_12a16e6cc.log

Copilot AI review requested due to automatic review settings January 22, 2026 17:00

This comment was marked as outdated.

Copy link
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

Copilot reviewed 19 out of 19 changed files in this pull request and generated 11 comments.


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

@dgarske
Copy link
Contributor

dgarske commented Feb 12, 2026

Jenkins retest this please.

@dgarske dgarske requested a review from tmael February 12, 2026 05:49
@dgarske
Copy link
Contributor

dgarske commented Feb 19, 2026

Jenkins retest this please

@dgarske
Copy link
Contributor

dgarske commented Feb 20, 2026

@danielinux Please rebase and squash this. Hopefully that will resolve things.

@dgarske
Copy link
Contributor

dgarske commented Mar 4, 2026

@tmael can you please help get this PR rebased, merge conflicts resolved and ready for merge? This work has been lingering for way too long.

Copilot AI review requested due to automatic review settings March 5, 2026 01:13
Copy link
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Copilot AI review requested due to automatic review settings March 5, 2026 23:30
Copy link
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@dgarske dgarske added the For This Release Release version 5.9.0 label Mar 6, 2026
dgarske
dgarske previously approved these changes Mar 6, 2026
if (ret) {
goto exit_rsa;
}
ret = wc_RsaPublicEncrypt(in, inLen, out, 256, key, &rng);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not duplicate these lines. Just make sure outSz = 256 and use the single call below.

@douzzer douzzer removed the Staged Staged for merge pending final test results and review label Mar 9, 2026
Copilot AI review requested due to automatic review settings March 11, 2026 18:39
Copy link
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@dgarske dgarske added Not For This Release Not for release 5.9.0 and removed For This Release Release version 5.9.0 labels Mar 13, 2026
@dgarske
Copy link
Contributor

dgarske commented Mar 19, 2026

Jenkins retest this please

@dgarske
Copy link
Contributor

dgarske commented Mar 19, 2026

@tmael please change build errors. Might just need to rebase and force push.

@dgarske dgarske assigned tmael and unassigned tmael Mar 19, 2026
byte keyIdSet;
#endif
#if defined(WOLFSSL_MICROCHIP_TA100)
uint16_t rKeyH; /* private key handle */
Copy link
Contributor

Choose a reason for hiding this comment

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

word16?

Copy link
Contributor

Choose a reason for hiding this comment

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

uint16_t is fine since it matches what is in cryptauthlib

plain = NULL;
TEST_SLEEP();

#if defined(WOLFSSL_MICROCHIP_TA100)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this flow be used for all cases (not just TA100)? Or maybe its good to test both API methods in non TA100 case?

Copy link
Contributor

Choose a reason for hiding this comment

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

I’m unsure and don’t want to introduce any side effects for non-TA100 tests.

ERROR_OUT(WC_TEST_RET_ENC_EC(ret), exit_rsa);
#endif

#if defined(WOLFSSL_KEY_GEN) && defined(WOLFSSL_MICROCHIP_TA100)
Copy link
Contributor

Choose a reason for hiding this comment

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

Again couldn't this be useful in other non TA-100 cases too?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not useful. Non-TA100 use cases already use keys from a buffer, and we have key generation tests in other areas.

Copilot AI review requested due to automatic review settings March 20, 2026 15:37
Copy link
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Copilot AI review requested due to automatic review settings March 21, 2026 00:59
Copy link
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not For This Release Not for release 5.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants