All of lore.kernel.org
 help / color / mirror / Atom feed
* cipher, tls, and keys
@ 2016-06-06 23:19 Mat Martineau
  2016-06-06 23:35 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Mat Martineau @ 2016-06-06 23:19 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]


So far I've updated the asymmetric cipher code to work with the current 
version of the AF_ALG akcipher interface. This leaves the asymmetric 
cipher & tls disconnected from the new key/keyring code, which doesn't 
take advantage of the kernel's capabilities with akcipher and the keyring.

We have three options:

1. The current code works, so leave it as-is. I took this approach first 
to minimize changes while I got it working.

2. Make use of the keyctl() crypto API that's under review. This has the 
clearest upstream path because it was implemented by the keyring 
maintainer. Would simplify l_asymmetric_cipher code and involve fewer 
syscalls.

3. Continue with AF_ALG but make use of ALG_SET_KEY_ID and 
ALG_SET_PUB_KEY_ID to use keys already in a keyring. Would not be a big 
change, but the kernel patch set is a work in progress and much more 
uncertainty about upstream prospects / timing.


I like #2 because it makes for a clean API and simple userspace 
implementation. Anyone prefer other options?

--
Mat Martineau
Intel OTC

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

end of thread, other threads:[~2016-06-07 19:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 23:19 cipher, tls, and keys Mat Martineau
2016-06-06 23:35 ` Denis Kenzior
2016-06-07 19:30   ` Mat Martineau
2016-06-07 19:40     ` Denis Kenzior

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.