Bluetooth: hci_ecc: Fix ECDH API usage
Bluetooth: hci_ecc: Fix ECDH API usage

The main issue is that after the latest update to TinyCrypt the
ecc_make_key() API expects a twice as big random number. Fix this, but
also move the variables to the static context since we're limiting one
HCI command at a time. Also place the variables in a union based on
their temporal dependencies. Thanks to this, we can now further reduce
the ECC stack size by 40 bytes (on ARM this then reports 12 bytes of
unused stack after key-pair generation and DHKey calculation).

Change-Id: I1036e0ca15f7c08063cba9e568d7df99e65c9156
Signed-off-by: Johan Hedberg <628991c7b0a19c384f9b99c21ec330ce952bb838@intel.com>

punitvara/zephyr,nashif/zephyr,runchip/zephyr-cc3200,mbolivar/zephyr,pklazy/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,bboozzoo/zephyr,aceofall/zephyr-iotos,kraj/zephyr,runchip/zephyr-cc3220,holtmann/zephyr,pklazy/zephyr,Vudentz/zephyr,pklazy/zephyr,zephyriot/zephyr,bboozzoo/zephyr,erwango/zephyr,Vudentz/zephyr,fbsder/zephyr,nashif/zephyr,punitvara/zephyr,fbsder/zephyr,runchip/zephyr-cc3200,finikorg/zephyr,galak/zephyr,bigdinotech/zephyr,kraj/zephyr,galak/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,sharronliu/zephyr,nashif/zephyr,rsalveti/zephyr,punitvara/zephyr,finikorg/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,erwango/zephyr,Vudentz/zephyr,Vudentz/zephyr,nashif/zephyr,sharronliu/zephyr,fractalclone/zephyr-riscv,ldts/zephyr,ldts/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,erwango/zephyr,aceofall/zephyr-iotos,finikorg/zephyr,sharronliu/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,holtmann/zephyr,finikorg/zephyr,rsalveti/zephyr,pklazy/zephyr,rsalveti/zephyr,mbolivar/zephyr,ldts/zephyr,mbolivar/zephyr,runchip/zephyr-cc3200,GiulianoFranchetto/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,explora26/zephyr,finikorg/zephyr,fractalclone/zephyr-riscv,GiulianoFranchetto/zephyr,explora26/zephyr,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,bigdinotech/zephyr,punitvara/zephyr,ldts/zephyr,mbolivar/zephyr,kraj/zephyr,fbsder/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,bigdinotech/zephyr,erwango/zephyr,galak/zephyr,rsalveti/zephyr,zephyriot/zephyr,bboozzoo/zephyr,explora26/zephyr,Vudentz/zephyr,rsalveti/zephyr,erwango/zephyr,sharronliu/zephyr,explora26/zephyr,runchip/zephyr-cc3220,runchip/zephyr-cc3220,zephyriot/zephyr,fbsder/zephyr,aceofall/zephyr-iotos,bigdinotech/zephyr,ldts/zephyr,bboozzoo/zephyr,holtmann/zephyr,aceofall/zephyr-iotos,mbolivar/zephyr,sharronliu/zephyr,runchip/zephyr-cc3200,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,zephyriot/zephyr,fbsder/zephyr,galak/zephyr,punitvara/zephyr,galak/zephyr,kraj/zephyr,pklazy/zephyr,holtmann/zephyr,bboozzoo/zephyr,runchip/zephyr-cc3220