All of lore.kernel.org
 help / color / mirror / Atom feed
* Information about HCI LE Rand command
@ 2019-03-25 12:02 Alexandre Augusto
  2019-03-25 12:23 ` Emil Lenngren
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Augusto @ 2019-03-25 12:02 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I would like to know, if possible, information about the bluez LE Rand
command (ocf 0x0018) at HCI code. How does it generate the number? Is
it vendor-specific (or secret)?

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

* Re: Information about HCI LE Rand command
  2019-03-25 12:02 Information about HCI LE Rand command Alexandre Augusto
@ 2019-03-25 12:23 ` Emil Lenngren
  2019-03-25 12:40   ` Alexandre Augusto
  0 siblings, 1 reply; 5+ messages in thread
From: Emil Lenngren @ 2019-03-25 12:23 UTC (permalink / raw)
  To: Alexandre Augusto; +Cc: Bluez mailing list

Hi Alexandre,

Den mån 25 mars 2019 kl 13:03 skrev Alexandre Augusto
<alexandre.a.giron@gmail.com>:
>
> Hello,
>
> I would like to know, if possible, information about the bluez LE Rand
> command (ocf 0x0018) at HCI code. How does it generate the number? Is
> it vendor-specific (or secret)?

According to the Bluetooth core specification, it shall be a "A pseudo
random number generator compliant with [FIPS PUB 140-2]
(http://csrc.nist.gov/publications/fips/fips140-2/fips1402annexc.pdf)"
which shall be seeded "with at least the minimum entropy required by
the pseudo random number generator". What algorithm each Bluetooth
controller actually uses is therefore vendor specific. I guess most
controllers will use some SHA-based or AES-based algorithm. Note that
it is not the host (BlueZ) that generates the number; it just asks the
controller to generate it for the host.

/Emil

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

* Re: Information about HCI LE Rand command
  2019-03-25 12:23 ` Emil Lenngren
@ 2019-03-25 12:40   ` Alexandre Augusto
  2019-03-25 13:01     ` Emil Lenngren
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Augusto @ 2019-03-25 12:40 UTC (permalink / raw)
  To: Emil Lenngren; +Cc: Bluez mailing list

Thanks Emil.

The reason I asked is that I am researching ways to provide that
"minimum entropy required", and I was not able to find details about
the number generation.

Best regards,
Alexandre Giron

Em seg, 25 de mar de 2019 às 09:23, Emil Lenngren
<emil.lenngren@gmail.com> escreveu:
>
> Hi Alexandre,
>
> Den mån 25 mars 2019 kl 13:03 skrev Alexandre Augusto
> <alexandre.a.giron@gmail.com>:
> >
> > Hello,
> >
> > I would like to know, if possible, information about the bluez LE Rand
> > command (ocf 0x0018) at HCI code. How does it generate the number? Is
> > it vendor-specific (or secret)?
>
> According to the Bluetooth core specification, it shall be a "A pseudo
> random number generator compliant with [FIPS PUB 140-2]
> (http://csrc.nist.gov/publications/fips/fips140-2/fips1402annexc.pdf)"
> which shall be seeded "with at least the minimum entropy required by
> the pseudo random number generator". What algorithm each Bluetooth
> controller actually uses is therefore vendor specific. I guess most
> controllers will use some SHA-based or AES-based algorithm. Note that
> it is not the host (BlueZ) that generates the number; it just asks the
> controller to generate it for the host.
>
> /Emil



-- 
Alexandre Augusto Giron
Professor da UTFPR

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

* Re: Information about HCI LE Rand command
  2019-03-25 12:40   ` Alexandre Augusto
@ 2019-03-25 13:01     ` Emil Lenngren
  2019-03-25 14:01       ` Alexandre Augusto
  0 siblings, 1 reply; 5+ messages in thread
From: Emil Lenngren @ 2019-03-25 13:01 UTC (permalink / raw)
  To: Alexandre Augusto; +Cc: Bluez mailing list

Den mån 25 mars 2019 kl 13:40 skrev Alexandre Augusto
<alexandre.a.giron@gmail.com>:
>
> Thanks Emil.
>
> The reason I asked is that I am researching ways to provide that
> "minimum entropy required", and I was not able to find details about
> the number generation.
>
> Best regards,
> Alexandre Giron
>
> Em seg, 25 de mar de 2019 às 09:23, Emil Lenngren
> <emil.lenngren@gmail.com> escreveu:
> >
> > Hi Alexandre,
> >
> > Den mån 25 mars 2019 kl 13:03 skrev Alexandre Augusto
> > <alexandre.a.giron@gmail.com>:
> > >
> > > Hello,
> > >
> > > I would like to know, if possible, information about the bluez LE Rand
> > > command (ocf 0x0018) at HCI code. How does it generate the number? Is
> > > it vendor-specific (or secret)?
> >
> > According to the Bluetooth core specification, it shall be a "A pseudo
> > random number generator compliant with [FIPS PUB 140-2]
> > (http://csrc.nist.gov/publications/fips/fips140-2/fips1402annexc.pdf)"
> > which shall be seeded "with at least the minimum entropy required by
> > the pseudo random number generator". What algorithm each Bluetooth
> > controller actually uses is therefore vendor specific. I guess most
> > controllers will use some SHA-based or AES-based algorithm. Note that
> > it is not the host (BlueZ) that generates the number; it just asks the
> > controller to generate it for the host.
> >
> > /Emil

I'm a aware of two different vendors. One vendor has a hardware-based
random number generator based on thermal inner noise that is used to
feed the CSPRNG
(https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52810/latest/rng).
The other vendor uses the radio to gather enough random bits from the
air.

/Emil

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

* Re: Information about HCI LE Rand command
  2019-03-25 13:01     ` Emil Lenngren
@ 2019-03-25 14:01       ` Alexandre Augusto
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Augusto @ 2019-03-25 14:01 UTC (permalink / raw)
  To: Emil Lenngren; +Cc: Bluez mailing list

That's very interesting. Thank you.


Best regards,
Alexandre Giron

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

end of thread, other threads:[~2019-03-25 14:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-25 12:02 Information about HCI LE Rand command Alexandre Augusto
2019-03-25 12:23 ` Emil Lenngren
2019-03-25 12:40   ` Alexandre Augusto
2019-03-25 13:01     ` Emil Lenngren
2019-03-25 14:01       ` Alexandre Augusto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.