* Bluetooth encryption algorithms
@ 2011-08-10 15:41 dave higton
2011-08-15 12:54 ` Cufi, Carles
0 siblings, 1 reply; 4+ messages in thread
From: dave higton @ 2011-08-10 15:41 UTC (permalink / raw)
To: linux-bluetooth
My friend Google has been of no help, and my searches
through the bluez source have not found what I was
looking for: information, and ideally source code,
for the Bluetooth encryption algorithms.
I'm trying to create a simple Bluetooth stack for
RISC OS. Rather than attempt to port an existing
open source stack, I'm trying to write from scratch
as far as possible. This may be a naive idea, but I
want to do it as much for the educational value to me
as for the end product.
I have been able to perform an inquiry, get the names
of discoverable devices, and perform the first step
of pairing. So far, so good - and, yes, that's the
easy stuff.
So if anyone can point me to sources of information
detailed and explicit enough to show me how Bluetooth
encryption and decryption are done, I would very much
appreciate it. I have the Bluetooth core specification,
but I'm not confident that I can implement correctly
from it alone. I'm also looking for test data, ideally
for each step through each algorithm.
If there is a book that covers the subject in enough
detail, I'd be happy to buy it.
Tia,
Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Bluetooth encryption algorithms
2011-08-10 15:41 Bluetooth encryption algorithms dave higton
@ 2011-08-15 12:54 ` Cufi, Carles
2011-08-19 21:13 ` Dave Higton
0 siblings, 1 reply; 4+ messages in thread
From: Cufi, Carles @ 2011-08-15 12:54 UTC (permalink / raw)
To: dave higton, linux-bluetooth@vger.kernel.org
Hi there,
> So if anyone can point me to sources of information detailed and
> explicit enough to show me how Bluetooth encryption and decryption are
> done, I would very much appreciate it. I have the Bluetooth core
> specification, but I'm not confident that I can implement correctly from
> it alone. I'm also looking for test data, ideally for each step through
> each algorithm.
Just register with bluetooth.org and get the Core Spec v4.0. All the information you need is there.
https://www.bluetooth.org/Technical/Specifications/adopted.htm
Carles
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Bluetooth encryption algorithms
2011-08-15 12:54 ` Cufi, Carles
@ 2011-08-19 21:13 ` Dave Higton
2011-08-21 21:13 ` Ash K
0 siblings, 1 reply; 4+ messages in thread
From: Dave Higton @ 2011-08-19 21:13 UTC (permalink / raw)
To: linux-bluetooth
In message <5B4B9A479BF6994B88EA975675EC5B790580AC7068@MES1OS2SXC003.mes1.tconet.net>
"Cufi, Carles" <carles.cufi@nordicsemi.no> wrote:
> Hi there,
> > So if anyone can point me to sources of information detailed and
> > explicit enough to show me how Bluetooth encryption and decryption are
> > done, I would very much appreciate it. I have the Bluetooth core
> > specification, but I'm not confident that I can implement correctly from
> > it alone. I'm also looking for test data, ideally for each step through
> > each algorithm.
>
> Just register with bluetooth.org and get the Core Spec v4.0. All the
> information you need is there.
>
> https://www.bluetooth.org/Technical/Specifications/adopted.htm
Like I said in the bit you quoted, I have the specification (I have
Core Spec v4.0, although I didn't specifically say that). At least
I have, since I first posted, found the test data - I was almost sure
I'd seen them before, but I couldn't find them via the index. I saw
them by accident when browsing for something else. (Encryption test
data not in the Security section... who'd have thought it?)
I'm still hoping for something more tutorial or explanatory, but if
I can't find anything, at least the test data will give me more
confidence to try implementing from the specification.
Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bluetooth encryption algorithms
2011-08-19 21:13 ` Dave Higton
@ 2011-08-21 21:13 ` Ash K
0 siblings, 0 replies; 4+ messages in thread
From: Ash K @ 2011-08-21 21:13 UTC (permalink / raw)
To: Dave Higton; +Cc: linux-bluetooth
Spec has dedicated sections for sample data:
For Core, you have sample data in Volume 2, Part G
For LE, you have sample data in Volume 6, part C.
As I said before if you are using a 2.1 or below controller,
authentication and encryption would be done in controller. If it is
4.0 authentication is performed in host using SMP and encryption is
done in controller.
If you are implementing controller functionality, the sample data in
spec would be enough!
On Sat, Aug 20, 2011 at 2:43 AM, Dave Higton <davehigton@dsl.pipex.com> wrote:
> In message <5B4B9A479BF6994B88EA975675EC5B790580AC7068@MES1OS2SXC003.mes1.tconet.net>
> "Cufi, Carles" <carles.cufi@nordicsemi.no> wrote:
>
>> Hi there,
>> > So if anyone can point me to sources of information detailed and
>> > explicit enough to show me how Bluetooth encryption and decryption are
>> > done, I would very much appreciate it. I have the Bluetooth core
>> > specification, but I'm not confident that I can implement correctly from
>> > it alone. I'm also looking for test data, ideally for each step through
>> > each algorithm.
>>
>> Just register with bluetooth.org and get the Core Spec v4.0. All the
>> information you need is there.
>>
>> https://www.bluetooth.org/Technical/Specifications/adopted.htm
>
> Like I said in the bit you quoted, I have the specification (I have
> Core Spec v4.0, although I didn't specifically say that). At least
> I have, since I first posted, found the test data - I was almost sure
> I'd seen them before, but I couldn't find them via the index. I saw
> them by accident when browsing for something else. (Encryption test
> data not in the Security section... who'd have thought it?)
>
> I'm still hoping for something more tutorial or explanatory, but if
> I can't find anything, at least the test data will give me more
> confidence to try implementing from the specification.
>
> Dave
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Ash
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-21 21:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-10 15:41 Bluetooth encryption algorithms dave higton
2011-08-15 12:54 ` Cufi, Carles
2011-08-19 21:13 ` Dave Higton
2011-08-21 21:13 ` Ash K
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).