pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\KEX\DHGroupSHA1Interface Interface Reference
+ Inheritance diagram for fpoirotte\Pssht\KEX\DHGroupSHA1Interface:

Static Public Member Functions

static getGenerator ()
 
static getPrime ()
 

Detailed Description

Abstract class for Diffie-Hellman key exchange with SHA-1 as HASH; intended for groups defined in RFC 4253.

Definition at line 19 of file DHGroupSHA1Interface.php.

Member Function Documentation

static fpoirotte\Pssht\KEX\DHGroupSHA1Interface::getGenerator ( )
static

Get the generator to use for key exchange.

Return values
intKey exchange generator.

Implemented in fpoirotte\Pssht\KEX\DHGroup14SHA1, and fpoirotte\Pssht\KEX\DHGroup1SHA1.

static fpoirotte\Pssht\KEX\DHGroupSHA1Interface::getPrime ( )
static

Get the prime number to use for key exchange.

Return values
resourceGMP resource with the prime number to use for key exchange.

Implemented in fpoirotte\Pssht\KEX\DHGroup14SHA1, and fpoirotte\Pssht\KEX\DHGroup1SHA1.


The documentation for this interface was generated from the following file: