This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_BT_SMP_MIN_ENC_KEY_SIZE

Minimum encryption key size accepted in octets

Type: int

Help

This option sets the minimum encryption key size accepted during pairing.

Direct dependencies

BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definition

At subsys/bluetooth/host/Kconfig:438

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:9subsys/bluetooth/Kconfig:313

Menu path: (Top) → Sub Systems and OS Services → Bluetooth → Security Manager Protocol support

config BT_SMP_MIN_ENC_KEY_SIZE
    int "Minimum encryption key size accepted in octets" if !BT_SMP_SC_ONLY
    range 7 16
    default 7
    default 16 if BT_SMP_SC_ONLY
    depends on BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT
    help
      This option sets the minimum encryption key size accepted during pairing.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)