diff options
-rw-r--r-- | crypto/Kconfig | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index ce4012a58781..c9c1cd91031c 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -23,7 +23,7 @@ comment "Crypto core or helper" | |||
23 | 23 | ||
24 | config CRYPTO_FIPS | 24 | config CRYPTO_FIPS |
25 | bool "FIPS 200 compliance" | 25 | bool "FIPS 200 compliance" |
26 | depends on CRYPTO_ANSI_CPRNG && !CRYPTO_MANAGER_DISABLE_TESTS | 26 | depends on (CRYPTO_ANSI_CPRNG || CRYTPO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS |
27 | help | 27 | help |
28 | This options enables the fips boot option which is | 28 | This options enables the fips boot option which is |
29 | required if you want to system to operate in a FIPS 200 | 29 | required if you want to system to operate in a FIPS 200 |
@@ -1380,6 +1380,40 @@ config CRYPTO_ANSI_CPRNG | |||
1380 | ANSI X9.31 A.2.4. Note that this option must be enabled if | 1380 | ANSI X9.31 A.2.4. Note that this option must be enabled if |
1381 | CRYPTO_FIPS is selected | 1381 | CRYPTO_FIPS is selected |
1382 | 1382 | ||
1383 | menuconfig CRYTPO_DRBG | ||
1384 | tristate "NIST SP800-90A DRBG" | ||
1385 | depends on CRYPTO | ||
1386 | select CRYPTO_RNG | ||
1387 | help | ||
1388 | NIST SP800-90A compliant DRBG. In the following submenu, one or | ||
1389 | more of the DRBG types must be selected. | ||
1390 | |||
1391 | if CRYTPO_DRBG | ||
1392 | |||
1393 | config CRYPTO_DRBG_HMAC | ||
1394 | bool "Enable HMAC DRBG" | ||
1395 | default y | ||
1396 | depends on CRYTPO_DRBG | ||
1397 | select CRYPTO_HMAC | ||
1398 | help | ||
1399 | Enable the HMAC DRBG variant as defined in NIST SP800-90A. | ||
1400 | |||
1401 | config CRYPTO_DRBG_HASH | ||
1402 | bool "Enable Hash DRBG" | ||
1403 | depends on CRYTPO_DRBG | ||
1404 | select CRYPTO_HASH | ||
1405 | help | ||
1406 | Enable the Hash DRBG variant as defined in NIST SP800-90A. | ||
1407 | |||
1408 | config CRYPTO_DRBG_CTR | ||
1409 | bool "Enable CTR DRBG" | ||
1410 | depends on CRYTPO_DRBG | ||
1411 | select CRYPTO_AES | ||
1412 | help | ||
1413 | Enable the CTR DRBG variant as defined in NIST SP800-90A. | ||
1414 | |||
1415 | endif #CRYTPO_DRBG | ||
1416 | |||
1383 | config CRYPTO_USER_API | 1417 | config CRYPTO_USER_API |
1384 | tristate | 1418 | tristate |
1385 | 1419 | ||