PreviousNext
setUserKey
Help > OS functions > Encryption > setUserKey

Function

 

Set user encryption/decryption key for RF communication

Purpose

 

To specify the 16 B long key for user-specific encryption and decryption

Syntax

 

void setUserKey()

Parameters

 

  –

Input values

 

bufferINFO[0 to 15] to be copied to the User key.   

Return value

 

  –

Output values

 

Complete bufferINFO is cleared when finished.

Preconditions

 

     Default value after reset: User key = 00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00

     For networking as well as non-networking communication

Remarks

 

     Alternatively, it is possible to use the User key directly from bufferINFO (without setUserKey). See encryptBufferRF and decryptBufferRF Input values.

Side effects

 

  –

See also

 

encryptBufferRF, decryptBufferRF

Example

 

bufferINFO[0] = 0x52;

      …

bufferINFO[15] = 0xB1;

setUserKey();