]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KEYS: Split public_key_verify_signature() and make available
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Aug 2013 15:15:30 +0000 (16:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 25 Sep 2013 16:17:00 +0000 (17:17 +0100)
commit3d167d68e3805ee45ed2e8412fc03ed919c54c24
treebaa5b411cb71f72ee855883d5a3fefbaf142f23b
parent67f7d60b3a08a3e3ec51c29c25767a9d9d0bd2b1
KEYS: Split public_key_verify_signature() and make available

Modify public_key_verify_signature() so that it now takes a public_key struct
rather than a key struct and supply a wrapper that takes a key struct.  The
wrapper is then used by the asymmetric key subtype and the modified function is
used by X.509 self-signature checking and can be used by other things also.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Josh Boyer <jwboyer@redhat.com>
crypto/asymmetric_keys/public_key.c
crypto/asymmetric_keys/public_key.h
crypto/asymmetric_keys/x509_public_key.c