AgoraEncryptionMode Constants Reference

Declared in AgoraEnumerates.h

AgoraEncryptionMode

Encryption mode. Agora recommends using either the AgoraEncryptionModeAES128GCM2 or AgoraEncryptionModeAES256GCM2 encryption mode, both of which support adding a salt and are more secure.

Constants

AgoraEncryptionModeNone

0: Deprecated as of v3.4.5.

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES128XTS

1: 128-bit AES encryption, XTS mode.

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES128ECB

2: 128-bit AES encryption, ECB mode.

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES256XTS

3: 256-bit AES encryption, XTS mode.

Declared In AgoraEnumerates.h.

AgoraEncryptionModeSM4128ECB

4: Reserved parameter.

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES128GCM

5: 128-bit AES encryption, GCM mode.

Available in v3.3.1

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES256GCM

6: 256-bit AES encryption, GCM mode.

Available in v3.3.1

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES128GCM2

7: (Default) 128-bit AES encryption, GCM mode. Compared to AgoraEncryptionModeAES128GCM encryption mode, AgoraEncryptionModeAES128GCM2 encryption mode is more secure and requires you to set the salt (encryptionKdfSalt).

Available in v3.4.5

Declared In AgoraEnumerates.h.

AgoraEncryptionModeAES256GCM2

8: 256-bit AES encryption, GCM mode. Compared to AgoraEncryptionModeAES256GCM encryption mode, AgoraEncryptionModeAES256GCM2 encryption mode is more secure and requires you to set the salt (encryptionKdfSalt).

Available in v3.4.5

Declared In AgoraEnumerates.h.

AgoraEncryptionModeEnd

Enumerator boundary

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h