Property | Type | Description | |
---|---|---|---|
CipherInfo | Shadowsocks.Encryption.EncryptorInfo | ||
_cipher | int | ||
_decryptIV | byte[] | ||
_decryptIVReceived | bool | ||
_encryptIV | byte[] | ||
_encryptIVSent | bool | ||
_innerLibName | string | ||
_key | byte[] | ||
_method | string | ||
ciphers | EncryptorInfo>.Dictionary | ||
ivLen | int | ||
keyLen | int | ||
tempbuf | byte[] |
Method | Description | |
---|---|---|
Decrypt ( byte buf, int length, byte outbuf, int &outlength ) : void | ||
Encrypt ( byte buf, int length, byte outbuf, int &outlength ) : void | ||
IVEncryptor ( string method, string password, bool onetimeauth, bool isudp ) : System |
Method | Description | |
---|---|---|
OtaGetHeadLen ( byte buf, int length ) : int | ||
bytesToKey ( byte password, byte key ) : void | ||
cipherUpdate ( bool isCipher, int length, byte buf, byte outbuf ) : void | ||
getCiphers ( ) : EncryptorInfo>.Dictionary |
||
initCipher ( byte iv, bool isCipher ) : void | ||
randBytes ( byte buf, int length ) : void |
Method | Description | |
---|---|---|
InitKey ( string method, string password ) : void | ||
OtaAuthBuffer ( byte buf, int &length ) : void | ||
OtaAuthBuffer4Tcp ( byte buf, int &length ) : void | ||
OtaAuthBuffer4Udp ( byte buf, int &length ) : void | ||
OtaGenChunkHash ( byte buf, int offset, int len ) : byte[] | ||
OtaGenHash ( byte msg, int msg_len ) : byte[] | ||
OtaUpdateKeyBuffer ( ) : void |
public Decrypt ( byte buf, int length, byte outbuf, int &outlength ) : void | ||
buf | byte | |
length | int | |
outbuf | byte | |
outlength | int | |
return | void |
public Encrypt ( byte buf, int length, byte outbuf, int &outlength ) : void | ||
buf | byte | |
length | int | |
outbuf | byte | |
outlength | int | |
return | void |
public IVEncryptor ( string method, string password, bool onetimeauth, bool isudp ) : System | ||
method | string | |
password | string | |
onetimeauth | bool | |
isudp | bool | |
return | System |
protected OtaGetHeadLen ( byte buf, int length ) : int | ||
buf | byte | |
length | int | |
return | int |
protected bytesToKey ( byte password, byte key ) : void | ||
password | byte | |
key | byte | |
return | void |
protected abstract cipherUpdate ( bool isCipher, int length, byte buf, byte outbuf ) : void | ||
isCipher | bool | |
length | int | |
buf | byte | |
outbuf | byte | |
return | void |
protected abstract getCiphers ( ) : EncryptorInfo>.Dictionary |
||
return | EncryptorInfo>.Dictionary |
protected initCipher ( byte iv, bool isCipher ) : void | ||
iv | byte | |
isCipher | bool | |
return | void |
protected static randBytes ( byte buf, int length ) : void | ||
buf | byte | |
length | int | |
return | void |
protected EncryptorInfo,Shadowsocks.Encryption CipherInfo | ||
return | Shadowsocks.Encryption.EncryptorInfo |