Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC 0/2] Returning Encryption Key Size
@ 2011-04-15  0:04 Vinicius Costa Gomes
  2011-04-15  0:04 ` [RFC 1/2] Bluetooth: Add support for storing the key size Vinicius Costa Gomes
  2011-04-15  0:04 ` [RFC 2/2] Bluetooth: Add support for returning the encryption " Vinicius Costa Gomes
  0 siblings, 2 replies; 5+ messages in thread
From: Vinicius Costa Gomes @ 2011-04-15  0:04 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: marcel, johan.hedberg, Vinicius Costa Gomes

Disclaimer: the code this is based on is still on review, so this is
is subject to change.

Having Encryption Key Size exported to userspace is needed because
some profiles might have some restrictions depending on the key size
used to encrypt the link.

This patch series implement exporting to userspace adding one more
field to the bt_security structure.

For now, this only is valid for LE links, for 3.0+HS controllers
the Read Encryption Key Size command is defined. The plan is to
use that command for reading the key size as soon as the link
is encrypted, and storing the value read in the field that was
added to hci_conn.

The related userspace patches should follow this series.

--
Cheers,

Vinicius Costa Gomes (2):
  Bluetooth: Add support for storing the key size
  Bluetooth: Add support for returning the encryption key size

 include/net/bluetooth/bluetooth.h |    1 +
 include/net/bluetooth/hci_core.h  |    3 ++-
 net/bluetooth/hci_core.c          |    3 ++-
 net/bluetooth/hci_event.c         |    1 +
 net/bluetooth/l2cap_sock.c        |    4 ++++
 net/bluetooth/mgmt.c              |    4 ++--
 net/bluetooth/smp.c               |   16 ++++++++++------
 7 files changed, 22 insertions(+), 10 deletions(-)

--
1.7.4.3

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

end of thread, other threads:[~2011-04-16  5:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15  0:04 [RFC 0/2] Returning Encryption Key Size Vinicius Costa Gomes
2011-04-15  0:04 ` [RFC 1/2] Bluetooth: Add support for storing the key size Vinicius Costa Gomes
2011-04-15  0:04 ` [RFC 2/2] Bluetooth: Add support for returning the encryption " Vinicius Costa Gomes
2011-04-16  0:57   ` Marcel Holtmann
2011-04-16  5:24     ` Marcel Holtmann

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