The sample program below incorporates Security Library (R01AN3777) in both sample programs for Central and Peripheral roles. The security library also provides APIs to allow for easy use of the security features of the Bluetooth® Low Energy Protocol Stack. Again, this library is available for both Central and Peripheral roles. It can also be used for both Embedded and Modem configurations.
Bluetooth® low energy Protocol Stack Embedded Configuration Sample Program (R01AN3319)