mirror of
https://github.com/espressif/openthread.git
synced 2026-10-05 15:27:40 +00:00
[crypto] PSA API: set platform key references for PSA automatically
This commit configures the OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE based on the chosen crypto library. Signed-off-by: Łukasz Duda <[email protected]>
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
#ifndef CONFIG_PLATFORM_H_
|
#ifndef CONFIG_PLATFORM_H_
|
||||||
#define CONFIG_PLATFORM_H_
|
#define CONFIG_PLATFORM_H_
|
||||||
|
|
||||||
#include "config/srp_server.h"
|
#include "config/crypto.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup config-platform
|
* @addtogroup config-platform
|
||||||
@@ -154,9 +154,13 @@
|
|||||||
* @def OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
|
* @def OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
|
||||||
*
|
*
|
||||||
* Define to 1 if you want to enable key ref usage support as defined by platform.
|
* Define to 1 if you want to enable key ref usage support as defined by platform.
|
||||||
|
*
|
||||||
|
* This config is enabled by default for PSA Crypto backend.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
|
#ifndef OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
|
||||||
#define OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE 0
|
#define OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE \
|
||||||
|
(OPENTHREAD_CONFIG_CRYPTO_LIB == OPENTHREAD_CONFIG_CRYPTO_LIB_PSA)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user