io_uring: inline io_poll_task_handler()
[linux-2.6-microblaze.git] / crypto / Kconfig
index 1b57419..094ef56 100644 (file)
@@ -260,6 +260,23 @@ config CRYPTO_ECRDSA
          standard algorithms (called GOST algorithms). Only signature verification
          is implemented.
 
+config CRYPTO_SM2
+       tristate "SM2 algorithm"
+       select CRYPTO_SM3
+       select CRYPTO_AKCIPHER
+       select CRYPTO_MANAGER
+       select MPILIB
+       select ASN1
+       help
+         Generic implementation of the SM2 public key algorithm. It was
+         published by State Encryption Management Bureau, China.
+         as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012.
+
+         References:
+         https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
+         http://www.oscca.gov.cn/sca/xxgk/2010-12/17/content_1002386.shtml
+         http://www.gmbz.org.cn/main/bzlb.html
+
 config CRYPTO_CURVE25519
        tristate "Curve25519 algorithm"
        select CRYPTO_KPP
@@ -1185,6 +1202,7 @@ config CRYPTO_AES_PPC_SPE
 
 config CRYPTO_ANUBIS
        tristate "Anubis cipher algorithm"
+       depends on CRYPTO_USER_API_ENABLE_OBSOLETE
        select CRYPTO_ALGAPI
        help
          Anubis cipher algorithm.
@@ -1199,6 +1217,7 @@ config CRYPTO_ANUBIS
 
 config CRYPTO_ARC4
        tristate "ARC4 cipher algorithm"
+       depends on CRYPTO_USER_API_ENABLE_OBSOLETE
        select CRYPTO_SKCIPHER
        select CRYPTO_LIB_ARC4
        help
@@ -1423,6 +1442,7 @@ config CRYPTO_FCRYPT
 
 config CRYPTO_KHAZAD
        tristate "Khazad cipher algorithm"
+       depends on CRYPTO_USER_API_ENABLE_OBSOLETE
        select CRYPTO_ALGAPI
        help
          Khazad cipher algorithm.
@@ -1486,6 +1506,7 @@ config CRYPTO_CHACHA_MIPS
 
 config CRYPTO_SEED
        tristate "SEED cipher algorithm"
+       depends on CRYPTO_USER_API_ENABLE_OBSOLETE
        select CRYPTO_ALGAPI
        help
          SEED cipher algorithm (RFC4269).
@@ -1612,6 +1633,7 @@ config CRYPTO_SM4
 
 config CRYPTO_TEA
        tristate "TEA, XTEA and XETA cipher algorithms"
+       depends on CRYPTO_USER_API_ENABLE_OBSOLETE
        select CRYPTO_ALGAPI
        help
          TEA cipher algorithm.
@@ -1870,6 +1892,15 @@ config CRYPTO_USER_API_RNG
          This option enables the user-spaces interface for random
          number generator algorithms.
 
+config CRYPTO_USER_API_RNG_CAVP
+       bool "Enable CAVP testing of DRBG"
+       depends on CRYPTO_USER_API_RNG && CRYPTO_DRBG
+       help
+         This option enables extra API for CAVP testing via the user-space
+         interface: resetting of DRBG entropy, and providing Additional Data.
+         This should only be enabled for CAVP testing. You should say
+         no unless you know what this is.
+
 config CRYPTO_USER_API_AEAD
        tristate "User-space interface for AEAD cipher algorithms"
        depends on NET
@@ -1881,6 +1912,15 @@ config CRYPTO_USER_API_AEAD
          This option enables the user-spaces interface for AEAD
          cipher algorithms.
 
+config CRYPTO_USER_API_ENABLE_OBSOLETE
+       bool "Enable obsolete cryptographic algorithms for userspace"
+       depends on CRYPTO_USER_API
+       default y
+       help
+         Allow obsolete cryptographic algorithms to be selected that have
+         already been phased out from internal use by the kernel, and are
+         only useful for userspace clients that still rely on them.
+
 config CRYPTO_STATS
        bool "Crypto usage statistics for User-space"
        depends on CRYPTO_USER