This commit adds CONFIG_BT_USE_PSA_API to allow the end user to prefer PSA APIs over TinyCrypt for crypto operations in bluetooth. Of course, this is possible only if a PSA provider is available on the system, i.e. CONFIG_PSA_CRYPTO_CLIENT is set. This commit also extends tests/bluetooth/bt_crypto adding a test case for PSA. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
13 lines
390 B
Plaintext
13 lines
390 B
Plaintext
# Copyright (c) 2022 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config BT_CRYPTO
|
|
bool
|
|
select TINYCRYPT if !BT_USE_PSA_API
|
|
select TINYCRYPT_AES if !BT_USE_PSA_API
|
|
select TINYCRYPT_AES_CMAC if !BT_USE_PSA_API
|
|
select PSA_WANT_KEY_TYPE_AES if BT_USE_PSA_API
|
|
select PSA_WANT_ALG_CMAC if BT_USE_PSA_API
|
|
help
|
|
This option enables the Bluetooth Cryptographic Toolbox.
|