Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi into next
[platform/kernel/u-boot.git] / lib / Kconfig
index d040a87..fc7d684 100644 (file)
@@ -150,7 +150,8 @@ config REGEX
 
 choice
        prompt "Pseudo-random library support type"
-       depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID
+       depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
+                  RNG_SANDBOX || UT_LIB && AES
        default LIB_RAND
        help
          Select the library to provide pseudo-random number generator
@@ -161,7 +162,7 @@ config LIB_RAND
        bool "Pseudo-random library support"
 
 config LIB_HW_RAND
-       bool "HW Engine for random libray support"
+       bool "HW Engine for random library support"
 
 endchoice
 
@@ -344,6 +345,29 @@ config SHA256
          The SHA256 algorithm produces a 256-bit (32-byte) hash value
          (digest).
 
+config SHA512_ALGO
+       bool "Enable SHA512 algorithm"
+       help
+         This option enables support of internal SHA512 algorithm.
+
+config SHA512
+       bool "Enable SHA512 support"
+       depends on SHA512_ALGO
+       help
+         This option enables support of hashing using SHA512 algorithm.
+         The hash is calculated in software.
+         The SHA512 algorithm produces a 512-bit (64-byte) hash value
+         (digest).
+
+config SHA384
+       bool "Enable SHA384 support"
+       depends on SHA512_ALGO
+       help
+         This option enables support of hashing using SHA384 algorithm.
+         The hash is calculated in software.
+         The SHA384 algorithm produces a 384-bit (48-byte) hash value
+         (digest).
+
 config SHA_HW_ACCEL
        bool "Enable hashing using hardware"
        help
@@ -362,7 +386,22 @@ config SHA_PROG_HW_ACCEL
          is performed in hardware.
 
 config MD5
-       bool
+       bool "Support MD5 algorithm"
+       help
+         This option enables MD5 support. MD5 is an algorithm designed
+         in 1991 that produces a 16-byte digest (or checksum) from its input
+         data. It has a number of vulnerabilities which preclude its use in
+         security applications, but it can be useful for providing a quick
+         checksum of a block of data.
+
+config SPL_MD5
+       bool "Support MD5 algorithm in SPL"
+       help
+         This option enables MD5 support in SPL. MD5 is an algorithm designed
+         in 1991 that produces a 16-byte digest (or checksum) from its input
+         data. It has a number of vulnerabilities which preclude its use in
+         security applications, but it can be useful for providing a quick
+         checksum of a block of data.
 
 config CRC32C
        bool
@@ -408,6 +447,15 @@ config GZIP
        help
          This enables support for GZIP compression algorithm.
 
+config GZIP_COMPRESSED
+       bool
+       select ZLIB
+
+config BZIP2
+       bool "Enable bzip2 decompression support"
+       help
+         This enables support for BZIP2 compression algorithm.
+
 config ZLIB
        bool
        default y
@@ -423,11 +471,16 @@ config ZSTD
 config SPL_LZ4
        bool "Enable LZ4 decompression support in SPL"
        help
-         This enables support for tge LZ4 decompression algorithm in SPL. LZ4
+         This enables support for the LZ4 decompression algorithm in SPL. LZ4
          is a lossless data compression algorithm that is focused on
          fast compression and decompression speed. It belongs to the LZ77
          family of byte-oriented compression schemes.
 
+config SPL_LZMA
+       bool "Enable LZMA decompression support for SPL build"
+       help
+         This enables support for LZMA compression algorithm for SPL boot.
+
 config SPL_LZO
        bool "Enable LZO decompression support in SPL"
        help
@@ -601,4 +654,10 @@ config TEST_FDTDEC
 config LIB_DATE
        bool
 
+config LIB_ELF
+       bool
+       help
+         Supoort basic elf loading/validating functions.
+         This supports fir 32 bit and 64 bit versions.
+
 endmenu