Bluetooth: SMP: Reduce stack usage when generating ECDH keys

Only 8 random uint32_t digits are required by ecc_make_key function.

Change-Id: Ib0b4d6923b339828281e13b2a1d960d3bb72e65a
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-05-10 16:02:51 +02:00 committed by Johan Hedberg
commit 232e934351

View file

@ -3597,7 +3597,7 @@ static bool le_sc_supported(void)
#else
static bool le_sc_supported(void)
{
uint32_t random[16];
uint32_t random[8];
EccPoint pkey;
do {