linux/Documentation/security
David Howells 70025f84e5 KEYS: Provide key type operations for asymmetric key ops [ver #2]
Provide five new operations in the key_type struct that can be used to
provide access to asymmetric key operations.  These will be implemented for
the asymmetric key type in a later patch and may refer to a key retained in
RAM by the kernel or a key retained in crypto hardware.

     int (*asym_query)(const struct kernel_pkey_params *params,
		       struct kernel_pkey_query *info);
     int (*asym_eds_op)(struct kernel_pkey_params *params,
			const void *in, void *out);
     int (*asym_verify_signature)(struct kernel_pkey_params *params,
			          const void *in, const void *in2);

Since encrypt, decrypt and sign are identical in their interfaces, they're
rolled together in the asym_eds_op() operation and there's an operation ID
in the params argument to distinguish them.

Verify is different in that we supply the data and the signature instead
and get an error value (or 0) as the only result on the expectation that
this may well be how a hardware crypto device may work.

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>
2018-10-26 09:30:46 +01:00
..
keys KEYS: Provide key type operations for asymmetric key ops [ver #2] 2018-10-26 09:30:46 +01:00
tpm tpm: move documentation under Documentation/security 2016-11-07 18:56:42 -07:00
credentials.rst Documentation: security/credentials.rst: explain need to sort group_list 2018-01-08 14:20:31 -07:00
IMA-templates.rst doc: ReSTify IMA-templates.txt 2017-05-18 10:30:14 -06:00
index.rst docs: */index.rst: Add newer documents to their respective index.rst 2018-05-08 09:57:35 -06:00
LSM-sctp.rst security: Add support for SCTP security hooks 2018-02-22 15:01:32 -05:00
LSM.rst security: fix LSM description location 2018-10-09 12:18:38 -07:00
self-protection.rst Kbuild: rename CC_STACKPROTECTOR[_STRONG] config variables 2018-06-14 12:21:18 +09:00
SELinux-sctp.rst selinux: Update SELinux SCTP documentation 2018-03-20 16:26:15 -04:00