All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] crypto: algif - add akcipher
@ 2016-03-30  0:56 ` Tadeusz Struk
  0 siblings, 0 replies; 26+ messages in thread
From: Tadeusz Struk @ 2016-03-30  0:56 UTC (permalink / raw)
  To: herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q
  Cc: tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w,
	smueller-T9tCv8IpfcWELgA04lAiVw,
	linux-api-u79uwXL29TY76Z2rM5mHXA, marcel-kz+m5ild9QBg9hUCZPvPmw,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	dhowells-H+wXaHxf7aLQT0dZR+AlfA, keyrings-u79uwXL29TY76Z2rM5mHXA,
	linux-crypto-u79uwXL29TY76Z2rM5mHXA,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ, davem-fT/PcQaiUtIeIZ0/mPfg9Q

First four patches are a resend of the v3 algif_akcipher from
Stephan Mueller, with minor changes after rebase on top of 4.6-rc1.

The next three patches add support for keys stored in system
keyring subsystem.

First patch adds a public_key info struct that is used to query
information about the public key.
For now it only contains information about where the key is stored.
This is to prevent other modules, like AF_ALG using a key that
can not be directly accessed by software. Later, when keyctl
will allow to reference hardware based public keys this can be
extended to describe other characteristic of the key, like
information on what operations a public key supports, size of data
is supported, whether a password is required to unlock it, etc.

Second patch adds support for ALG_SET_KEY_ID and ALG_SET_PUBKEY_ID
commands to AF_ALG, which can be used to reference sw key stored
in the system keyrings.

Third patch adds algif_akcipher nokey hadlers.

Patches generated on top of 4.6-rc1

v3 changes:
- include Stephan's patches (rebased on 4.6-rc1)
- add algif_akcipher nokey hadlers
- add public_key info struct to public_key and helper query functions
- add a check if a key is a software accessible key on af_alg, and
  return -ENOKEY if it isn't

v2 changes:
- pass the original skcipher request in ablkcipher.base.data instead of
  casting it back from the ablkcipher request.
- rename _req to base_req
- dropped 3/3

---
Stephan Mueller (4)
      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

Tadeusz Struk (3):
      crypto: algif_akcipher - add ops_nokey
      crypto: KEYS - add public_key info query
      crypto: AF_ALG - add support for key_id

 crypto/Kconfig                            |    9 
 crypto/Makefile                           |    1 
 crypto/af_alg.c                           |   60 ++-
 crypto/algif_akcipher.c                   |  685 +++++++++++++++++++++++++++++
 crypto/asymmetric_keys/x509_cert_parser.c |    1 
 include/crypto/if_alg.h                   |    1 
 include/crypto/public_key.h               |   31 +
 include/uapi/linux/if_alg.h               |    5 
 8 files changed, 788 insertions(+), 5 deletions(-)
 create mode 100644 crypto/algif_akcipher.c
--

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

end of thread, other threads:[~2016-03-30 17:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30  0:56 [PATCH v3 0/7] crypto: algif - add akcipher Tadeusz Struk
2016-03-30  0:56 ` Tadeusz Struk
2016-03-30  0:56 ` [PATCH v3 1/7] crypto: AF_ALG -- add sign/verify API Tadeusz Struk
2016-03-30  0:57 ` [PATCH v3 2/7] crypto: AF_ALG -- add setpubkey setsockopt call Tadeusz Struk
2016-03-30  0:57 ` [PATCH v3 3/7] crypto: AF_ALG -- add asymmetric cipher interface Tadeusz Struk
2016-03-30  0:57   ` Tadeusz Struk
2016-03-30  0:57 ` [PATCH v3 4/7] crypto: algif_akcipher - enable compilation Tadeusz Struk
2016-03-30  0:57 ` [PATCH v3 5/7] crypto: algif_akcipher - add ops_nokey Tadeusz Struk
2016-03-30  0:57 ` [PATCH v3 6/7] crypto: KEYS - add public_key info query Tadeusz Struk
2016-03-30  0:57 ` [PATCH v3 7/7] crypto: AF_ALG - add support for key_id Tadeusz Struk
2016-03-30  1:49   ` kbuild test robot
2016-03-30  1:49     ` kbuild test robot
     [not found]     ` <201603300916.Og5tA3rF%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-03-30  2:52       ` Tadeusz Struk
2016-03-30  2:52         ` Tadeusz Struk
2016-03-30  2:22   ` kbuild test robot
2016-03-30  2:22     ` kbuild test robot
2016-03-30  2:22     ` kbuild test robot
2016-03-30  2:46   ` kbuild test robot
2016-03-30  2:46     ` kbuild test robot
2016-03-30  2:46     ` kbuild test robot
2016-03-30 16:31 ` David Howells
2016-03-30 16:45   ` David Woodhouse
2016-03-30 16:45     ` David Woodhouse
2016-03-30 16:45   ` David Woodhouse
2016-03-30 16:45     ` David Woodhouse
2016-03-30 17:19   ` 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.