Bluetooth: hci_ecc: Fix incorrect private_key size

The private_key parameter to generate_keys is supposed to be 32 bytes
in size, i.e. an array of 8 uint32_t variables.

Change-Id: Ia891fd68bfd8662983b898084e5a8524b7a9b8e2
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-12-31 10:06:24 +02:00
commit 34cff06a72

View file

@ -93,7 +93,7 @@ static void send_cmd_status(uint16_t opcode, uint8_t status)
bt_recv(buf);
}
static uint8_t generate_keys(uint8_t public_key[64], uint32_t private_key[32])
static uint8_t generate_keys(uint8_t public_key[64], uint32_t private_key[8])
{
#if !defined(CONFIG_BLUETOOTH_USE_DEBUG_KEYS)
EccPoint pkey;