|
TI BLE Stack API Documentation
2.03.08
|
Functions | |
| void | SM_RegisterTask (uint8 taskID) |
| bStatus_t | SM_GetEccKeys (void) |
| bStatus_t | SM_GetDHKey (uint8 *secretKey, uint8 *publicKeyX, uint8 *publicKeyY) |
| bStatus_t | SM_GetScConfirmOob (uint8 *publicKey, uint8 *oob, uint8 *pOut) |
| bStatus_t | SM_InitiatorInit (void) |
| Initialize SM Initiator on a master device. More... | |
| bStatus_t | SM_StartPairing (uint8 initiator, uint8 taskID, uint16 connectionHandle, smLinkSecurityReq_t *pSecReqs) |
| Start the pairing process. This function is also called if the device is already bound. More... | |
| bStatus_t | SM_StartEncryption (uint16 connHandle, uint8 *pLTK, uint16 div, uint8 *pRandNum, uint8 keyLen) |
| Send Start Encrypt through HCI. More... | |
| bStatus_t | SM_ResponderInit (void) |
| Initialize SM Responder on a slave device. More... | |
| bStatus_t | SM_NewRandKey (uint8 taskID) |
| Generate a key with a random value. More... | |
| bStatus_t | SM_CalcRandomAddr (uint8 *pIRK, uint8 *pNewAddr) |
| Calculate a new Private Resolvable address. More... | |
| bStatus_t | SM_ResolveRandomAddrs (uint8 *pIRK, uint8 *pAddr) |
| Resolve a Private Resolvable Address. More... | |
| bStatus_t | SM_Encrypt (uint8 *pKey, uint8 *pPlainText, uint8 *pResult) |
| Encrypt the plain text data with the key.. More... | |
| bStatus_t | SM_GenerateAuthenSig (uint8 *pData, uint16 len, uint8 *pAuthenSig) |
| Generate an outgoing Authentication Signature. More... | |
| bStatus_t | SM_VerifyAuthenSig (uint16 connHandle, uint8 authentication, uint8 *pData, uint16 len, uint8 *pAuthenSig) |
| Verify an Authentication Signature. More... | |
| bStatus_t | SM_PasskeyUpdate (uint8 *pPasskey, uint16 connectionHandle) |
| Update the passkey for the pairing process. More... | |
| void | SM_SetECCRegenerationCount (uint8 count) |
| Update the regeneration count for ECC key re-usage. More... | |
| bStatus_t SM_CalcRandomAddr | ( | uint8 * | pIRK, |
| uint8 * | pNewAddr | ||
| ) |
Calculate a new Private Resolvable address.
| pIRK | - Identity Root Key. |
| pNewAddr | - pointer to place to put new calc'd address |
| bStatus_t SM_Encrypt | ( | uint8 * | pKey, |
| uint8 * | pPlainText, | ||
| uint8 * | pResult | ||
| ) |
Encrypt the plain text data with the key..
| pKey | - key data |
| pPlainText | - Plain text data |
| pResult | - place to put the encrypted result |
| bStatus_t SM_GenerateAuthenSig | ( | uint8 * | pData, |
| uint16 | len, | ||
| uint8 * | pAuthenSig | ||
| ) |
Generate an outgoing Authentication Signature.
| pData | - message data |
| len | - length of pData |
| pAuthenSig | - place to put new signature |
| bStatus_t SM_InitiatorInit | ( | void | ) |
Initialize SM Initiator on a master device.
| bStatus_t SM_NewRandKey | ( | uint8 | taskID | ) |
Generate a key with a random value.
| taskID | - task ID to send results. |
| bStatus_t SM_PasskeyUpdate | ( | uint8 * | pPasskey, |
| uint16 | connectionHandle | ||
| ) |
Update the passkey for the pairing process.
| pPasskey | - pointer to the 6 digit passkey |
| connectionHandle | - connection handle to link. |
| bStatus_t SM_ResolveRandomAddrs | ( | uint8 * | pIRK, |
| uint8 * | pAddr | ||
| ) |
Resolve a Private Resolvable Address.
| pIRK | - pointer to the IRK |
| pAddr | - pointer to the random address |
| bStatus_t SM_ResponderInit | ( | void | ) |
Initialize SM Responder on a slave device.
| void SM_SetECCRegenerationCount | ( | uint8 | count | ) |
Update the regeneration count for ECC key re-usage.
| count | - number of times a keypair can be reused before regeneration. |
| bStatus_t SM_StartEncryption | ( | uint16 | connHandle, |
| uint8 * | pLTK, | ||
| uint16 | div, | ||
| uint8 * | pRandNum, | ||
| uint8 | keyLen | ||
| ) |
Send Start Encrypt through HCI.
| connHandle | - Connection Handle |
| pLTK | - pointer to 16 byte lkt |
| div | - div or ediv |
| pRandNum | - pointer to 8 byte random number |
| keyLen | - length of LTK (bytes) |
| bStatus_t SM_StartPairing | ( | uint8 | initiator, |
| uint8 | taskID, | ||
| uint16 | connectionHandle, | ||
| smLinkSecurityReq_t * | pSecReqs | ||
| ) |
Start the pairing process. This function is also called if the device is already bound.
NOTE: Only one pairing process at a time per device.
| initiator | - TRUE to start pairing as Initiator. |
| taskID | - task ID to send results. |
| connectionHandle | - Link's connection handle |
| pSecReqs | - Security parameters for pairing |
| bStatus_t SM_VerifyAuthenSig | ( | uint16 | connHandle, |
| uint8 | authentication, | ||
| uint8 * | pData, | ||
| uint16 | len, | ||
| uint8 * | pAuthenSig | ||
| ) |
Verify an Authentication Signature.
| connHandle | - connection to verify against. |
| authentication | - TRUE if requires an authenticated CSRK, FALSE if not |
| pData | - message data |
| len | - length of pData |
| pAuthenSig | - message signature to verify |
1.8.12