Skip to content

Conversation

@valeriosetti
Copy link
Contributor

@valeriosetti valeriosetti commented Oct 8, 2024

Description

This PR:

Work in progress

Remove all usages of TinyCrypt from the Zephyr's codebase as required from the API Lifecycle documentation

To do

@valeriosetti valeriosetti requested a review from tomi-font October 8, 2024 15:35
@rettichschnidi
Copy link
Contributor

rettichschnidi commented Oct 8, 2024

Maybe also mention that TinyCrypt is no longer maintained upstream?

@ceolin
Copy link
Member

ceolin commented Oct 9, 2024

Wonderful !

valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
Remove the TinyCrypt's crypto shim driver and its usage in the
samples.
This is part of the deprecation process of TinyCrypt started
in zephyrproject-rtos#79566.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
@valeriosetti valeriosetti force-pushed the deprecate-tinycrypt branch 2 times, most recently from fffff7c to a33c171 Compare October 10, 2024 09:53
@valeriosetti valeriosetti marked this pull request as ready for review October 10, 2024 14:56
@zephyrbot zephyrbot added area: Crypto / RNG Release Notes To be mentioned in the release notes labels Oct 10, 2024
cvinayak pushed a commit to cvinayak/zephyr that referenced this pull request Nov 14, 2024
As part of the deprecation process of TinyCrypt in Zephyr codebase
(zephyrproject-rtos#79566) this commit removes CONFIG_BT_USE_PSA_API symbol. This
was used in BT crypto/host modules to select PSA crypto API over
TinyCrypt (which was the default until now). Since TinyCrypt is
removed and PSA crypto API is the new standard library for crypto
operations, CONFIG_BT_USE_PSA_API is no more needed.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
cvinayak pushed a commit to cvinayak/zephyr that referenced this pull request Nov 14, 2024
As part of the deprecation process of TinyCrypt in Zephyr codebase
(zephyrproject-rtos#79566) this commit sets PSA Crypto API as the default library
to perform ECC-DH in HCI, replacing TinyCrypt. Therefore the
symbol BT_TINYCRYPT_ECC is renamed as BT_SEND_ECC_EMULATION.
Rreference in samples/tests are also fixed.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
cvinayak pushed a commit to cvinayak/zephyr that referenced this pull request Nov 14, 2024
As part of the deprecation process of TinyCrypt in Zephyr codebase
(zephyrproject-rtos#79566) this commit removes TinyCrypt usage from BT mesh and
also the related CONFIG_BT_MESH_USES_TINYCRYPT symbol and it sets
PSA Crypto APIs as the default library for crypto operations.
Tests are also updated in this commit.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
cvinayak pushed a commit to cvinayak/zephyr that referenced this pull request Nov 14, 2024
As part of the deprecation process of TinyCrypt in Zephyr codebase
(zephyrproject-rtos#79566) this commit modified the dependencies of BT_RPA. Instead
of selecting TinyCrypt, it relies on BT_HOST_CRYPTO or
BT_CTLR_CRYPTO. This helps both in the deprecation process of
TinyCrypt, but also this is more correct dependency since these
2 symbols are extensively used in the rpa.c source code.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Crypto / RNG Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants