Skip to content

Commit

Permalink
Update to match latest cryptal API
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Jul 29, 2017
1 parent f328fd3 commit e485988
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace fpoirotte\Cryptal\Plugins\Openssl;

use fpoirotte\Cryptal\Implementers\PluginInterface;
use fpoirotte\Cryptal\Implementers\HashInterface;
use fpoirotte\Cryptal\Implementers\AbstractHash;
use fpoirotte\Cryptal\RegistryWrapper;
use fpoirotte\Cryptal\HashEnum;
use fpoirotte\Cryptal\ImplementationTypeEnum;

class Hash extends HashInterface implements PluginInterface
class Hash extends AbstractHash implements PluginInterface
{
private $data;
protected $method;
Expand Down Expand Up @@ -45,7 +45,7 @@ protected function internalUpdate($data)
$this->data .= $data;
}

protected function internalFinish()
protected function internalFinalize()
{
return openssl_digest($this->data, $this->method, true);
}
Expand Down

0 comments on commit e485988

Please sign in to comment.