Skip to contentSkip to conversation

KEYS: fix big_key dependency

PATCH Superseded Kirill Marinushkin 2 participants 4 messages Aug 15, 2016 – Aug 16, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KEYS: fix big_key dependency

---
 security/keys/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/keys/Kconfig +1 -1
index f826e87..8213221 100644
@@ -44,7 +44,7 @@ config BIG_KEYS
 	select CRYPTO
 	select CRYPTO_AES
 	select CRYPTO_ECB
-	select CRYPTO_RNG
+	select CRYPTO_ANSI_CPRNG
 	help
 	  This option provides support for holding large keys within the kernel
 	  (for example Kerberos ticket caches).  The data may be stored out to
Signature · 1 line
1.9.1
#1 lore raw

Am Dienstag, 16. August 2016, 00:45:39 CEST schrieb Kirill Marinushkin:

Hi Kirill,

security/keys/Kconfig config BIG_KEYS · line 47

Quoted 1 line
security/keys/Kconfig +1 -0
+	select CRYPTO_ANSI_CPRNG

This change enables the RNG which will not pass FIPS testing any more. Hence, this selection could cause an issue in FIPS mode (i.e. booting the kernel with fips=1).

May I suggest CRYPTO_DRBG?

Ciao
Stephan

#2 lore raw

PATCH v2 1/1 KEYS: fix big_key dependency

This patch fixes the following bug:
[oss-security] - panic at big_key_preparse #4.7-r6/rc7 & master

---
 security/keys/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/keys/Kconfig +1 -1
index f826e87..5bc5114 100644
@@ -44,7 +44,7 @@ config BIG_KEYS
 	select CRYPTO
 	select CRYPTO_AES
 	select CRYPTO_ECB
-	select CRYPTO_RNG
+	select CRYPTO_RNG_DEFAULT
 	help
 	  This option provides support for holding large keys within the kernel
 	  (for example Kerberos ticket caches).  The data may be stored out to
Signature · 1 line
1.9.1
#3 lore raw
In reply to Stephan Mueller
Quoted 1 line

May I suggest CRYPTO_DRBG?

Hello Ciao,

Thanks for your proposal. I submitted the PATCH v2 where I use CRYPTO_RNG_DEFAULT the same way it is used in crypto/Kconfig. It solves the issue, too. In addition, it selects CRYPTO_DRBG_MENU, which is a more universal use-case, as I understood from your comment.

Best Regards,
Kirill