文档中心
视频通话 (Legacy)
API 参考
Agora Unity API Reference for All Platforms
Agora Unity SDK API Reference
◆ encryptionMode
◆ encryptionKey
const char* agora_gaming_rtc.EncryptionConfig.encryptionKey |
|
static |
内置加密密钥,字符串类型。
- 注解
- 如果未指定该参数或将该参数设置为空,则无法启用内置加密,且 SDK 会返回错误码
ERR_INVALID_ARGUMENT (-2)
。
◆ encryptionKdfSalt
uint8_t agora_gaming_rtc.EncryptionConfig.encryptionKdfSalt[32] |
盐。Agora 推荐你在服务端使用 OpenSSL 生成盐。
- 注解
- 只有在
AES_128_GCM2
或 AES_256_GCM2
加密模式下,该参数才生效。此时,需确保填入该参数的值不全为 0
。
- 自从
- v3.4.5
◆ encryptionKey
string agora_gaming_rtc.EncryptionConfig.encryptionKey |
|
getset |
内置加密密钥,字符串类型。
- 注解
- 如果未指定该参数或将该参数设置为空,则无法启用内置加密,且 SDK 会返回错误码
ERR_INVALID_ARGUMENT (-2)
。
◆ encryptionKdfSalt
byte [] agora_gaming_rtc.EncryptionConfig.encryptionKdfSalt |
|
getset |
盐。Agora 推荐你在服务端使用 OpenSSL 生成盐。
- 注解
- 只有在
AES_128_GCM2
或 AES_256_GCM2
加密模式下,该参数才生效。此时,需确保填入该参数的值不全为 0
。
- 自从
- v3.4.5