C# Класс Shadowsocks.Encryption.IVEncryptor

Наследование: Shadowsocks.Encryption.EncryptorBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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[]

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Decrypt() публичный Метод

public Decrypt ( byte buf, int length, byte outbuf, int &outlength ) : void
buf byte
length int
outbuf byte
outlength int
Результат void

Encrypt() публичный Метод

public Encrypt ( byte buf, int length, byte outbuf, int &outlength ) : void
buf byte
length int
outbuf byte
outlength int
Результат void

IVEncryptor() публичный Метод

public IVEncryptor ( string method, string password, bool onetimeauth, bool isudp ) : System
method string
password string
onetimeauth bool
isudp bool
Результат System

OtaGetHeadLen() защищенный Метод

protected OtaGetHeadLen ( byte buf, int length ) : int
buf byte
length int
Результат int

bytesToKey() защищенный Метод

protected bytesToKey ( byte password, byte key ) : void
password byte
key byte
Результат void

cipherUpdate() защищенный абстрактный Метод

protected abstract cipherUpdate ( bool isCipher, int length, byte buf, byte outbuf ) : void
isCipher bool
length int
buf byte
outbuf byte
Результат void

getCiphers() защищенный абстрактный Метод

protected abstract getCiphers ( ) : EncryptorInfo>.Dictionary
Результат EncryptorInfo>.Dictionary

initCipher() защищенный Метод

protected initCipher ( byte iv, bool isCipher ) : void
iv byte
isCipher bool
Результат void

randBytes() защищенный статический Метод

protected static randBytes ( byte buf, int length ) : void
buf byte
length int
Результат void

Описание свойств

CipherInfo защищенное свойство

protected EncryptorInfo,Shadowsocks.Encryption CipherInfo
Результат Shadowsocks.Encryption.EncryptorInfo

_cipher защищенное свойство

protected int _cipher
Результат int

_decryptIV защищенное свойство

protected byte[] _decryptIV
Результат byte[]

_decryptIVReceived защищенное свойство

protected bool _decryptIVReceived
Результат bool

_encryptIV защищенное свойство

protected byte[] _encryptIV
Результат byte[]

_encryptIVSent защищенное свойство

protected bool _encryptIVSent
Результат bool

_innerLibName защищенное свойство

protected string _innerLibName
Результат string

_key защищенное свойство

protected byte[] _key
Результат byte[]

_method защищенное свойство

protected string _method
Результат string

ciphers защищенное свойство

protected Dictionary ciphers
Результат EncryptorInfo>.Dictionary

ivLen защищенное свойство

protected int ivLen
Результат int

keyLen защищенное свойство

protected int keyLen
Результат int

tempbuf защищенное статическое свойство

protected static byte[] tempbuf
Результат byte[]