Agora RTC Objective-C API Reference  Refactor
Data Fields
EncryptionConfig Struct Reference

Data Fields

ENCRYPTION_MODE encryptionMode
 
const char * encryptionKey
 

Detailed Description

Configurations of the built-in encryption schemas.

Constructor & Destructor Documentation

◆ EncryptionConfig()

EncryptionConfig ( )
inline

Field Documentation

◆ encryptionMode

ENCRYPTION_MODE encryptionMode

The encryption mode. The default encryption mode is AES_128_GCM2. See ENCRYPTION_MODE.

◆ encryptionKey

const char* encryptionKey

The encryption key in the string format.

Note
If you do not set an encryption key or set it as NULL, you cannot use the built-in encryption, and the SDK returns ERR_INVALID_ARGUMENT (-2).

◆ encryptionKdfSalt

uint8_t encryptionKdfSalt[32]