C# 클래스 Lidgren.Network.Authentication.Handshake

Handshake concentrates all SRPFunctions and SRPPacketData objects
파일 보기 프로젝트 열기: SleeplessByte/lidgren-srp6a 1 사용 예제들

Private Properties

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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateEncryption() 공개 메소드

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

Handshake() 공개 메소드

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

PasswordVerifier() 공개 정적인 메소드

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
리턴 Lidgren.Network.NetBigInteger