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

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Key/Derivation/SaltedS2k.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SaltedS2k
public static function calc($hash, $password, $salt, $bytes)
{
if (!in_array($hash, array_keys(static::$supportedMhashAlgos))) {
throw new Exception\InvalidArgumentException("The hash algorihtm $hash is not supported by " . __CLASS__);
throw new Exception\InvalidArgumentException("The hash algorithm $hash is not supported by " . __CLASS__);
}
if (strlen($salt)<8) {
throw new Exception\InvalidArgumentException('The salt size must be at least of 8 bytes');
Expand Down
2 changes: 1 addition & 1 deletion test/Key/Derivation/SaltedS2kTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testCalcWithWrongHash()
return;
}
$this->setExpectedException('Zend\Crypt\Key\Derivation\Exception\InvalidArgumentException',
'The hash algorihtm wrong is not supported by Zend\Crypt\Key\Derivation\SaltedS2k');
'The hash algorithm wrong is not supported by Zend\Crypt\Key\Derivation\SaltedS2k');
$password = SaltedS2k::calc('wrong', 'test', $this->salt, 32);
}

Expand Down

0 comments on commit 6c7e92b

Please sign in to comment.