File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
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
+ */
3
20
define ('SHA1_BLOCKSIZE ' , 64 );
4
21
5
22
if (FALSE && function_exists ('mhash ' )) {
@@ -24,6 +41,11 @@ function sha1_raw($text) {
24
41
}
25
42
}
26
43
44
+ /**
45
+ * Compute an HMAC/SHA1 hash.
46
+ *
47
+ * @ignore
48
+ */
27
49
function Net_OpenID_HMACSHA1 ($ key , $ text ) {
28
50
if (strlen ($ key ) > SHA1_BLOCKSIZE ) {
29
51
$ key = sha1_raw ($ key , TRUE );
You can’t perform that action at this time.
0 commit comments