Skip to content

Commit a387955

Browse files
frkvrlubos
authored andcommitted
crypto: Add deprecation for MBEDTLS_LEGACY_CRYPTO_C
-This commit adds DEPRECATED for anyone who is enabling MBEDTLS_LEGACY_CRYPTO_C. -This commit also adds a special configuration to silence the deprecation warning in the cases where PSA crypto lacks support Signed-off-by: Frank Audun Kvamtrø <[email protected]>
1 parent bc98125 commit a387955

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

subsys/nrf_security/Kconfig.legacy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,20 @@ config MBEDTLS_MPI_MAX_SIZE
289289
default 384 if CC312_BACKEND
290290
range 256 2048
291291

292+
config MBEDTLS_LEGACY_CRYPTO_C_SILENCE_DEPRECATION
293+
bool
294+
help
295+
Prompt-less configuration that can be set by subsystems that still are
296+
dependent on legacy Mbed TLS APIs to build and run. Setting this
297+
removes warnings for the deprecated MBEDTLS_LEGACY_CRYPTO_C Kconfig.
298+
292299
config MBEDTLS_LEGACY_CRYPTO_C
293300
bool
294301
prompt "Enable (legacy) mbed TLS crypto APIs"
302+
select DEPRECATED if !MBEDTLS_LEGACY_CRYPTO_C_SILENCE_DEPRECATION
295303
help
296304
Enable support for legacy mbed TLS APIs.
297-
Note that this is a configuration that may be removed at some point.
305+
Note that this is a configuration that will be removed.
298306
It is only provided during a transition period while PSA Crypto APIs become
299307
the defacto front-end. Enabling this will enable nrf_oberon for all features that
300308
are supported and builtin for the remaining functionality.

0 commit comments

Comments
 (0)