Skip to contentSkip to conversation

Security: Keys: Big keys stored encrypted

PATCH Applied Kirill Marinushkin 2 participants 2 messages Apr 4, 2016 – Apr 6, 2016

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

PATCH v2 1/1 Security: Keys: Big keys stored encrypted

Solved TODO task: big keys saved to shmem file are now stored encrypted. The encryption key is randomly generated and saved to payload[big_key_data].

---
 security/keys/Kconfig   |   4 +
 security/keys/big_key.c | 198 +++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 184 insertions(+), 18 deletions(-)
security/keys/Kconfig +4 -0
index fe4d74e..4582809 100644
@@ -41,6 +41,10 @@ config BIG_KEYS
 	bool "Large payload keys"
 	depends on KEYS
 	depends on TMPFS
+	select CRYPTO
+	select CRYPTO_AES
+	select CRYPTO_ECB
+	select CRYPTO_RNG
 	help
 	  This option provides support for holding large keys within the kernel
 	  (for example Kerberos ticket caches).  The data may be stored out to
security/keys/big_key.c +180 -18

297 lines not on this page · raw message

Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Kirill Marinushkin

Solved TODO task: big keys saved to shmem file are now stored encrypted. The encryption key is randomly generated and saved to payload[big_key_data].

Applied.

David