Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'crypt-error' of http://github.com/mikaelkael/zf2 into m…
Browse files Browse the repository at this point in the history
…erges/mikaelkael-crypt-error
  • Loading branch information
weierophinney committed Nov 2, 2010
3 parents acc6091 + 5337eeb + 56c1b58 commit c608ff3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Math.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* @namespace
*/
namespace Zend\Crypt\Math;
namespace Zend\Crypt;

/**
* @uses Zend\Crypt\Math\BigInteger
Expand Down Expand Up @@ -70,7 +70,7 @@ public function rand($minimum, $maximum)
* @param string $long
* @return string
*/
public function btwoc($long)
public function btwoc($long)
{
if (ord($long[0]) > 127) {
return "\x00" . $long;
Expand All @@ -84,7 +84,7 @@ public function btwoc($long)
* @param string $binary
* @return string
*/
public function fromBinary($binary)
public function fromBinary($binary)
{
return $this->_math->binaryToInteger($binary);
}
Expand Down
2 changes: 1 addition & 1 deletion test/DiffieHellmanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function testDiffieWithBinaryFormsAndLargeIntegers_OpensslTest()

public function testGenerateKeysWithUnsetPrivateKey()
{
$dh = new Zend_Crypt_DiffieHellman(563, 5);
$dh = new DiffieHellman(563, 5);
$dh->generateKeys();
$privateKey = $dh->getPrivateKey();
$this->assertNotNull($privateKey);
Expand Down

0 comments on commit c608ff3

Please sign in to comment.