summaryrefslogtreecommitdiffstats
path: root/crypto/asymmetric_keys/public_key.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-08-30 16:15:30 +0100
committerDavid Howells <dhowells@redhat.com>2013-09-25 17:17:00 +0100
commit3d167d68e3805ee45ed2e8412fc03ed919c54c24 (patch)
treebaa5b411cb71f72ee855883d5a3fefbaf142f23b /crypto/asymmetric_keys/public_key.h
parent67f7d60b3a08a3e3ec51c29c25767a9d9d0bd2b1 (diff)
downloadop-kernel-dev-3d167d68e3805ee45ed2e8412fc03ed919c54c24.zip
op-kernel-dev-3d167d68e3805ee45ed2e8412fc03ed919c54c24.tar.gz
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>
Diffstat (limited to 'crypto/asymmetric_keys/public_key.h')
-rw-r--r--crypto/asymmetric_keys/public_key.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/asymmetric_keys/public_key.h b/crypto/asymmetric_keys/public_key.h
index 5e5e356..5c37a22 100644
--- a/crypto/asymmetric_keys/public_key.h
+++ b/crypto/asymmetric_keys/public_key.h
@@ -28,3 +28,9 @@ struct public_key_algorithm {
};
extern const struct public_key_algorithm RSA_public_key_algorithm;
+
+/*
+ * public_key.c
+ */
+extern int public_key_verify_signature(const struct public_key *pk,
+ const struct public_key_signature *sig);
OpenPOWER on IntegriCloud