]> git.baikalelectronics.ru Git - kernel.git/commit
encrypted-keys: add key format support
authorRoberto Sassu <roberto.sassu@polito.it>
Mon, 27 Jun 2011 11:45:42 +0000 (13:45 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 27 Jun 2011 13:10:45 +0000 (09:10 -0400)
commit56a63779eaeb660ded37e1729fc38b53f8456cd8
tree9208588c7d0e5e75766dd2c98e960840fdc8681e
parent319ce0b0315f129cdbb326ff960764563788fc95
encrypted-keys: add key format support

This patch introduces a new parameter, called 'format', that defines the
format of data stored by encrypted keys. The 'default' format identifies
encrypted keys containing only the symmetric key, while other formats can
be defined to support additional information. The 'format' parameter is
written in the datablob produced by commands 'keyctl print' or
'keyctl pipe' and is integrity protected by the HMAC.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Acked-by: Gianluca Ramunno <ramunno@polito.it>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Documentation/security/keys-trusted-encrypted.txt
include/keys/encrypted-type.h
security/keys/encrypted.c