diff options
author | David Howells <dhowells@redhat.com> | 2018-10-09 17:47:07 +0100 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2018-10-26 09:30:46 +0100 |
commit | 4119ce027f9294ca528292ff97bfb29d9c0bd9fc (patch) | |
tree | a245a87979610383034252aaf4030f86c9a42b1e /crypto/wp512.c | |
parent | 65779a524f97d5ba72daa27a70dbf2ab7ecde45c (diff) | |
download | linux-crypto-4119ce027f9294ca528292ff97bfb29d9c0bd9fc.tar.gz linux-crypto-4119ce027f9294ca528292ff97bfb29d9c0bd9fc.zip |
KEYS: Provide missing asymmetric key subops for new key type ops [ver #2]
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>
Tested-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Denis Kenzior <denkenz@gmail.com>
Tested-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'crypto/wp512.c')
0 files changed, 0 insertions, 0 deletions