Crypto Backend Library

This module includes configuration variables for the Crypto Backend Library.

Summary

Macros

OPENTHREAD_CONFIG_CRYPTO_LIB OPENTHREAD_CONFIG_CRYPTO_LIB_MBEDTLS
Selects the crypto backend library for OpenThread.
OPENTHREAD_CONFIG_CRYPTO_LIB_MBEDTLS 0
Use mbedtls as crypto library.
OPENTHREAD_CONFIG_CRYPTO_LIB_PLATFORM 2
Use platform provided crypto library.
OPENTHREAD_CONFIG_CRYPTO_LIB_PSA 1
Use ARM Platform Security Library as crypto library.
OPENTHREAD_CONFIG_CRYPTO_PLATFORM_ALLOCS_CONTEXT 0
Define to 1 to enable the platform to allocate crypto operation context.
OPENTHREAD_CONFIG_CRYPTO_PLATFORM_CCM_ONE_SHOT_ENABLE 0
Define to 1 to enable platform one-shot AES-CCM* acceleration.

Macros

OPENTHREAD_CONFIG_CRYPTO_LIB

 OPENTHREAD_CONFIG_CRYPTO_LIB OPENTHREAD_CONFIG_CRYPTO_LIB_MBEDTLS

Selects the crypto backend library for OpenThread.

There are several options available

OPENTHREAD_CONFIG_CRYPTO_LIB_MBEDTLS

 OPENTHREAD_CONFIG_CRYPTO_LIB_MBEDTLS 0

Use mbedtls as crypto library.

OPENTHREAD_CONFIG_CRYPTO_LIB_PLATFORM

 OPENTHREAD_CONFIG_CRYPTO_LIB_PLATFORM 2

Use platform provided crypto library.

OPENTHREAD_CONFIG_CRYPTO_LIB_PSA

 OPENTHREAD_CONFIG_CRYPTO_LIB_PSA 1

Use ARM Platform Security Library as crypto library.

OPENTHREAD_CONFIG_CRYPTO_PLATFORM_ALLOCS_CONTEXT

 OPENTHREAD_CONFIG_CRYPTO_PLATFORM_ALLOCS_CONTEXT 0

Define to 1 to enable the platform to allocate crypto operation context.

OPENTHREAD_CONFIG_CRYPTO_PLATFORM_CCM_ONE_SHOT_ENABLE

 OPENTHREAD_CONFIG_CRYPTO_PLATFORM_CCM_ONE_SHOT_ENABLE 0

Define to 1 to enable platform one-shot AES-CCM* acceleration.

When enabled, AesCcm::Engine::ProcessOneShot() calls otPlatCryptoAesCcmProcessOneShot() instead of the built-in software CCM engine.

Resources

OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.