Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ENCRYPTION_MODE

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

Index

Enumeration members

AES_128_ECB

AES_128_ECB: = 2

2: 128-bit AES encryption, ECB mode.

AES_128_GCM

AES_128_GCM: = 5

5: 128-bit AES encryption, GCM mode.

since

v3.3.1

AES_128_GCM2

AES_128_GCM2: = 7

7: (Default) 128-bit AES encryption, GCM mode. This mode requires you to set the salt (encryptionKdfSalt).

since

v3.4.5

AES_128_XTS

AES_128_XTS: = 1

1: 128-bit AES encryption, XTS mode.

AES_256_GCM

AES_256_GCM: = 6

6: 256-bit AES encryption, GCM mode.

since

v3.3.1

AES_256_GCM2

AES_256_GCM2: = 8

8: 256-bit AES encryption, GCM mode. This mode requires you to set the salt (encryptionKdfSalt).

since

v3.4.5

AES_256_XTS

AES_256_XTS: = 3

3: 256-bit AES encryption, XTS mode.

SM4_128_ECB

SM4_128_ECB: = 4

4: 128-bit SM4 encryption, ECB mode.