Reference of ICryptManager
Description of ICryptManager. It is to support an external cryption module.
Methods |
- int isCMInitialized()
- boolean canSupportPTT()
- boolean canSupportChat()
- boolean canSupportLocation()
- boolean canSupportVideoShare()
- void beginPTT(int pttChannelId, int index)
- byte[] encryptPTT(int pttChannelId, int index, byte[] inputData, int inputDataOffset, int inputDataLength)
- byte[] decryptPTT(int pttChannelId, int index, byte[] inputData, int inputDataOffset, int inputDataLength)
- void endPTT(int pttChannelId, int index)
- void beginVideoShare(int videoChannelId, VideoChannel videoInstance)
- byte[] encryptVideoShare(int videoChannelId, VideoChannel videoInstance, byte[] inputData, int inputDataOffset, int inputDataLength)
- byte[] decryptVideoShare(int videoChannelId, VideoChannel videoInstance, byte[] inputData, int inputDataOffset, int inputDataLength)
- void endVideoShare(int videoChannelId, VideoChannel videoInstance)
- byte[] encryptOther(CryptoType type, byte[] inputData, int inputDataOffset, int inputDataLength)
- byte[] decryptOther(CryptoType type, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Methods
isCMInitialized
int isCMInitialized() |
Return | 1: initialized, 0< uninitialized |
Description | Check initialization |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
canSupportPTT
boolean canSupportPTT() |
Return | true/false |
Description | Whether PTT encription is supported |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
canSupportChat
boolean canSupportChat() |
Return | true/false |
Description | Whether Chat encription is supported |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
canSupportLocation
boolean canSupportLocation() |
Return | true/false |
Description | Whether Location encription is supported |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
canSupportVideoShare
boolean canSupportVideoShare() |
Return | true/false |
Description | Whether VideoShare encription is supported |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
beginPTT
void beginPTT(int pttChannelId, int index) |
pttChannelId | locked channelId |
index | locked session index, 0:normal session, 1:master session |
Description | PTT lock is started |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
encryptPTT
byte[] encryptPTT(int pttChannelId, int index, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Return | encrypted data buffer. It need to have 16 bytes block padded. |
pttChannelId | locked channelId |
index | locked session index, 0:normal session, 1:master session |
inputData | input data buffer |
inputDataOffset | input data offset |
inputDataLength | input data length |
Description | encrypt PTT packet. The output need to have 16 bytes padding. |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
decryptPTT
byte[] decryptPTT(int pttChannelId, int index, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Return | decrypted data buffer. It would be same with inputDataLength. |
pttChannelId | locked channelId |
index | locked session index, 0:normal session, 1:master session |
inputData | input data buffer |
inputDataOffset | input data offset |
inputDataLength | input data length |
Description | decrypt PTT packet. The padding will be removed at outside of this function. |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
endPTT
void endPTT(int pttChannelId, int index) |
pttChannelId | locked channelId |
index | locked session index, 0:normal session, 1:master session |
Description | PTT lock is stopped |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
beginVideoShare
void beginVideoShare(int videoChannelId, VideoChannel videoInstance) |
videoChannelId | video channelId |
videoInstance | announcer or player's object instance |
Description | VideoShare is started |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
encryptVideoShare
byte[] encryptVideoShare(int videoChannelId, VideoChannel videoInstance, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Return | encrypted data buffer. It need to have 16 bytes block padded. |
videoChannelId | video channelId |
videoInstance | announcer or player's object instance |
inputData | input data buffer |
inputDataOffset | input data offset |
inputDataLength | input data length |
Description | encrypt VideoShare packet. The output need to have 16 bytes padding. |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
decryptVideoShare
byte[] decryptVideoShare(int videoChannelId, VideoChannel videoInstance, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Return | decrypted data buffer. It would be same with inputDataLength. |
videoChannelId | video channelId |
videoInstance | announcer or player's object instance |
inputData | input data buffer |
inputDataOffset | input data offset |
inputDataLength | input data length |
Description | decrypt VideoShare packet. The padding will be removed at outside of this function. |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
endVideoShare
void endVideoShare(int videoChannelId, VideoChannel videoInstance) |
videoChannelId | video channelId |
videoInstance | announcer or player's object instance |
Description | VideoShare is stopped |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
encryptOther
byte[] encryptOther(CryptoType type, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Return | encrypted data buffer. It need to have 16 bytes block padded. |
type | input packet type. Chat/Location |
inputData | input data buffer |
inputDataOffset | input data offset |
inputDataLength | input data length |
Description | encrypt other packet. The output need to have 16 bytes padding. |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |
decryptOther
byte[] decryptOther(CryptoType type, byte[] inputData, int inputDataOffset, int inputDataLength)
|
Return | decrypted data buffer. It would be same with inputDataLength. |
type | input packet type. Chat/Location |
inputData | input data buffer |
inputDataOffset | input data offset |
inputDataLength | input data length |
Description | decrypt other packet. The padding will be removed at outside of this function. |
Android SDK | 5.0.1 |
iOS SDK | Not supported |
Windows SDK | 5.0.1 |
Linux SDK | Not supported yet |