Bluetooth: let the crypto subsystem generate the ecc privkey
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 4 repliesIn review
- v1 RFC2 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- add patches 2, 3, 4.
- adress Marcel's suggestions:
- revive the check for accidentally generated debug keys
- bypass the handling of private key to the crypto subsytem, even when using debug keys.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Bluetooth: move ecdh allocation outside of ecdh_helpernet/ net/ net/ +1 more | +87 | 0 replies | |
| 2/5 | Bluetooth: ecdh_helper - reveal error codesnet/ net/ net/ | +33 | 0 replies | |
| 3/5 | Bluetooth: selftest - check for errors when computing ZZnet/ | +8 | 0 replies | |
| 4/5 | Bluetooth: ecdh_helper - fix leak of private keynet/ | +1 | 0 replies | |
| 5/5 | Bluetooth: let the crypto subsystem generate the ecc privkeynet/ net/ net/ +1 more | +147 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [v2 PATCH 0/5] Bluetooth: let the crypto subsystem generate the ecc privkey
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. 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.
RFC version can be found at:
https://www.mail-archive.com/[email protected]/msg28036.html
Changes in v2:
- add patches 2, 3, 4.
- adress Marcel's suggestions:
- revive the check for accidentally generated debug keys
- bypass the handling of private key to the crypto subsytem, even when using debug keys.
Tudor Ambarus (5):
Bluetooth: move ecdh allocation outside of ecdh_helper
Bluetooth: ecdh_helper - reveal error codes
Bluetooth: selftest - check for errors when computing ZZ
Bluetooth: ecdh_helper - fix leak of private key
Bluetooth: let the crypto subsystem generate the ecc privkey
net/bluetooth/ecdh_helper.c | 228 ++++++++++++++++++++++---------------------- net/bluetooth/ecdh_helper.h | 9 +- net/bluetooth/selftest.c | 46 +++++++-- net/bluetooth/smp.c | 127 +++++++++++++++--------- 4 files changed, 240 insertions(+), 170 deletions(-)
Signature · 1 line
2.9.4