public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] staging: usbip: Extend crypto support
@ 2013-09-19 14:11 Dominik Paulus
  2013-09-19 14:11 ` [PATCH 1/7] staging: usbip: TLS for all userspace communication Dominik Paulus
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Dominik Paulus @ 2013-09-19 14:11 UTC (permalink / raw)
  To: usbip-devel
  Cc: Greg Kroah-Hartman, Masanari Iida, Dominik Paulus, Tobias Polzer,
	Kurt Kanzenbach, Stefan Reif, Joe Perches, Bart Westgeest,
	Jake Champlin, Ilija Hadzic, Anthony Foiani, Bernard Blackham,
	Harvey Yang, linux-usb, devel, linux-kernel, linux-kernel

Hi,

this patch series extends our previous set of patches (see [1]). We extended
the crypto support so all of the usbip network traffic can now be completely
encrypted and authenticated.

We now use GnuTLS not only for password verification, but extend the lifetime
of the TLS connection to cover all of the userland communications.  Before
handing over the connection to the kernel, two randomly generated 128 bit
session keys are exchanged between client and server and stored in sysfs
together with the sockfd. The kernel uses these keys to encrypt and
authenticate all of the traffic using AES-GCM and the linux crypto API.
Separate keys are used for both directions of the data channel.

To the best of our knowledge, the implemented encryption should provide decent
security. However, it still lacks complete review; we also note that in the
documentation.

As mentioned in the project README, the network protocol needs more discussion.
This series increments the protocol version, because the improved crypto
support breaks compatibility with the previous patch series[1]. In the long
term, the protocol should be extended to support proper feature negotiation. If
both patch series are merged as one, the protocol version increment can be
omitted - both patch series are compatible with unauthenticated transport, but
are incompatible with each other.

Regards,
	Tobias Polzer and Dominik Paulus

[1] <1379066161-8278-1-git-send-email-dominik.paulus@fau.de>,
    https://lkml.org/lkml/2013/9/13/104


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

end of thread, other threads:[~2013-09-26 11:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19 14:11 [PATCH 0/7] staging: usbip: Extend crypto support Dominik Paulus
2013-09-19 14:11 ` [PATCH 1/7] staging: usbip: TLS for all userspace communication Dominik Paulus
2013-09-19 14:11 ` [PATCH 2/7] staging: usbip: Exchange session keys in userspace Dominik Paulus
2013-09-19 14:11 ` [PATCH 3/7] staging: usbip: Pass session keys to the kernel Dominik Paulus
2013-09-19 14:11 ` [PATCH 4/7] staging: usbip: Wrap kernel_sendmsg()/recvmsg() Dominik Paulus
2013-09-19 14:11 ` [PATCH 5/7] staging: usbip: Add encryption support to kernel Dominik Paulus
2013-09-23  9:59   ` Dan Carpenter
2013-09-26 10:18     ` Dominik Paulus
2013-09-26 11:48       ` Dan Carpenter
2013-09-23 10:35   ` Dan Carpenter
2013-09-23 10:58   ` Dan Carpenter
2013-09-19 14:11 ` [PATCH 6/7] staging: usbip: Update documentation Dominik Paulus
2013-09-19 14:11 ` [PATCH 7/7] staging: usbip: Increment version number to 1.2.1 Dominik Paulus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox