-
- Downloads
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>
Showing
- Documentation/crypto/asymmetric-keys.txt 19 additions, 5 deletionsDocumentation/crypto/asymmetric-keys.txt
- crypto/asymmetric_keys/asymmetric_keys.h 3 additions, 0 deletionscrypto/asymmetric_keys/asymmetric_keys.h
- crypto/asymmetric_keys/asymmetric_type.c 43 additions, 0 deletionscrypto/asymmetric_keys/asymmetric_type.c
- crypto/asymmetric_keys/signature.c 95 additions, 0 deletionscrypto/asymmetric_keys/signature.c
- include/crypto/public_key.h 11 additions, 2 deletionsinclude/crypto/public_key.h
- include/keys/asymmetric-subtype.h 9 additions, 0 deletionsinclude/keys/asymmetric-subtype.h
Loading
Please register or sign in to comment