1# Copyright (c) 2018 Linaro 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig JWT 5 bool "JSON Web Token generation" 6 select JSON_LIBRARY 7 help 8 Enable creation of JWT tokens 9 10choice 11 prompt "JWT signature algorithm" 12 default JWT_SIGN_RSA 13 depends on JWT 14 help 15 Select which algorithm to use for signing JWT tokens. 16 17config JWT_SIGN_RSA 18 bool "Use RSA signature (RS-256)" 19 depends on CSPRNG_ENABLED 20 select MBEDTLS 21 22config JWT_SIGN_ECDSA 23 bool "Use ECDSA signature (ES-256)" 24 select TINYCRYPT 25 select TINYCRYPT_SHA256 26 select TINYCRYPT_ECC_DSA 27 select TINYCRYPT_CTR_PRNG 28 select TINYCRYPT_AES 29 30endchoice 31