|
|
@@ -324,7 +324,7 @@ class Zend_Crypt_DiffieHellman
|
|
|
public function getPrivateKey($type = self::NUMBER)
|
|
|
{
|
|
|
if (!$this->hasPrivateKey()) {
|
|
|
- $this->setPrivateKey($this->_generatePrivateKey());
|
|
|
+ $this->setPrivateKey($this->_generatePrivateKey(), self::BINARY);
|
|
|
}
|
|
|
if ($type == self::BINARY) {
|
|
|
return $this->_math->toBinary($this->_privateKey);
|
|
|
@@ -377,4 +377,4 @@ class Zend_Crypt_DiffieHellman
|
|
|
return $rand;
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|