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:
parent
c97220c1d6
commit
34cff06a72
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue