Ulf Magnusson | bd6e044 | 2019-11-01 13:45:29 +0100 | [diff] [blame] | 1 | # Cryptography primitive options for TinyCrypt version 2.0 |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 2 | |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 3 | # Copyright (c) 2015 Intel Corporation |
Anas Nashif | 594992f | 2017-01-20 20:22:01 -0500 | [diff] [blame] | 4 | # SPDX-License-Identifier: Apache-2.0 |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 5 | |
Flavio Ceolin | e57e7f2 | 2023-10-25 14:55:36 -0700 | [diff] [blame] | 6 | config ZEPHYR_TINYCRYPT_MODULE |
| 7 | bool |
| 8 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 9 | config TINYCRYPT |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 10 | bool "TinyCrypt Support" |
Flavio Ceolin | e57e7f2 | 2023-10-25 14:55:36 -0700 | [diff] [blame] | 11 | depends on ZEPHYR_TINYCRYPT_MODULE |
Flavio Ceolin | 2907a96 | 2024-12-05 14:48:35 -0800 | [diff] [blame] | 12 | select DEPRECATED |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 13 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 14 | This option enables the TinyCrypt cryptography library. |
Flavio Santes | e0d4612 | 2016-07-25 10:36:06 -0500 | [diff] [blame] | 15 | |
David Leach | afdc63f | 2019-07-23 14:16:24 -0500 | [diff] [blame] | 16 | if TINYCRYPT |
Flavio Santes | e0d4612 | 2016-07-25 10:36:06 -0500 | [diff] [blame] | 17 | config TINYCRYPT_CTR_PRNG |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 18 | bool "PRNG in counter mode" |
Flavio Santes | e0d4612 | 2016-07-25 10:36:06 -0500 | [diff] [blame] | 19 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 20 | This option enables support for the pseudo-random number |
| 21 | generator in counter mode. |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 22 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 23 | config TINYCRYPT_SHA256 |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 24 | bool "SHA-256 Hash function support" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 25 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 26 | This option enables support for SHA-256 |
| 27 | hash function primitive. |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 28 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 29 | config TINYCRYPT_SHA256_HMAC |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 30 | bool "HMAC (via SHA256) message auth support" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 31 | depends on TINYCRYPT_SHA256 |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 32 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 33 | This option enables support for HMAC using SHA-256 |
| 34 | message authentication code. |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 35 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 36 | config TINYCRYPT_SHA256_HMAC_PRNG |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 37 | bool "PRNG (via HMAC-SHA256) support" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 38 | depends on TINYCRYPT_SHA256_HMAC |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 39 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 40 | This option enables support for pseudo-random number |
| 41 | generator. |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 42 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 43 | config TINYCRYPT_ECC_DH |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 44 | bool "ECC_DH anonymous key agreement protocol" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 45 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 46 | This option enables support for the Elliptic curve |
| 47 | Diffie-Hellman anonymous key agreement protocol. |
Constanza Heath | eaed145 | 2016-01-27 11:07:05 -0800 | [diff] [blame] | 48 | |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 49 | Enabling ECC requires a cryptographically secure random number |
| 50 | generator. |
Leandro Pereira | 14c5669 | 2017-07-13 10:39:32 -0700 | [diff] [blame] | 51 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 52 | config TINYCRYPT_ECC_DSA |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 53 | bool "ECC_DSA digital signature algorithm" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 54 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 55 | This option enables support for the Elliptic Curve Digital |
| 56 | Signature Algorithm (ECDSA). |
Constanza Heath | eaed145 | 2016-01-27 11:07:05 -0800 | [diff] [blame] | 57 | |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 58 | Enabling ECC requires a cryptographically secure random number |
| 59 | generator. |
Leandro Pereira | 14c5669 | 2017-07-13 10:39:32 -0700 | [diff] [blame] | 60 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 61 | config TINYCRYPT_AES |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 62 | bool "AES-128 decrypt/encrypt" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 63 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 64 | This option enables support for AES-128 decrypt and encrypt. |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 65 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 66 | config TINYCRYPT_AES_CBC |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 67 | bool "AES-128 block cipher" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 68 | depends on TINYCRYPT_AES |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 69 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 70 | This option enables support for AES-128 block cipher mode. |
Constanza Heath | 7d0e1d9 | 2015-08-21 16:16:58 -0700 | [diff] [blame] | 71 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 72 | config TINYCRYPT_AES_CTR |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 73 | bool "AES-128 counter mode" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 74 | depends on TINYCRYPT_AES |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 75 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 76 | This option enables support for AES-128 counter mode. |
Constanza Heath | eaed145 | 2016-01-27 11:07:05 -0800 | [diff] [blame] | 77 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 78 | config TINYCRYPT_AES_CCM |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 79 | bool "AES-128 CCM mode" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 80 | depends on TINYCRYPT_AES |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 81 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 82 | This option enables support for AES-128 CCM mode. |
Constanza Heath | eaed145 | 2016-01-27 11:07:05 -0800 | [diff] [blame] | 83 | |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 84 | config TINYCRYPT_AES_CMAC |
Ulf Magnusson | 8cf8db3 | 2018-08-14 16:19:20 +0200 | [diff] [blame] | 85 | bool "AES-128 CMAC mode" |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 86 | depends on TINYCRYPT_AES |
Kumar Gala | 9ec2f3b | 2016-05-24 18:17:13 -0500 | [diff] [blame] | 87 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 88 | This option enables support for AES-128 CMAC mode. |
David Leach | afdc63f | 2019-07-23 14:16:24 -0500 | [diff] [blame] | 89 | endif |