All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] crypto: add algif_akcipher user space API
@ 2015-10-18 10:44 Stephan Mueller
  2015-10-18 10:45 ` [PATCH v2 1/5] MPI: fix off by one in mpi_read_raw_from_sgl Stephan Mueller
                   ` (6 more replies)
  0 siblings, 7 replies; 43+ messages in thread
From: Stephan Mueller @ 2015-10-18 10:44 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, linux-kernel, linux-api

Hi,

This patch set adds the AF_ALG user space API to externalize the
asymmetric cipher API recently added to the kernel crypto API.

The patch set is tested with the user space library of libkcapi [1].
Use [1] test/test.sh for a full test run. The test covers the
following scenarios:

	* sendmsg of one IOVEC

	* sendmsg of 16 IOVECs with non-linear buffer

	* vmsplice of one IOVEC

	* vmsplice of 15 IOVECs with non-linear buffer

	* invoking multiple separate cipher operations with one
	  open cipher handle

	* encryption with private key (using vector from testmgr.h)

	* encryption with public key (using vector from testmgr.h)

	* decryption with private key (using vector from testmgr.h)

The patch set includes a fix for the MPI parsing that is visible when
using SGL members that contain one byte.

Changes v2:
 * use updated SGL-based akcipher API
 * allow mix-n-match of sendmsg and vmsplice calls

[1] http://www.chronox.de/libkcapi.html

Stephan Mueller (5):
  MPI: fix off by one in mpi_read_raw_from_sgl
  crypto: AF_ALG -- add sign/verify API
  crypto: AF_ALG -- add setpubkey setsockopt call
  crypto: AF_ALG -- add asymmetric cipher interface
  crypto: algif_akcipher - enable compilation

 crypto/Kconfig              |   9 +
 crypto/Makefile             |   1 +
 crypto/af_alg.c             |  14 +-
 crypto/algif_akcipher.c     | 542 ++++++++++++++++++++++++++++++++++++++++++++
 include/crypto/if_alg.h     |   1 +
 include/uapi/linux/if_alg.h |   3 +
 lib/mpi/mpicoder.c          |   5 +-
 7 files changed, 571 insertions(+), 4 deletions(-)
 create mode 100644 crypto/algif_akcipher.c

-- 
2.5.0

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2015-12-14 18:09 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-18 10:44 [PATCH v2 0/5] crypto: add algif_akcipher user space API Stephan Mueller
2015-10-18 10:45 ` [PATCH v2 1/5] MPI: fix off by one in mpi_read_raw_from_sgl Stephan Mueller
2015-10-19 23:25   ` Tadeusz Struk
     [not found]   ` <3192672.E3TvJmsW94-Veo+UhszpQh6vwJ5+F2VIg@public.gmane.org>
2015-10-20 14:20     ` Herbert Xu
2015-10-20 14:20       ` Herbert Xu
2015-10-18 10:46 ` [PATCH v2 2/5] crypto: AF_ALG -- add sign/verify API Stephan Mueller
2015-10-18 10:47 ` [PATCH v2 3/5] crypto: AF_ALG -- add setpubkey setsockopt call Stephan Mueller
     [not found]   ` <1500043.fUe7nt4IEH-Veo+UhszpQh6vwJ5+F2VIg@public.gmane.org>
2015-10-30  8:16     ` Marcel Holtmann
2015-10-30  8:16       ` Marcel Holtmann
2015-10-30  8:42       ` Stephan Mueller
2015-10-18 10:48 ` [PATCH v2 4/5] crypto: AF_ALG -- add asymmetric cipher interface Stephan Mueller
2015-10-18 10:49 ` [PATCH v2 5/5] crypto: algif_akcipher - enable compilation Stephan Mueller
     [not found] ` <1831785.BBs8Hj3CxY-Veo+UhszpQh6vwJ5+F2VIg@public.gmane.org>
2015-10-19  1:32   ` [PATCH v2 0/5] crypto: add algif_akcipher user space API Herbert Xu
2015-10-19  1:32     ` Herbert Xu
2015-10-19  7:14     ` Stephan Mueller
2015-10-19  7:27       ` Herbert Xu
2015-10-27  4:54 ` Marcel Holtmann
     [not found]   ` <BDD3AC1F-26D5-41D2-863B-CF8C7BF5FFEE-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2015-10-27  9:12     ` Stephan Mueller
2015-10-27  9:12       ` Stephan Mueller
     [not found]       ` <1979544.kURdYDnObN-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2015-10-27  9:19         ` David Woodhouse
2015-10-27  9:19           ` David Woodhouse
     [not found]           ` <1445937541.3405.75.camel-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-10-27 10:50             ` Stephan Mueller
2015-10-27 10:50               ` Stephan Mueller
2015-10-27 23:15               ` David Woodhouse
2015-10-27 23:35                 ` Stephan Mueller
     [not found]                   ` <1499937.MpmApGzYrd-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2015-10-27 23:43                     ` David Woodhouse
2015-10-27 23:43                       ` David Woodhouse
     [not found]                       ` <1445989396.3405.131.camel-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-10-27 23:47                         ` Stephan Mueller
2015-10-27 23:47                           ` Stephan Mueller
2015-10-28  0:37                           ` David Woodhouse
     [not found]                             ` <1445992622.3405.148.camel-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-10-28  1:18                               ` Stephan Mueller
2015-10-28  1:18                                 ` Stephan Mueller
     [not found]                                 ` <2035809.AHCPW286O9-Veo+UhszpQh6vwJ5+F2VIg@public.gmane.org>
2015-10-28  1:36                                   ` David Woodhouse
2015-10-28  1:36                                     ` David Woodhouse
2015-10-28  0:46                           ` Marcel Holtmann
2015-10-28  1:29                             ` Stephan Mueller
2015-10-28  2:56                               ` Marcel Holtmann
     [not found]                                 ` <F0D283A6-37C8-47EC-9DE0-998B8A59F138-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2015-10-28 10:12                                   ` Stephan Mueller
2015-10-28 10:12                                     ` Stephan Mueller
2015-10-27 15:16     ` Tadeusz Struk
2015-10-27 15:16       ` Tadeusz Struk
2015-12-14 18:06     ` Tadeusz Struk
2015-12-14 18:06       ` Tadeusz Struk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.