C# Class Lidgren.Network.Authentication.Handshake

Handshake concentrates all SRPFunctions and SRPPacketData objects
Exibir arquivo Open project: SleeplessByte/lidgren-srp6a Class Usage Examples

Private Properties

Property Type Description
FinishHandshakeFromActive NetSRP.Verification
FinishHandshakeFromPassive System.Boolean
GenerateSRPRequest NetSRP.Request
Handshake System
Handshake System
HandshakeFromActive NetSRP.Response
HandshakeFromPassive NetSRP.Verification
KeyFromRequest void
KeyFromResponse NetSRP.Verification
Lookup Lidgren.Network.NetBigInteger
MarkHandshakeAsSucceeded void
ResponseFromRequest NetSRP.Response
VerificationOfActiveParty NetSRP.Verification
VerificationOfPassiveParty System.Boolean
WriteSRPRequest Lidgren.Network.NetOutgoingMessage
WriteSRPResponse Lidgren.Network.NetOutgoingMessage
WriteSRPVerification Lidgren.Network.NetOutgoingMessage

Public Methods

Method Description
CreateEncryption ( ) : Lidgren.Network.NetXtea

Create XTEA symmetrical encryption object from sessionValue

Handshake ( String username, Byte key ) : System

Creates a completed handshake

PasswordVerifier ( String username, String password, Int32 keysize, Byte &salt ) : NetBigInteger

Generates Salt and Verifier for username and password

Private Methods

Method Description
FinishHandshakeFromActive ( NetIncomingMessage msg ) : NetSRP.Verification

Finishes the handshake by processing the verification data received

FinishHandshakeFromPassive ( NetIncomingMessage msg ) : System.Boolean

Finishes the handshake by processing the verification data received

GenerateSRPRequest ( String username, String password, Byte otherdata ) : NetSRP.Request

Initiates the SRPP Request

Handshake ( System.Boolean active, Int32 keysize ) : System

Creates a new handshake

Handshake ( System.Boolean active, Int32 keySize, ILogonManager logonManager ) : System

Creates a new Handshake

HandshakeFromActive ( NetIncomingMessage msg ) : NetSRP.Response

Processes a handshake that was not initated locally

HandshakeFromPassive ( NetIncomingMessage msg ) : NetSRP.Verification

Processes a handshake response (initiated locally)

KeyFromRequest ( NetBigInteger A, NetBigInteger v ) : void

Generates key from request

KeyFromResponse ( NetSRP response ) : NetSRP.Verification

Generates Session key from response

Lookup ( NetSRP request, Byte &salt ) : NetBigInteger

Returns Verifier and Salt for request

MarkHandshakeAsSucceeded ( ) : void

Sets handshake to done

ResponseFromRequest ( NetSRP request ) : NetSRP.Response

Create a response on received request.

VerificationOfActiveParty ( NetSRP verification ) : NetSRP.Verification

Actually verifies received verification data (initiated remotely) + generates response

VerificationOfPassiveParty ( NetSRP verification ) : System.Boolean

Actually verifies received verification data (initiated locally)

WriteSRPRequest ( NetOutgoingMessage om ) : NetOutgoingMessage

Writes the SRP Request to an OtugoingMessage

WriteSRPResponse ( NetOutgoingMessage om ) : NetOutgoingMessage

Writes the SRP Response to an OtugoingMessage

WriteSRPVerification ( NetOutgoingMessage om ) : NetOutgoingMessage

Writes verification data to message

Method Details

CreateEncryption() public method

Create XTEA symmetrical encryption object from sessionValue
public CreateEncryption ( ) : Lidgren.Network.NetXtea
return Lidgren.Network.NetXtea

Handshake() public method

Creates a completed handshake
public Handshake ( String username, Byte key ) : System
username String
key Byte
return System

PasswordVerifier() public static method

Generates Salt and Verifier for username and password
public static PasswordVerifier ( String username, String password, Int32 keysize, Byte &salt ) : NetBigInteger
username String
password String
keysize System.Int32
salt Byte
return Lidgren.Network.NetBigInteger