C# Class Universal.Torrent.Client.Encryption.PeerBEncryption

Class to handle message stream encryption for receiving connections
Inheritance: EncryptedSocket
Mostra file Open project: haroldma/Universal.Torrent

Public Methods

Method Description
PeerBEncryption ( InfoHash possibleSkeYs, EncryptionTypes allowedEncryption ) : System

Protected Methods

Method Description
DoneReceiveY ( ) : void
DoneSynchronize ( ) : void

Private Methods

Method Description
GotInitialPayload ( IAsyncResult result ) : void
GotPadC ( IAsyncResult result ) : void
GotVerification ( IAsyncResult result ) : void
MatchSkey ( IReadOnlyList torrentHash ) : bool

Matches a torrent based on whether the HASH('req2', SKEY) xor HASH('req3', S) matches, where SKEY is the InfoHash of the torrent and sets the SKEY to the InfoHash of the matched torrent.

StepFour ( ) : void

Method Details

DoneReceiveY() protected method

protected DoneReceiveY ( ) : void
return void

DoneSynchronize() protected method

protected DoneSynchronize ( ) : void
return void

PeerBEncryption() public method

public PeerBEncryption ( InfoHash possibleSkeYs, EncryptionTypes allowedEncryption ) : System
possibleSkeYs InfoHash
allowedEncryption EncryptionTypes
return System