Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start TinyCrypt deprecation #79566

Merged

Conversation

valeriosetti
Copy link
Collaborator

@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

@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 <[email protected]>
@valeriosetti valeriosetti force-pushed the deprecate-tinycrypt branch 2 times, most recently from fffff7c to a33c171 Compare October 10, 2024 09:53
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 <[email protected]>
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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove tags
referring to it.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove
TinyCrypt usage in random generators. This basically only affects
the CTR-DRBG random generator which from now only will only make
use of Mbed TLS.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
This is part of the deprecation of TinyCrypt zephyrproject-rtos#79566.

Following tests are completely removed:
- tests/crypto/tinycrypt
- tests/crypto/tinycrypt_hmac_prng

Whereas in tests/crypto/secp256r1 only usage of TinyCrypt
is removed.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
This is part of the deprecation of TinyCrypt zephyrproject-rtos#79566.

Following tests are completely removed:
- tests/crypto/tinycrypt
- tests/crypto/tinycrypt_hmac_prng

Whereas in tests/crypto/secp256r1 only usage of TinyCrypt
is removed.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
This is part of the deprecation of TinyCrypt zephyrproject-rtos#79566.

Following tests are completely removed:
- tests/crypto/tinycrypt
- tests/crypto/tinycrypt_hmac_prng

Whereas in tests/crypto/secp256r1 only usage of TinyCrypt
is removed.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove tags
referring to it.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove
TinyCrypt usage in random generators. This basically only affects
the CTR-DRBG random generator which from now only will only make
use of Mbed TLS.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
This is part of the deprecation of TinyCrypt zephyrproject-rtos#79566.

Following tests are completely removed:
- tests/crypto/tinycrypt
- tests/crypto/tinycrypt_hmac_prng

Whereas in tests/crypto/secp256r1 only usage of TinyCrypt
is removed.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 10, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
@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
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 29, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 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_HCI_ECC.
Rreference in samples/tests are also fixed.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove
TinyCrypt usage in random generators. This basically only affects
the CTR-DRBG random generator which from now only will only make
use of Mbed TLS.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Oct 30, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
mmahadevan108 pushed a commit that referenced this pull request Nov 5, 2024
As part of the deprecation process of TinyCrypt started in #79566,
this commit set the TinyCrypt based crypto shim driver as
deprecated.

Signed-off-by: Valerio Setti <[email protected]>
mmahadevan108 pushed a commit that referenced this pull request Nov 5, 2024
Following the deprecation of TinyCrypt (#79566) we remove tags
referring to it.

Signed-off-by: Valerio Setti <[email protected]>
mmahadevan108 pushed a commit that referenced this pull request Nov 5, 2024
Following the deprecation of TinyCrypt (#79566) we remove
TinyCrypt usage in random generators. This basically only affects
the CTR-DRBG random generator which from now only will only make
use of Mbed TLS.

Signed-off-by: Valerio Setti <[email protected]>
mmahadevan108 pushed a commit that referenced this pull request Nov 5, 2024
As part of TinyCrypt deprecation process (#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
valeriosetti added a commit to valeriosetti/zephyr that referenced this pull request Nov 6, 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 <[email protected]>
cooked pushed a commit to cooked/zephyr that referenced this pull request Nov 6, 2024
As part of the deprecation process of TinyCrypt started in zephyrproject-rtos#79566,
this commit set the TinyCrypt based crypto shim driver as
deprecated.

Signed-off-by: Valerio Setti <[email protected]>
cooked pushed a commit to cooked/zephyr that referenced this pull request Nov 6, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove tags
referring to it.

Signed-off-by: Valerio Setti <[email protected]>
cooked pushed a commit to cooked/zephyr that referenced this pull request Nov 6, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove
TinyCrypt usage in random generators. This basically only affects
the CTR-DRBG random generator which from now only will only make
use of Mbed TLS.

Signed-off-by: Valerio Setti <[email protected]>
cooked pushed a commit to cooked/zephyr that referenced this pull request Nov 6, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
andrewnyland pushed a commit to onceLabs/zephyr that referenced this pull request Nov 6, 2024
As part of the deprecation process of TinyCrypt started in zephyrproject-rtos#79566,
this commit set the TinyCrypt based crypto shim driver as
deprecated.

Signed-off-by: Valerio Setti <[email protected]>
andrewnyland pushed a commit to onceLabs/zephyr that referenced this pull request Nov 6, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove tags
referring to it.

Signed-off-by: Valerio Setti <[email protected]>
andrewnyland pushed a commit to onceLabs/zephyr that referenced this pull request Nov 6, 2024
Following the deprecation of TinyCrypt (zephyrproject-rtos#79566) we remove
TinyCrypt usage in random generators. This basically only affects
the CTR-DRBG random generator which from now only will only make
use of Mbed TLS.

Signed-off-by: Valerio Setti <[email protected]>
andrewnyland pushed a commit to onceLabs/zephyr that referenced this pull request Nov 6, 2024
As part of TinyCrypt deprecation process (zephyrproject-rtos#79566) this commit
removes usage of this library from the JWT subsystem and its
related tests.

Signed-off-by: Valerio Setti <[email protected]>
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