linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND RFC PATCH 0/2] Bluetooth: let the crypto subsystem generate the ecc privkey
@ 2017-09-25 10:23 Tudor Ambarus
  2017-09-25 10:23 ` [RESEND RFC PATCH 1/2] Bluetooth: move ecdh allocation outside of ecdh_helper Tudor Ambarus
  2017-09-25 10:23 ` [RESEND RFC PATCH 2/2] Bluetooth: let the crypto subsystem generate the ecc privkey Tudor Ambarus
  0 siblings, 2 replies; 7+ messages in thread
From: Tudor Ambarus @ 2017-09-25 10:23 UTC (permalink / raw)
  To: marcel, linux-bluetooth; +Cc: linux-crypto, Tudor Ambarus

That Bluetooth SMP knows about the private key is pointless, since the
detection of debug key usage is actually via the public key portion.
With this patch set, the Bluetooth SMP will stop keeping a copy of the
ecdh private key, except when using debug keys. This way we let the
crypto subsystem to generate and handle the ecdh private key,
potentially benefiting of hardware ecc private key generation and
retention.

Tested with selftest and with btmon and smp-tester on top of hci_vhci,
with ecdh done in both software and hardware (through atmel-ecc driver).
All tests passed.


Tudor Ambarus (2):
  Bluetooth: move ecdh allocation outside of ecdh_helper
  Bluetooth: let the crypto subsystem generate the ecc privkey

 net/bluetooth/ecdh_helper.c | 134 ++++++++++++++++++--------------------------
 net/bluetooth/ecdh_helper.h |   8 ++-
 net/bluetooth/selftest.c    |  29 +++++++---
 net/bluetooth/smp.c         | 120 +++++++++++++++++++++++++--------------
 4 files changed, 157 insertions(+), 134 deletions(-)

-- 
2.9.4

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

end of thread, other threads:[~2017-09-25 16:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-25 10:23 [RESEND RFC PATCH 0/2] Bluetooth: let the crypto subsystem generate the ecc privkey Tudor Ambarus
2017-09-25 10:23 ` [RESEND RFC PATCH 1/2] Bluetooth: move ecdh allocation outside of ecdh_helper Tudor Ambarus
2017-09-25 13:02   ` Marcel Holtmann
2017-09-25 16:11     ` Tudor Ambarus
2017-09-25 10:23 ` [RESEND RFC PATCH 2/2] Bluetooth: let the crypto subsystem generate the ecc privkey Tudor Ambarus
2017-09-25 13:15   ` Marcel Holtmann
2017-09-25 16:13     ` Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).