aboutsummaryrefslogtreecommitdiff
path: root/security/keys/encrypted-keys
AgeCommit message (Collapse)AuthorFilesLines
2011-11-16encrypted-keys: module build fixesMimi Zohar2-3/+8
Encrypted keys are encrypted/decrypted using either a trusted or user-defined key type, which is referred to as the 'master' key. The master key may be of type trusted iff the trusted key is builtin or both the trusted key and encrypted keys are built as modules. This patch resolves the build dependency problem. - Use "masterkey-$(CONFIG_TRUSTED_KEYS)-$(CONFIG_ENCRYPTED_KEYS)" construct to encapsulate the above logic. (Suggested by Dimtry Kasatkin.) - Fixing the encrypted-keys Makefile, results in a module name change from encrypted.ko to encrypted-keys.ko. - Add module dependency for request_trusted_key() definition Signed-off-by: Mimi Zohar <[email protected]>
2011-11-16encrypted-keys: fix error return codeMimi Zohar1-1/+1
Fix request_master_key() error return code. Signed-off-by: Mimi Zohar <[email protected]>
2011-10-31security: follow rename pack_hex_byte() to hex_byte_pack()Andy Shevchenko1-1/+1
There is no functional change. Signed-off-by: Andy Shevchenko <[email protected]> Cc: Mimi Zohar <[email protected]> Cc: James Morris <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2011-09-20encrypted-keys: check hex2bin resultMimi Zohar1-3/+11
For each hex2bin call in encrypted keys, check that the ascii hex string is valid. On failure, return -EINVAL. Changelog v1: - hex2bin now returns an int Signed-off-by: Mimi Zohar <[email protected]> Acked-by: Andy Shevchenko <[email protected]>
2011-09-15encrypted-keys: IS_ERR need include/err.hStephen Rothwell1-0/+1
Fixes this build error: security/keys/encrypted-keys/masterkey_trusted.c: In function 'request_trusted_key': security/keys/encrypted-keys/masterkey_trusted.c:35:2: error: implicit declaration of function 'IS_ERR' Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
2011-09-14encrypted-keys: remove trusted-keys dependencyMimi Zohar4-27/+64
Encrypted keys are decrypted/encrypted using either a trusted-key or, for those systems without a TPM, a user-defined key. This patch removes the trusted-keys and TCG_TPM dependencies. Signed-off-by: Mimi Zohar <[email protected]>
2011-09-14encrypted-keys: create encrypted-keys directoryMimi Zohar5-0/+1219
Move all files associated with encrypted keys to keys/encrypted-keys. Signed-off-by: Mimi Zohar <[email protected]>