C# 클래스 Shadowsocks.Encryption.IVEncryptor

상속: Shadowsocks.Encryption.EncryptorBase
파일 보기 프로젝트 열기: shadowsocks/shadowsocks-windows

보호된 프로퍼티들

프로퍼티 타입 설명
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[]