Debian Codegraph @

kernel-patches/4.14-rc1/asym/v9-0000-cover-letter.patch

raw
1 From 7c604d30f77ff4634497c027922e55a8e9752142 Mon Sep 17 00:00:00 2001
2 From: Stephan Mueller <[email protected]>
3 Date: Thu, 28 Sep 2017 16:28:46 +0200
4 Subject: [PATCH v9 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 v9:
38 * port to kernel 4.14-rc1
39 * integrate comments from Tudor Ambarus
40
41 Stephan Mueller (3):
42 crypto: AF_ALG -- add sign/verify API
43 crypto: AF_ALG -- add setpubkey setsockopt call
44 crypto: AF_ALG -- add asymmetric cipher
45
46 crypto/Kconfig | 9 +
47 crypto/Makefile | 1 +
48 crypto/af_alg.c | 28 ++-
49 crypto/algif_aead.c | 36 ++--
50 crypto/algif_akcipher.c | 470 ++++++++++++++++++++++++++++++++++++++++++++
51 crypto/algif_skcipher.c | 26 ++-
52 include/crypto/if_alg.h | 7 +-
53 include/uapi/linux/if_alg.h | 3 +
54 8 files changed, 547 insertions(+), 33 deletions(-)
55 create mode 100644 crypto/algif_akcipher.c
56
57 --
58 2.13.5
59