Debian Codegraph @

kernel-patches/4.15-rc3/asym/v10-0000-cover-letter.patch

raw
1 From 376b0c4f625df9c1326c994ae8e3ce7ff74a9456 Mon Sep 17 00:00:00 2001
2 From: Stephan Mueller <[email protected]>
3 Date: Sun, 7 Jan 2018 18:15:17 +0100
4 Subject: [PATCH v10 0/3] crypto: add algif_akcipher user space API
5
6 Hi,
7
8 This patch set adds the AF_ALG user space API to externalize the
9 asymmetric cipher API recently added to the kernel crypto API.
10
11 The patch set is tested with the user space library of libkcapi [1].
12 Use [1] test/test.sh for a full test run. The test covers the
13 following scenarios:
14
15 * sendmsg of one IOVEC
16
17 * sendmsg of 16 IOVECs with non-linear buffer
18
19 * vmsplice of one IOVEC
20
21 * vmsplice of 15 IOVECs with non-linear buffer
22
23 * invoking multiple separate cipher operations with one
24 open cipher handle
25
26 * encryption with private key (using vector from testmgr.h)
27
28 * encryption with public key (using vector from testmgr.h)
29
30 * decryption with private key (using vector from testmgr.h)
31
32 Note, to enable the test, edit line [2] from "4 99" to "4 13".
33
34 [1] http://www.chronox.de/libkcapi.html
35 [2] https://github.com/smuellerDD/libkcapi/blob/master/test/test.sh#L1452
36
37 Changes v10:
38 * port to kernel 4.15-rc3
39 * incorporate all fixes to AF_ALG applied during the 4.15-rc1 development cycle
40 including fixing of DoS errors
41
42 Stephan Mueller (3):
43 crypto: AF_ALG -- add sign/verify API
44 crypto: AF_ALG -- add setpubkey setsockopt call
45 crypto: AF_ALG -- add asymmetric cipher
46
47 crypto/Kconfig | 9 +
48 crypto/Makefile | 1 +
49 crypto/af_alg.c | 28 ++-
50 crypto/algif_aead.c | 31 ++-
51 crypto/algif_akcipher.c | 474 ++++++++++++++++++++++++++++++++++++++++++++
52 crypto/algif_skcipher.c | 25 ++-
53 include/crypto/if_alg.h | 7 +-
54 include/uapi/linux/if_alg.h | 3 +
55 8 files changed, 547 insertions(+), 31 deletions(-)
56 create mode 100644 crypto/algif_akcipher.c
57
58 --
59 2.14.3
60