Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Enumerations | Functions
LL_API_ENCRYPT

Data Structures

struct  LlEncMode_t
 Encryption mode data structure used in LlGetEncMode() and LlSetEncMode(). More...
 

Enumerations

Functions

uint8_t LlEncrypt (uint8_t *pKey, uint8_t *pData)
 Encrypt data. More...
 
uint8_t LlStartEncryption (uint16_t handle, const uint8_t *pRand, uint16_t diversifier, const uint8_t *pKey)
 Start encryption. More...
 
uint8_t LlLtkReqReply (uint16_t handle, const uint8_t *pKey)
 Reply to a LTK request. More...
 
uint8_t LlLtkReqNegReply (uint16_t handle)
 Negative reply to a LTK request. More...
 
uint8_t LlReadAuthPayloadTimeout (uint16_t handle, uint16_t *pTimeout)
 Read authenticated payload timeout value. More...
 
uint8_t LlWriteAuthPayloadTimeout (uint16_t handle, uint16_t timeout)
 Write authenticated payload timeout value. More...
 
uint8_t LlGetEncMode (uint16_t handle, LlEncMode_t *pMode)
 Get encryption mode used in a connection. More...
 
uint8_t LlSetEncMode (uint16_t handle, const LlEncMode_t *pMode)
 Set encryption mode used in a connection. More...
 

Detailed Description

Enumeration Type Documentation

anonymous enum

Nonce mode.

Enumerator
LL_NONCE_MODE_PKT_CNTR 

Packet counter nonce mode (default).

LL_NONCE_MODE_EVT_CNTR 

Connection event counter mode.

Definition at line 821 of file ll_api.h.

Function Documentation

uint8_t LlEncrypt ( uint8_t *  pKey,
uint8_t *  pData 
)

Encrypt data.

Parameters
pKeyEncryption key.
pData16 bytes of plain text data.
Returns
Status error code.

Request the LL to encryption a block of data in place.

uint8_t LlGetEncMode ( uint16_t  handle,
LlEncMode_t pMode 
)

Get encryption mode used in a connection.

Parameters
handleConnection handle.
pModeStorage for encryption mode.
Returns
Status error code.

Get the encryption mode used by a connection.

uint8_t LlLtkReqNegReply ( uint16_t  handle)

Negative reply to a LTK request.

Parameters
handleConnection handle.
Returns
Status error code.

Requested LTK encryption key not available. This function is only used when operating in slave mode.

uint8_t LlLtkReqReply ( uint16_t  handle,
const uint8_t *  pKey 
)

Reply to a LTK request.

Parameters
handleConnection handle.
pKeyPointer to new key.
Returns
Status error code.

Provide the requested LTK encryption key. This function is only used when operating in slave mode.

uint8_t LlReadAuthPayloadTimeout ( uint16_t  handle,
uint16_t *  pTimeout 
)

Read authenticated payload timeout value.

Parameters
handleConnection handle.
pTimeoutPointer to timeout value.
Returns
Status error code.

Read authenticated payload timeout value for the given handle.

uint8_t LlSetEncMode ( uint16_t  handle,
const LlEncMode_t pMode 
)

Set encryption mode used in a connection.

Parameters
handleConnection handle.
pModeNew encryption mode.
Returns
Status error code.

Set the encryption mode used by a connection. Must be called before encryption is started or when encryption is paused.

uint8_t LlStartEncryption ( uint16_t  handle,
const uint8_t *  pRand,
uint16_t  diversifier,
const uint8_t *  pKey 
)

Start encryption.

Parameters
handleConnection handle.
pRandPointer to the random number.
diversifierDiversifier value.
pKeyPointer to the encryption key.
Returns
Status error code.

Start or restart link layer encryption on a connection. This function is only used when operating in master role.

uint8_t LlWriteAuthPayloadTimeout ( uint16_t  handle,
uint16_t  timeout 
)

Write authenticated payload timeout value.

Parameters
handleConnection handle.
timeoutNew timeout value.
Returns
Status error code.

Write new authenticated payload timeout value for the given handle.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.