Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] How to set the encryptions key size?
Date: Mon, 19 Mar 2007 16:03:11 +0100	[thread overview]
Message-ID: <1174316592.3690.7.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <6039B3E28F85164B82BBABFD30D98DDE013EC5C4@vilh303a.ww011.siemens.net>

Hi Nina,

> is there a way to specify the encryption key size? Is it possible to
> enforce an encryption with a 128-bit key? I found out that there is a
> method to get the encryption key size, but I didn't find a way to set
> the key size.

the encryption key size can vary between 8-bit and 128-bit. Some chips
have a limited encryption key size of 56-bit, because of export
regulations in some country. For example for CSR chips you can use the
command "hciconfig hci0 revision" as root to check for the maximal
encryption key size.

In general the encryption key size is not changeable. However with chips
from CSR you can specify a range for it. Having a lower encryption key
size of 40-bit renders most devices useless, because the other side
won't accept any connection anymore.

So if your device has a maximum limit of 56-bit, this limit will be
hardcoded into the firmware in most cases and thus not changeable.

However the method to read the encryption key size of a piconet is
vendor specific. The Bluetooth SIG refuses to add a standard HCI command
for this task.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2007-03-19 15:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 12:38 [Bluez-users] How to set the encryptions key size? Koestering, Nina (EXT)
2007-03-19 15:03 ` Marcel Holtmann [this message]
2007-03-19 14:34   ` Koestering, Nina (EXT)
2007-03-19 15:37     ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1174316592.3690.7.camel@aeonflux.holtmann.net \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox