Zend\Crypt\PublicKey\DiffieHellman::__construct
Constructor; if set construct the object using the parameter array to set values for Prime, Generator and Private.
If a Private Key is not set, one will be generated at random.
Signature
public function __construct(string
$prime,
[string
$generator = null,
[string
$privateKey = null,
[string
$privateKeyFormat = self::FORMAT_NUMBER]]] )
Parameters
$prime
— string$generator
— string$privateKey
— string$privateKeyFormat
— string