C# Class Fun.Encryptor

显示文件 Open project: iFunFactory/demo-kgc-2015 Class Usage Examples

Protected Properties

Property Type Description
kBlockSize int

Public Methods

Method Description
Create ( EncryptionType type ) : Encryptor
Create ( string name ) : Encryptor
Decrypt ( ArraySegment src, ArraySegment dst, string in_header ) : System.Int64
Encrypt ( ArraySegment src, ArraySegment dst, string &out_header ) : System.Int64
Handshake ( string in_header, string &out_header ) : bool

Protected Methods

Method Description
CircularLeftShift ( UInt32 value, int shift_len ) : UInt32
CircularLeftShift ( byte value, int shift_len ) : byte
Encryptor ( EncryptionType encryption, string encryption_name, State initial_state ) : UnityEngine
SetState ( State state ) : void

Method Details

CircularLeftShift() protected static method

protected static CircularLeftShift ( UInt32 value, int shift_len ) : UInt32
value System.UInt32
shift_len int
return System.UInt32

CircularLeftShift() protected static method

protected static CircularLeftShift ( byte value, int shift_len ) : byte
value byte
shift_len int
return byte

Create() public static method

public static Create ( EncryptionType type ) : Encryptor
type EncryptionType
return Encryptor

Create() public static method

public static Create ( string name ) : Encryptor
name string
return Encryptor

Decrypt() public abstract method

public abstract Decrypt ( ArraySegment src, ArraySegment dst, string in_header ) : System.Int64
src ArraySegment
dst ArraySegment
in_header string
return System.Int64

Encrypt() public abstract method

public abstract Encrypt ( ArraySegment src, ArraySegment dst, string &out_header ) : System.Int64
src ArraySegment
dst ArraySegment
out_header string
return System.Int64

Encryptor() protected method

protected Encryptor ( EncryptionType encryption, string encryption_name, State initial_state ) : UnityEngine
encryption EncryptionType
encryption_name string
initial_state State
return UnityEngine

Handshake() public method

public Handshake ( string in_header, string &out_header ) : bool
in_header string
out_header string
return bool

SetState() protected method

protected SetState ( State state ) : void
state State
return void

Property Details

kBlockSize protected_oe static_oe property

protected static int kBlockSize
return int