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

Class to handle message stream encryption for receiving connections
Inheritance: EncryptedSocket
Afficher le fichier Open project: haroldma/Universal.Torrent

Méthodes publiques

Méthode Description
PeerBEncryption ( InfoHash possibleSkeYs, EncryptionTypes allowedEncryption ) : System

Méthodes protégées

Méthode Description
DoneReceiveY ( ) : void
DoneSynchronize ( ) : void

Private Methods

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

protected DoneReceiveY ( ) : void
Résultat void

DoneSynchronize() protected méthode

protected DoneSynchronize ( ) : void
Résultat void

PeerBEncryption() public méthode

public PeerBEncryption ( InfoHash possibleSkeYs, EncryptionTypes allowedEncryption ) : System
possibleSkeYs InfoHash
allowedEncryption EncryptionTypes
Résultat System