To know the difference between them, you should understand the pairing phases in BLE: Phase 1: two devices exchange information about the device, for example, capabilities, etc. Step 2: A short-term key (STK) is created based on a specific procedure according to the BLE specification. Phase 3: Long Term Key (LTK), Signature Enable Key (CSRK) and Identity Key (IRK) are encrypted using STK and exchanged between the two devices.
After step 3, the STK will no longer be used. Instead, LTK is used to encrypt the channel level, and CSRK is used to encrypt the AAT level, depending on the security mode.
In short, STK is used during pairing to encrypt LTK and other information between devices, LTK is subsequently used in normal data transfer.
source share