C# Class Shadowsocks.Encryption.IVEncryptor

Inheritance: Shadowsocks.Encryption.EncryptorBase
Afficher le fichier Open project: shadowsocks/shadowsocks-windows

Protected Properties

Свойство 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[]

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Private Methods

Méthode 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

Method Details

Decrypt() public méthode

public Decrypt ( byte buf, int length, byte outbuf, int &outlength ) : void
buf byte
length int
outbuf byte
outlength int
Résultat void

Encrypt() public méthode

public Encrypt ( byte buf, int length, byte outbuf, int &outlength ) : void
buf byte
length int
outbuf byte
outlength int
Résultat void

IVEncryptor() public méthode

public IVEncryptor ( string method, string password, bool onetimeauth, bool isudp ) : System
method string
password string
onetimeauth bool
isudp bool
Résultat System

OtaGetHeadLen() protected méthode

protected OtaGetHeadLen ( byte buf, int length ) : int
buf byte
length int
Résultat int

bytesToKey() protected méthode

protected bytesToKey ( byte password, byte key ) : void
password byte
key byte
Résultat void

cipherUpdate() protected abstract méthode

protected abstract cipherUpdate ( bool isCipher, int length, byte buf, byte outbuf ) : void
isCipher bool
length int
buf byte
outbuf byte
Résultat void

getCiphers() protected abstract méthode

protected abstract getCiphers ( ) : EncryptorInfo>.Dictionary
Résultat EncryptorInfo>.Dictionary

initCipher() protected méthode

protected initCipher ( byte iv, bool isCipher ) : void
iv byte
isCipher bool
Résultat void

randBytes() protected static méthode

protected static randBytes ( byte buf, int length ) : void
buf byte
length int
Résultat void

Property Details

CipherInfo protected_oe property

protected EncryptorInfo,Shadowsocks.Encryption CipherInfo
Résultat Shadowsocks.Encryption.EncryptorInfo

_cipher protected_oe property

protected int _cipher
Résultat int

_decryptIV protected_oe property

protected byte[] _decryptIV
Résultat byte[]

_decryptIVReceived protected_oe property

protected bool _decryptIVReceived
Résultat bool

_encryptIV protected_oe property

protected byte[] _encryptIV
Résultat byte[]

_encryptIVSent protected_oe property

protected bool _encryptIVSent
Résultat bool

_innerLibName protected_oe property

protected string _innerLibName
Résultat string

_key protected_oe property

protected byte[] _key
Résultat byte[]

_method protected_oe property

protected string _method
Résultat string

ciphers protected_oe property

protected Dictionary ciphers
Résultat EncryptorInfo>.Dictionary

ivLen protected_oe property

protected int ivLen
Résultat int

keyLen protected_oe property

protected int keyLen
Résultat int

tempbuf protected_oe static_oe property

protected static byte[] tempbuf
Résultat byte[]