Method | Description | |
---|---|---|
CreateAes ( CryptoAlgoId_Values cryptoAlgoId ) : |
Creates Aes instance based on specified algorithm.
|
|
CreateMessageHeader ( CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, |
Create MessageHeader.
|
|
DecodeRequestMessage ( byte rawdata, |
Decode request message.
|
|
DecodeResponseMessage ( byte rawdata ) : |
Decode response message.
|
|
Decrypt ( |
Decrypts data.
|
|
Encrypt ( |
Encrypts data.
|
|
MergeBytesArray ( byte buffer ) : byte[] |
Merge bytes array to byte array
|
|
ToByteArray ( string str ) : byte[] |
Convert to byte array.
|
Method | Description | |
---|---|---|
DecodeMSG_BLK ( byte data, int &index ) : |
Decode MSG_BLK message.
|
|
DecodeMSG_BLKLIST ( byte data, int &index ) : |
Decode MSG_BLKLIST message.
|
|
DecodeMSG_GETBLKLIST ( byte data, int &index ) : |
Decode MSG_GETBLKLIST message
|
|
DecodeMSG_GETBLKS ( byte data, int &index ) : |
Decode MSG_GETBLKS message.
|
|
DecodeMSG_NEGO_REQ ( byte data, int &index ) : |
Decode MSG_NEGO_REQ message.
|
|
DecodeMSG_NEGO_RESP ( byte data, int &index ) : |
Decode MSG_NEGO_RESP message.
|
|
DecodeMessageHeader ( byte data, int &index ) : |
Decode message header.
|
public static CreateAes ( CryptoAlgoId_Values cryptoAlgoId ) : |
||
cryptoAlgoId | CryptoAlgoId_Values | Algorithm ID. |
return |
public static CreateMessageHeader ( CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, |
||
cryptoAlgoIdValues | CryptoAlgoId_Values | The cryptoAlgoIdValues. |
msgTypeValues | MsgType_Values | The msgTypeValues. |
protoVer | The protoVer. | |
return |
public DecodeRequestMessage ( byte rawdata, |
||
rawdata | byte | The raw data. |
uri | The request uri. | |
method | HttpMethod | The request method. |
return |
public DecodeResponseMessage ( byte rawdata ) : |
||
rawdata | byte | The raw data. |
return |
public static Decrypt ( |
||
aes | Aes object. | |
encrypted | byte | Encrypted data to be decrypted. |
key | byte | Encryption key. |
iv | byte | Initial vector. |
return | byte[] |
public static Encrypt ( |
||
aes | Aes object. | |
content | byte | Content to be encrypted. |
key | byte | Encryption key. |
iv | byte | Initial vector. |
return | byte[] |
public static MergeBytesArray ( byte buffer ) : byte[] | ||
buffer | byte | The buffer of bytes array |
return | byte[] |
public static ToByteArray ( string str ) : byte[] | ||
str | string | The string. |
return | byte[] |