KEYS: Provide missing asymmetric key subops for new key type ops
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Sep 2016 10:13:12 +0000 (11:13 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 1 Sep 2016 10:13:12 +0000 (11:13 +0100)
commitd9af206382a25032d54852fb7cd7301df0b303c4
tree52ffee32eca40da74dd1434f440e114246bc50f5
parent47ba9b28bf8e6f1f6fb1937dd5f4a6d2ac267f3d
KEYS: Provide missing asymmetric key subops for new key type ops

Provide the missing asymmetric key subops for new key type ops.  This
include query, encrypt, decrypt and create signature.  Verify signature
already exists.  Also provided are accessor functions for this:

int query_asymmetric_key(const struct key *key,
 struct kernel_pkey_query *info);

int encrypt_blob(struct kernel_pkey_params *params,
 const void *data, void *enc);
int decrypt_blob(struct kernel_pkey_params *params,
 const void *enc, void *data);
int create_signature(struct kernel_pkey_params *params,
     const void *data, void *enc);

The public_key_signature struct gains an encoding field to carry the
encoding for verify_signature().

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/crypto/asymmetric-keys.txt
crypto/asymmetric_keys/asymmetric_keys.h
crypto/asymmetric_keys/asymmetric_type.c
crypto/asymmetric_keys/signature.c
include/crypto/public_key.h
include/keys/asymmetric-subtype.h
This page took 0.026141 seconds and 5 git commands to generate.