C# Class Fun.Encryptor

Afficher le fichier Open project: iFunFactory/demo-kgc-2015 Class Usage Examples

Protected Properties

Свойство Type Description
kBlockSize int

Méthodes publiques

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

Méthodes protégées

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

protected static CircularLeftShift ( UInt32 value, int shift_len ) : UInt32
value System.UInt32
shift_len int
Résultat System.UInt32

CircularLeftShift() protected static méthode

protected static CircularLeftShift ( byte value, int shift_len ) : byte
value byte
shift_len int
Résultat byte

Create() public static méthode

public static Create ( EncryptionType type ) : Encryptor
type EncryptionType
Résultat Encryptor

Create() public static méthode

public static Create ( string name ) : Encryptor
name string
Résultat Encryptor

Decrypt() public abstract méthode

public abstract Decrypt ( ArraySegment src, ArraySegment dst, string in_header ) : System.Int64
src ArraySegment
dst ArraySegment
in_header string
Résultat System.Int64

Encrypt() public abstract méthode

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

Encryptor() protected méthode

protected Encryptor ( EncryptionType encryption, string encryption_name, State initial_state ) : UnityEngine
encryption EncryptionType
encryption_name string
initial_state State
Résultat UnityEngine

Handshake() public méthode

public Handshake ( string in_header, string &out_header ) : bool
in_header string
out_header string
Résultat bool

SetState() protected méthode

protected SetState ( State state ) : void
state State
Résultat void

Property Details

kBlockSize protected_oe static_oe property

protected static int kBlockSize
Résultat int