Skip to content

Commit

Permalink
Use the new constants for SHA2
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Dec 31, 2017
1 parent 7c237a2 commit 2fc165e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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.

8 changes: 4 additions & 4 deletions src/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ protected static function checkSupport()
(string) HashEnum::HASH_MD5() => 'md5',
(string) HashEnum::HASH_RIPEMD160() => 'ripemd160',
(string) HashEnum::HASH_SHA1() => 'sha1',
(string) HashEnum::HASH_SHA224() => 'sha224',
(string) HashEnum::HASH_SHA256() => 'sha256',
(string) HashEnum::HASH_SHA384() => 'sha384',
(string) HashEnum::HASH_SHA512() => 'sha512',
(string) HashEnum::HASH_SHA2_224() => 'sha224',
(string) HashEnum::HASH_SHA2_256() => 'sha256',
(string) HashEnum::HASH_SHA2_384() => 'sha384',
(string) HashEnum::HASH_SHA2_512() => 'sha512',
);

static::$supportedAlgos = array_intersect($supported, openssl_get_md_methods(false));
Expand Down

0 comments on commit 2fc165e

Please sign in to comment.