Skip to content

Commit c6d3595

Browse files
author
tailor
committed
[project @ Added documentation to HMACSHA1.]
1 parent 42349a0 commit c6d3595

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Net/OpenID/HMACSHA1.php

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
<?php
22

3+
/**
4+
* This is the HMACSHA1 implementation for the OpenID library.
5+
*
6+
* PHP versions 4 and 5
7+
*
8+
* LICENSE: See the COPYING file included in this distribution.
9+
*
10+
* @package OpenID
11+
* @author JanRain, Inc. <[email protected]>
12+
* @copyright 2005 Janrain, Inc.
13+
* @license http://www.gnu.org/copyleft/lesser.html LGPL
14+
*/
15+
16+
/**
17+
* SHA1_BLOCKSIZE is this module's SHA1 blocksize used by the fallback
18+
* implementation.
19+
*/
320
define('SHA1_BLOCKSIZE', 64);
421

522
if (FALSE && function_exists('mhash')) {
@@ -24,6 +41,11 @@ function sha1_raw($text) {
2441
}
2542
}
2643

44+
/**
45+
* Compute an HMAC/SHA1 hash.
46+
*
47+
* @ignore
48+
*/
2749
function Net_OpenID_HMACSHA1($key, $text) {
2850
if (strlen($key) > SHA1_BLOCKSIZE) {
2951
$key = sha1_raw($key, TRUE);

0 commit comments

Comments
 (0)