Bluetooth: SMP: Refactor smp_public_key
Bluetooth: SMP: Refactor smp_public_key

SMP code is cutted by ifdefs for central and peripheral roles support.
To make code easier to understand we follow same rule for all code:

  if (conn->role == BT_HCI_ROLE_MASTER) {
    /* master specififc code */
    return;
  }

  /* slave specififc code */

This simple rule allows for covering all build options (only central,
only peripheral or both) in clean way.

Change-Id: I37e65e7444090860069bfa6e9adc5cae07f0c0b9
Signed-off-by: Szymon Janc <b8f563e108973ccd513fe259bc96c595c4d39939@tieto.com>

Vudentz/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,tidyjiang8/zephyr-doc,mbolivar/zephyr,galak/zephyr,bigdinotech/zephyr,tidyjiang8/zephyr-doc,explora26/zephyr,mbolivar/zephyr,zephyriot/zephyr,kraj/zephyr,nashif/zephyr,mbolivar/zephyr,holtmann/zephyr,rsalveti/zephyr,bigdinotech/zephyr,sharronliu/zephyr,fractalclone/zephyr-riscv,erwango/zephyr,aceofall/zephyr-iotos,erwango/zephyr,erwango/zephyr,fbsder/zephyr,sharronliu/zephyr,punitvara/zephyr,mirzak/zephyr-os,finikorg/zephyr,bigdinotech/zephyr,Vudentz/zephyr,runchip/zephyr-cc3220,ldts/zephyr,fbsder/zephyr,rsalveti/zephyr,tidyjiang8/zephyr-doc,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,rsalveti/zephyr,galak/zephyr,nashif/zephyr,runchip/zephyr-cc3200,finikorg/zephyr,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,fractalclone/zephyr-riscv,punitvara/zephyr,explora26/zephyr,aceofall/zephyr-iotos,nashif/zephyr,galak/zephyr,32bitmicro/zephyr,mbolivar/zephyr,coldnew/zephyr-project-fork,fbsder/zephyr,bboozzoo/zephyr,holtmann/zephyr,coldnew/zephyr-project-fork,punitvara/zephyr,kraj/zephyr,32bitmicro/zephyr,kraj/zephyr,Vudentz/zephyr,Vudentz/zephyr,coldnew/zephyr-project-fork,runchip/zephyr-cc3200,ldts/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,jamesonwilliams/zephyr-kernel,jamesonwilliams/zephyr-kernel,32bitmicro/zephyr,zephyriot/zephyr,pklazy/zephyr,mirzak/zephyr-os,fbsder/zephyr,explora26/zephyr,pklazy/zephyr,fractalclone/zephyr-riscv,GiulianoFranchetto/zephyr,zephyriot/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,nashif/zephyr,runchip/zephyr-cc3200,coldnew/zephyr-project-fork,sharronliu/zephyr,erwango/zephyr,holtmann/zephyr,mirzak/zephyr-os,zephyrproject-rtos/zephyr,galak/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,bigdinotech/zephyr,mirzak/zephyr-os,bboozzoo/zephyr,bigdinotech/zephyr,rsalveti/zephyr,tidyjiang8/zephyr-doc,32bitmicro/zephyr,sharronliu/zephyr,Vudentz/zephyr,bboozzoo/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,ldts/zephyr,fractalclone/zephyr-riscv,explora26/zephyr,pklazy/zephyr,sharronliu/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,galak/zephyr,holtmann/zephyr,jamesonwilliams/zephyr-kernel,zephyriot/zephyr,runchip/zephyr-cc3200,zephyriot/zephyr,pklazy/zephyr,kraj/zephyr,runchip/zephyr-cc3200,coldnew/zephyr-project-fork,pklazy/zephyr,jamesonwilliams/zephyr-kernel,holtmann/zephyr,32bitmicro/zephyr,runchip/zephyr-cc3220,bboozzoo/zephyr,jamesonwilliams/zephyr-kernel,zephyrproject-rtos/zephyr,aceofall/zephyr-iotos,erwango/zephyr,Vudentz/zephyr,tidyjiang8/zephyr-doc,bboozzoo/zephyr,punitvara/zephyr,rsalveti/zephyr,aceofall/zephyr-iotos,ldts/zephyr,mirzak/zephyr-os,kraj/zephyr,finikorg/zephyr,runchip/zephyr-cc3220