encrypted-keys: verify datablob size before converting to binary
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 13 Dec 2010 21:53:12 +0000 (16:53 -0500)
committerJames Morris <jmorris@namei.org>
Wed, 15 Dec 2010 06:44:32 +0000 (11:44 +0530)
commit1f35065a9e2573427ce3fd6c4a40b355c2ddfb92
tree9ee6990e21b34dda09efc625a8bca4fa6c4e5d67
parent1bdbb4024c309e470711b434a24fb356fc92edea
encrypted-keys: verify datablob size before converting to binary

Verify the hex ascii datablob length is correct before converting the IV,
encrypted data, and HMAC to binary.

Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/encrypted_defined.c