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