Skip to content

Conversation

@valeriosetti
Copy link
Contributor

@valeriosetti valeriosetti commented Dec 2, 2025

Retrieve the desired tag length from the "struct cipher_ctx" being passed to "cipher_begin_session()" when using CCM.

Fixes #100338

@spiriou I cannot add you as reviewer, however since you reported the issue I would like you to take a look.

@zephyrbot zephyrbot added area: Settings Settings subsystem area: Tests Issues related to a particular existing or missing test area: Secure Storage Secure Storage area: Crypto / RNG area: Samples Samples labels Dec 2, 2025
@valeriosetti valeriosetti added the bug The issue is a bug, or the PR is fixing a bug label Dec 2, 2025
@sylvioalves
Copy link
Contributor

@valeriosetti Confirm whether only the commit a6f0620 fixes the issue described?

@valeriosetti
Copy link
Contributor Author

@valeriosetti Confirm whether only the commit a6f0620 fixes the issue described?

oh damn, I just realized that in order to quickly fix this, I created the feature branch on top of the review I was doing. My apologies for this bad mistake. I will update immediately

Retrieve the desired tag length from the "struct cipher_ctx" being passed
to "cipher_begin_session()" when using CCM.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

@nashif nashif merged commit 4cf7cd5 into zephyrproject-rtos:main Dec 4, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Crypto / RNG area: Samples Samples area: Secure Storage Secure Storage area: Settings Settings subsystem area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regression in mbedtls_shim: CRYPTO_CIPHER_MODE_CCM not working with tag_len < 8

6 participants