2019-11-01 13:45:29 +01:00
|
|
|
# Cryptography primitive options for TinyCrypt version 2.0
|
2015-08-21 16:16:58 -07:00
|
|
|
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
2017-01-20 20:22:01 -05:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2023-10-25 14:55:36 -07:00
|
|
|
config ZEPHYR_TINYCRYPT_MODULE
|
|
|
|
bool
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "TinyCrypt Support"
|
2023-10-25 14:55:36 -07:00
|
|
|
depends on ZEPHYR_TINYCRYPT_MODULE
|
2024-12-05 14:48:35 -08:00
|
|
|
select DEPRECATED
|
2016-05-24 18:17:13 -05:00
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables the TinyCrypt cryptography library.
|
2016-07-25 10:36:06 -05:00
|
|
|
|
2019-07-23 14:16:24 -05:00
|
|
|
if TINYCRYPT
|
2016-07-25 10:36:06 -05:00
|
|
|
config TINYCRYPT_CTR_PRNG
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "PRNG in counter mode"
|
2016-07-25 10:36:06 -05:00
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for the pseudo-random number
|
|
|
|
generator in counter mode.
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_SHA256
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "SHA-256 Hash function support"
|
2016-05-24 18:17:13 -05:00
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for SHA-256
|
|
|
|
hash function primitive.
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_SHA256_HMAC
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "HMAC (via SHA256) message auth support"
|
2016-05-24 18:17:13 -05:00
|
|
|
depends on TINYCRYPT_SHA256
|
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for HMAC using SHA-256
|
|
|
|
message authentication code.
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_SHA256_HMAC_PRNG
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "PRNG (via HMAC-SHA256) support"
|
2016-05-24 18:17:13 -05:00
|
|
|
depends on TINYCRYPT_SHA256_HMAC
|
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for pseudo-random number
|
|
|
|
generator.
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_ECC_DH
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "ECC_DH anonymous key agreement protocol"
|
2016-05-24 18:17:13 -05:00
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for the Elliptic curve
|
|
|
|
Diffie-Hellman anonymous key agreement protocol.
|
2016-01-27 11:07:05 -08:00
|
|
|
|
2017-12-13 10:08:21 -05:00
|
|
|
Enabling ECC requires a cryptographically secure random number
|
|
|
|
generator.
|
2017-07-13 10:39:32 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_ECC_DSA
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "ECC_DSA digital signature algorithm"
|
2016-05-24 18:17:13 -05:00
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for the Elliptic Curve Digital
|
|
|
|
Signature Algorithm (ECDSA).
|
2016-01-27 11:07:05 -08:00
|
|
|
|
2017-12-13 10:08:21 -05:00
|
|
|
Enabling ECC requires a cryptographically secure random number
|
|
|
|
generator.
|
2017-07-13 10:39:32 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_AES
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "AES-128 decrypt/encrypt"
|
2016-05-24 18:17:13 -05:00
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for AES-128 decrypt and encrypt.
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_AES_CBC
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "AES-128 block cipher"
|
2016-05-24 18:17:13 -05:00
|
|
|
depends on TINYCRYPT_AES
|
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for AES-128 block cipher mode.
|
2015-08-21 16:16:58 -07:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_AES_CTR
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "AES-128 counter mode"
|
2016-05-24 18:17:13 -05:00
|
|
|
depends on TINYCRYPT_AES
|
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for AES-128 counter mode.
|
2016-01-27 11:07:05 -08:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_AES_CCM
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "AES-128 CCM mode"
|
2016-05-24 18:17:13 -05:00
|
|
|
depends on TINYCRYPT_AES
|
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for AES-128 CCM mode.
|
2016-01-27 11:07:05 -08:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config TINYCRYPT_AES_CMAC
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "AES-128 CMAC mode"
|
2016-05-24 18:17:13 -05:00
|
|
|
depends on TINYCRYPT_AES
|
|
|
|
help
|
2017-12-13 10:08:21 -05:00
|
|
|
This option enables support for AES-128 CMAC mode.
|
2019-07-23 14:16:24 -05:00
|
|
|
endif
|