Reference of ICryptManager

Description of ICryptManager. It is to support an external cryption module.

Methods

Methods

isCMInitialized

int isCMInitialized()
Return1: initialized, 0< uninitialized
DescriptionCheck initialization
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

canSupportPTT

boolean canSupportPTT()
Returntrue/false
DescriptionWhether PTT encription is supported
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

canSupportChat

boolean canSupportChat()
Returntrue/false
DescriptionWhether Chat encription is supported
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

canSupportLocation

boolean canSupportLocation()
Returntrue/false
DescriptionWhether Location encription is supported
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

canSupportVideoShare

boolean canSupportVideoShare()
Returntrue/false
DescriptionWhether VideoShare encription is supported
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

beginPTT

void beginPTT(int pttChannelId, int index)
pttChannelIdlocked channelId
indexlocked session index, 0:normal session, 1:master session
DescriptionPTT lock is started
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

encryptPTT

byte[] encryptPTT(int pttChannelId, int index, byte[] inputData, int inputDataOffset, int inputDataLength)
Returnencrypted data buffer. It need to have 16 bytes block padded.
pttChannelIdlocked channelId
indexlocked session index, 0:normal session, 1:master session
inputDatainput data buffer
inputDataOffsetinput data offset
inputDataLengthinput data length
Descriptionencrypt PTT packet. The output need to have 16 bytes padding.
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

decryptPTT

byte[] decryptPTT(int pttChannelId, int index, byte[] inputData, int inputDataOffset, int inputDataLength)
Returndecrypted data buffer. It would be same with inputDataLength.
pttChannelIdlocked channelId
indexlocked session index, 0:normal session, 1:master session
inputDatainput data buffer
inputDataOffsetinput data offset
inputDataLengthinput data length
Descriptiondecrypt PTT packet. The padding will be removed at outside of this function.
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

endPTT

void endPTT(int pttChannelId, int index)
pttChannelIdlocked channelId
indexlocked session index, 0:normal session, 1:master session
DescriptionPTT lock is stopped
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

beginVideoShare

void beginVideoShare(int videoChannelId, VideoChannel videoInstance)
videoChannelIdvideo channelId
videoInstanceannouncer or player's object instance
DescriptionVideoShare is started
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

encryptVideoShare

byte[] encryptVideoShare(int videoChannelId, VideoChannel videoInstance, byte[] inputData, int inputDataOffset, int inputDataLength)
Returnencrypted data buffer. It need to have 16 bytes block padded.
videoChannelIdvideo channelId
videoInstanceannouncer or player's object instance
inputDatainput data buffer
inputDataOffsetinput data offset
inputDataLengthinput data length
Descriptionencrypt VideoShare packet. The output need to have 16 bytes padding.
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

decryptVideoShare

byte[] decryptVideoShare(int videoChannelId, VideoChannel videoInstance, byte[] inputData, int inputDataOffset, int inputDataLength)
Returndecrypted data buffer. It would be same with inputDataLength.
videoChannelIdvideo channelId
videoInstanceannouncer or player's object instance
inputDatainput data buffer
inputDataOffsetinput data offset
inputDataLengthinput data length
Descriptiondecrypt VideoShare packet. The padding will be removed at outside of this function.
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

endVideoShare

void endVideoShare(int videoChannelId, VideoChannel videoInstance)
videoChannelIdvideo channelId
videoInstanceannouncer or player's object instance
DescriptionVideoShare is stopped
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

encryptOther

byte[] encryptOther(CryptoType type, byte[] inputData, int inputDataOffset, int inputDataLength)
Returnencrypted data buffer. It need to have 16 bytes block padded.
typeinput packet type. Chat/Location
inputDatainput data buffer
inputDataOffsetinput data offset
inputDataLengthinput data length
Descriptionencrypt other packet. The output need to have 16 bytes padding.
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet

decryptOther

byte[] decryptOther(CryptoType type, byte[] inputData, int inputDataOffset, int inputDataLength)
Returndecrypted data buffer. It would be same with inputDataLength.
typeinput packet type. Chat/Location
inputDatainput data buffer
inputDataOffsetinput data offset
inputDataLengthinput data length
Descriptiondecrypt other packet. The padding will be removed at outside of this function.
Android SDK5.0.1
iOS SDKNot supported
Windows SDK5.0.1
Linux SDKNot supported yet