C# Class socks5.Encryption.SocksEncryption

Exibir arquivo Open project: ThrDev/Socks5 Class Usage Examples

Public Properties

Property Type Description
key System.Security.Cryptography.RSACryptoServiceProvider

Public Methods

Method Description
GenerateKeys ( ) : void
GetAuthType ( ) : AuthTypes
GetPublicKey ( ) : byte[]
ProcessInputData ( byte buffer, int offset, int count ) : byte[]
ProcessOutputData ( byte buffer, int offset, int count ) : byte[]
SetEncKey ( byte key ) : void
SetKey ( byte key, int offset, int len ) : void
SetType ( AuthTypes k ) : void
ShareEncryptionKey ( ) : byte[]
SocksEncryption ( ) : System

Method Details

GenerateKeys() public method

public GenerateKeys ( ) : void
return void

GetAuthType() public method

public GetAuthType ( ) : AuthTypes
return AuthTypes

GetPublicKey() public method

public GetPublicKey ( ) : byte[]
return byte[]

ProcessInputData() public method

public ProcessInputData ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
return byte[]

ProcessOutputData() public method

public ProcessOutputData ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
return byte[]

SetEncKey() public method

public SetEncKey ( byte key ) : void
key byte
return void

SetKey() public method

public SetKey ( byte key, int offset, int len ) : void
key byte
offset int
len int
return void

SetType() public method

public SetType ( AuthTypes k ) : void
k AuthTypes
return void

ShareEncryptionKey() public method

public ShareEncryptionKey ( ) : byte[]
return byte[]

SocksEncryption() public method

public SocksEncryption ( ) : System
return System

Property Details

key public_oe property

public RSACryptoServiceProvider,System.Security.Cryptography key
return System.Security.Cryptography.RSACryptoServiceProvider