Skip to content

Class Lidgren::Network::NetSRP

ClassList > Lidgren > Network > NetSRP

Helper methods for implementing SRP authentication.

Public Static Functions

Type Name
byte[] ComputeClientEphemeral (byte[] clientPrivateEphemeral)
Compute client public ephemeral value (A)
byte[] ComputeClientSessionValue (byte[] serverPublicEphemeral, byte[] xdata, byte[] udata, byte[] clientPrivateEphemeral)
Computes the client session value.
byte[] ComputePrivateKey (string username, string password, byte[] salt)
Computer private key (x)
byte[] ComputeServerEphemeral (byte[] serverPrivateEphemeral, byte[] verifier)
Compute server ephemeral value (B)
byte[] ComputeServerSessionValue (byte[] clientPublicEphemeral, byte[] verifier, byte[] udata, byte[] serverPrivateEphemeral)
Computes the server session value.
byte[] ComputeServerVerifier (byte[] privateKey)
Creates a verifier that the server can later use to authenticate users later on (v)
byte[] ComputeU (byte[] clientPublicEphemeral, byte[] serverPublicEphemeral)
Compute intermediate value (u)
NetXtea CreateEncryption (NetPeer peer, byte[] sessionValue)
Create XTEA symmetrical encryption object from sessionValue.
byte[] CreateRandomEphemeral ()
Create 32 bytes of random ephemeral value.
byte[] CreateRandomSalt ()
Create 16 bytes of random salt.

Public Static Functions Documentation

function ComputeClientEphemeral

static inline byte[] Lidgren::Network::NetSRP::ComputeClientEphemeral (
    byte[] clientPrivateEphemeral
) 

function ComputeClientSessionValue

static inline byte[] Lidgren::Network::NetSRP::ComputeClientSessionValue (
    byte[] serverPublicEphemeral,
    byte[] xdata,
    byte[] udata,
    byte[] clientPrivateEphemeral
) 

function ComputePrivateKey

static inline byte[] Lidgren::Network::NetSRP::ComputePrivateKey (
    string username,
    string password,
    byte[] salt
) 

function ComputeServerEphemeral

static inline byte[] Lidgren::Network::NetSRP::ComputeServerEphemeral (
    byte[] serverPrivateEphemeral,
    byte[] verifier
) 

function ComputeServerSessionValue

static inline byte[] Lidgren::Network::NetSRP::ComputeServerSessionValue (
    byte[] clientPublicEphemeral,
    byte[] verifier,
    byte[] udata,
    byte[] serverPrivateEphemeral
) 

function ComputeServerVerifier

static inline byte[] Lidgren::Network::NetSRP::ComputeServerVerifier (
    byte[] privateKey
) 

function ComputeU

static inline byte[] Lidgren::Network::NetSRP::ComputeU (
    byte[] clientPublicEphemeral,
    byte[] serverPublicEphemeral
) 

function CreateEncryption

static inline NetXtea Lidgren::Network::NetSRP::CreateEncryption (
    NetPeer peer,
    byte[] sessionValue
) 

function CreateRandomEphemeral

static inline byte[] Lidgren::Network::NetSRP::CreateRandomEphemeral () 

function CreateRandomSalt

static inline byte[] Lidgren::Network::NetSRP::CreateRandomSalt () 

The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/Lidgren.Network/NetSRP.cs