Skip to contentSkip to conversation

KEYS: encrypted: Remove unnecessary selection of CRYPTO_RNG

PATCH In review Eric Biggers 3 participants 6 messages Mar 21 – Apr 8

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

PATCH 1/1 KEYS: encrypted: Remove unnecessary selection of CRYPTO_RNG

encrypted-keys uses the regular Linux RNG (get_random_bytes()), not the duplicative crypto_rng one. So it does not need to select CRYPTO_RNG.

---

This patch is targeting the keyrings tree

 security/keys/Kconfig | 1 -
 1 file changed, 1 deletion(-)
security/keys/Kconfig +0 -1
index 84f39e50ca36..f4510d8cb485 100644
@@ -85,11 +85,10 @@ config ENCRYPTED_KEYS
 	tristate "ENCRYPTED KEYS"
 	select CRYPTO
 	select CRYPTO_AES
 	select CRYPTO_CBC
 	select CRYPTO_LIB_SHA256
-	select CRYPTO_RNG
 	help
 	  This option provides support for create/encrypting/decrypting keys
 	  in the kernel.  Encrypted keys are instantiated using kernel
 	  generated random numbers or provided decrypted data, and are
 	  encrypted/decrypted with a 'master' symmetric key. The 'master'

base-commit: 113ae7b4decc6c2d95bdbbe52e615a0137ef7f9f

Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Eric,

Quoted 4 lines · Eric Biggers

encrypted-keys uses the regular Linux RNG (get_random_bytes()), not the duplicative crypto_rng one. So it does not need to select CRYPTO_RNG.

Quoted 3 lines

---

This patch is targeting the keyrings tree

Not sure what you mean by targeting the keyrings tree. I can definitely queue it.

Quoted 22 lines
 security/keys/Kconfig | 1 -
 1 file changed, 1 deletion(-)
security/keys/Kconfig +0 -1
index 84f39e50ca36..f4510d8cb485 100644
@@ -85,11 +85,10 @@ config ENCRYPTED_KEYS
 	tristate "ENCRYPTED KEYS"
 	select CRYPTO
 	select CRYPTO_AES
 	select CRYPTO_CBC
 	select CRYPTO_LIB_SHA256
-	select CRYPTO_RNG
 	help
 	  This option provides support for create/encrypting/decrypting keys
 	  in the kernel.  Encrypted keys are instantiated using kernel
 	  generated random numbers or provided decrypted data, and are
 	  encrypted/decrypted with a 'master' symmetric key. The 'master'

base-commit: 113ae7b4decc6c2d95bdbbe52e615a0137ef7f9f

#2 lore raw
Quoted 8 lines · Mimi Zohar

Hi Eric,

Quoted 4 lines · Eric Biggers

encrypted-keys uses the regular Linux RNG (get_random_bytes()), not the duplicative crypto_rng one. So it does not need to select CRYPTO_RNG.

Quoted 8 lines
Quoted 3 lines

---

This patch is targeting the keyrings tree

Not sure what you mean by targeting the keyrings tree. I can definitely queue it.

Last time I sent a patch for encrypted-keys, Jarkko took it. If you'd like to take it instead, that's fine with me. As long as someone does it. Thanks,

- Eric

#3 lore raw
Quoted 13 lines · Eric Biggers
Quoted 12 lines · Mimi Zohar

Hi Eric,

Quoted 4 lines · Eric Biggers

encrypted-keys uses the regular Linux RNG (get_random_bytes()), not the duplicative crypto_rng one. So it does not need to select CRYPTO_RNG.

Quoted 2 lines

---

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

This patch is targeting the keyrings tree

Not sure what you mean by targeting the keyrings tree. I can definitely queue it.

Last time I sent a patch for encrypted-keys, Jarkko took it. If you'd like to take it instead, that's fine with me. As long as someone does it. Thanks,

Anyone planning to take this? It's not in linux-next yet.

- Eric

maintainer
#4 lore raw
Quoted 16 lines · Eric Biggers
Quoted 15 lines · Eric Biggers
Quoted 14 lines · Mimi Zohar

Hi Eric,

Quoted 4 lines · Eric Biggers

encrypted-keys uses the regular Linux RNG (get_random_bytes()), not the duplicative crypto_rng one. So it does not need to select CRYPTO_RNG.

Quoted 3 lines

---

This patch is targeting the keyrings tree

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Not sure what you mean by targeting the keyrings tree. I can definitely queue it.

Last time I sent a patch for encrypted-keys, Jarkko took it. If you'd like to take it instead, that's fine with me. As long as someone does it. Thanks,

Anyone planning to take this? It's not in linux-next yet.

It has been holiday season but I applied it. Later today I'll update my next branch.

Quoted 2 lines

- Eric

BR, Jarkko

maintainer
#5 lore raw
In reply to Mimi Zohar
Quoted 38 lines · Mimi Zohar

Hi Eric,

Quoted 4 lines · Eric Biggers

encrypted-keys uses the regular Linux RNG (get_random_bytes()), not the duplicative crypto_rng one. So it does not need to select CRYPTO_RNG.

Quoted 3 lines

---

This patch is targeting the keyrings tree

Not sure what you mean by targeting the keyrings tree. I can definitely queue it.

Quoted 21 lines
 security/keys/Kconfig | 1 -
 1 file changed, 1 deletion(-)
security/keys/Kconfig +0 -1
index 84f39e50ca36..f4510d8cb485 100644
@@ -85,11 +85,10 @@ config ENCRYPTED_KEYS
 	tristate "ENCRYPTED KEYS"
 	select CRYPTO
 	select CRYPTO_AES
 	select CRYPTO_CBC
 	select CRYPTO_LIB_SHA256
-	select CRYPTO_RNG
 	help
 	  This option provides support for create/encrypting/decrypting keys
 	  in the kernel.  Encrypted keys are instantiated using kernel
 	  generated random numbers or provided decrypted data, and are
 	  encrypted/decrypted with a 'master' symmetric key. The 'master'
Quoted 1 line
Quoted 1 line

base-commit: 113ae7b4decc6c2d95bdbbe52e615a0137ef7f9f

I applied this.

BR, Jarkko