diff options
author | David Howells <dhowells@redhat.com> | 2016-09-01 11:16:43 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-01 11:16:43 +0100 |
commit | ed51e44e914c634bfd8435037474ebb0b47db956 (patch) | |
tree | 1ddae3d5e4f23fa1f2bd33ed5f283841cb4b39fa /include/keys | |
parent | c4361dd1b3d975f64db46ee4db85159384ce1160 (diff) | |
parent | 211416ee6413f7ffbd065d7b496f869a0c49be7e (diff) |
Merge branch 'keys-asym-keyctl' into keys-next
Diffstat (limited to 'include/keys')
-rw-r--r-- | include/keys/asymmetric-subtype.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/keys/asymmetric-subtype.h b/include/keys/asymmetric-subtype.h index 2480469ce8fb..bd12733058c6 100644 --- a/include/keys/asymmetric-subtype.h +++ b/include/keys/asymmetric-subtype.h @@ -17,6 +17,8 @@ #include <linux/seq_file.h> #include <keys/asymmetric-type.h> +struct kernel_pkey_query; +struct kernel_pkey_params; struct public_key_signature; /* @@ -34,6 +36,13 @@ struct asymmetric_key_subtype { /* Destroy a key of this subtype */ void (*destroy)(void *payload_crypto, void *payload_auth); + int (*query)(const struct kernel_pkey_params *params, + struct kernel_pkey_query *info); + + /* Encrypt/decrypt/sign data */ + int (*eds_op)(struct kernel_pkey_params *params, + const void *in, void *out); + /* Verify the signature on a key of this subtype (optional) */ int (*verify_signature)(const struct key *key, const struct public_key_signature *sig); |