From 34cff06a728df93694e58af5b26910f902a34ff0 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 31 Dec 2016 10:06:24 +0200 Subject: [PATCH] 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 --- subsys/bluetooth/host/hci_ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/hci_ecc.c b/subsys/bluetooth/host/hci_ecc.c index 72869de395e..5070b0b5d76 100644 --- a/subsys/bluetooth/host/hci_ecc.c +++ b/subsys/bluetooth/host/hci_ecc.c @@ -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;