diff options
author | tailor <cygnus@janrain.com> | 2007-02-05 21:12:58 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-02-05 21:12:58 +0000 |
commit | 7760fc9051c6be78f74620383253bd4108d525f8 (patch) | |
tree | ddd034fb0ce8eef61f273bec79e652ad585d9a5f /Auth | |
parent | c121b2730c15bdc3f476c7b6625cf4dd350d0112 (diff) | |
download | php-openid-7760fc9051c6be78f74620383253bd4108d525f8.zip php-openid-7760fc9051c6be78f74620383253bd4108d525f8.tar.gz php-openid-7760fc9051c6be78f74620383253bd4108d525f8.tar.bz2 |
[project @ Fix sha256 hash output]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/HMACSHA1.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/OpenID/HMACSHA1.php b/Auth/OpenID/HMACSHA1.php index 88c5669..928525b 100644 --- a/Auth/OpenID/HMACSHA1.php +++ b/Auth/OpenID/HMACSHA1.php @@ -71,8 +71,8 @@ if (function_exists('hash') && (in_array('sha256', hash_algos()))) { function Auth_OpenID_SHA256($text) { - // PHP 5 case: 'hash' available and 'sha1' algo supported. - return hash('sha256', $text); + // PHP 5 case: 'hash' available and 'sha256' algo supported. + return hash('sha256', $text, true); } define('Auth_OpenID_SHA256_SUPPORTED', true); } else { |