Is GAPM_GEN_RAND_NB pseudo-random or true random?

2 posts / 0 new
Last post
oren
Offline
Last seen:1 year 7 months ago
Expert
加入:2014-06-28 22:03
Is GAPM_GEN_RAND_NB pseudo-random or true random?

Hi,
I've noticed thatGAPM_GEN_RAND_NB返回不同的results (viaGAPM_GEN_RAND_NB_IND) even when the same code runs twice (Unlike callingrand()which is pseudo-random).
I read that in some BLE chips there is a "true" random feature, which is based on the random radio signals that the chip receives.
Is GAPM_GEN_RAND_NB true random or pseudo random?
Can I consider it cryptographically secure? (Do I need to use GAPM_USE_BLOCK with non-secure random values to increase the security?).
What about power\time consumption in comparison to GAPM_USE_BLOCK? If it consumes too much power, I can pick 16 random bytes and use AES in counter mode, which is considered a good csprng for up to ~1MB.

Thanks

--- Edit ---
GAPM_GEN_RAND_NBdoes not always return unique results. After some executions, it returned the same results as previous ones. I am not sure what affects the results - could be some background interactions with connected devices.
I found some documentation inGAP Interface Specifications. UnderGAPM_GEN_RAND_ADDR_CMDthe documentation says: "Generate a random device addresswithoutstarting any air operation.". This is not stated underGAPM_GEN_RAND_NB_CMD. Does that mean thatGAPM_GEN_RAND_NB_CMDdoes use air operations (i.e. truly random)?.

RvA
Offline
Last seen:3 weeks 4 days ago
工作人员
加入:2014-02-07 14:10
Hi Oren,

Hi Oren,
GAPM_GEN_RAND_NB is pseudo random. So I would not expect unique results. I will discuss your question internally and get back to you.
Best regards,
RvA (Dialog)