This is an old revision of the document!


SDK API > BS2_GetDataEncryptKey

[+ V2.6.0] Gets data encryption key.

Declaration

#include "BS_API.h"
 
int BS2_GetDataEncryptKey(void* context, uint32_t deviceId, BS2EncryptKey* keyInfo);

Parameter

  • [In] context : Context
  • [In] deviceId : Device ID
  • [Out] keyInfo : Structure address of encryption key information which will be returned

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.

See Also