]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Convert CONFIG_CMD_AES et al to Kconfig
authorSimon Glass <sjg@chromium.org>
Thu, 27 Apr 2017 04:27:49 +0000 (22:27 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 30 Apr 2017 14:29:55 +0000 (10:29 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_AES
   CONFIG_AES

Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Add select AES to CMD_AES]
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig
configs/seaboard_defconfig
include/configs/amcore.h
include/configs/seaboard.h
include/configs/topic_miami.h
lib/Kconfig
scripts/config_whitelist.txt

index 50888236db6932e046b4eed73e4e6e4efbe62656..e52af92cb4b2dabb1b2832ec40914cef054759fe 100644 (file)
@@ -769,6 +769,16 @@ config CMD_REGULATOR
 endmenu
 
 menu "Security commands"
+config CMD_AES
+       bool "Enable the 'aes' command"
+       select AES
+       help
+         This provides a means to encrypt and decrypt data using the AES
+         (Advanced Encryption Standard). This algorithm uses a symetric key
+         and is widely used as a streaming cipher. Different key lengths are
+         supported by the algorithm but this command only supports 128 bits
+         at present.
+
 config CMD_TPM
        bool "Enable the 'tpm' command"
        depends on TPM
index 3e5549c0731c19b0263b3f26426a4165050e3f76..9e50f702bfd5ea5dece4e98f0bf1bb980b94ddf8 100644 (file)
@@ -38,3 +38,4 @@ CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
 CONFIG_VIDEO_TEGRA20=y
 CONFIG_CONSOLE_SCROLL_LINES=10
+CONFIG_AES=y
index 4f462d61e0a33fb64694d371f516ef83f56ef968..06d08d448305f44951e93998c78cf26b56437f01 100644 (file)
@@ -30,7 +30,6 @@
                "erase 0xfff00000 0xffffffff; "                 \
                "cp.b 0x20000 0xfff00000 ${filesize}\0"
 
-#undef CONFIG_CMD_AES
 #define CONFIG_CMD_DIAG
 
 /* undef to save memory        */
index 671afa71ec4943c2ec1965c276dbcc65c5f2d078..661d1fee6f8735e72b8d3b02e71dc79ef06639d6 100644 (file)
@@ -12,7 +12,6 @@
 
 /* LP0 suspend / resume */
 #define CONFIG_TEGRA_LP0
-#define CONFIG_AES
 #define CONFIG_TEGRA_PMU
 #define CONFIG_TPS6586X_POWER
 #define CONFIG_TEGRA_CLOCK_SCALING
index a56ceef85a7710078c0fde59e9edd8a7e9ed0097..23160bd88d71d4a8c1ade30b0478ac08c4c87373 100644 (file)
 /* Further tweaks to reduce image size */
 #undef CONFIG_CMD_BOOTZ
 #undef CONFIG_CMD_NET
-#undef CONFIG_CMD_AES
 
 #endif /* __CONFIG_TOPIC_MIAMI_H */
index a0d5d926eb6875c598fc44ed17c4496dc6521bd5..db0915153cb566c79fdd6e53b3a8815283f90a22 100644 (file)
@@ -66,6 +66,17 @@ config RBTREE
 
 source lib/dhry/Kconfig
 
+menu "Security support"
+
+config AES
+       bool "Support the AES algorithm"
+       help
+         This provides a means to encrypt and decrypt data using the AES
+         (Advanced Encryption Standard). This algorithm uses a symetric key
+         and is widely used as a streaming cipher. Different key lengths are
+         supported by the algorithm but only a 128-bit key is supported at
+         present.
+
 source lib/rsa/Kconfig
 
 config TPM
@@ -79,6 +90,8 @@ config TPM
          for the low-level TPM interface, but only one TPM is supported at
          a time by the TPM library.
 
+endmenu
+
 menu "Hashing Support"
 
 config SHA1
index b1101484211c9ee791dbc19d6bd4d61460845a46..f06d384dcdd0adc06e35efcf9491a6d5a47a6622 100644 (file)
@@ -70,7 +70,6 @@ CONFIG_ADNPESC1
 CONFIG_ADP_AG101P
 CONFIG_AEABI
 CONFIG_AEMIF_CNTRL_BASE
-CONFIG_AES
 CONFIG_ALTERA_SDRAM
 CONFIG_ALTERA_SPI_IDLE_VAL
 CONFIG_ALTIVEC
@@ -394,7 +393,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_AES
 CONFIG_CMD_ASKEN
 CONFIG_CMD_BAT
 CONFIG_CMD_BEDBUG