Help Center> IoT Device Access> SDK Reference> Old SDKs> AgentLite API Reference (C)> Access of Directly Connected Devices> (Optional) Configuring the Login Information Encryption Algorithm

(Optional) Configuring the Login Information Encryption Algorithm

API Function

This API is used to configure the encryption algorithm type for sensitive information before login. The service can select an appropriate encryption algorithm type based on the security level.

API Description

1
HW_UINT HW_SetAlgType(HW_UINT uiAlgType);

Parameter Description

Parameter

Mandatory or Optional

Type

Description

uiAlgType

Mandatory

Int

Encryption algorithm type.

  • 0: AES 256 CBC
  • 1: AES 128 GCM
  • 2: AES 256 GCM

Return Value

For details, see Function Return Values.

Example

// Call this API to configure parameters.
HW_SetAlgType(2);