Skip to content

Commit 04ad820

Browse files
author
tailor
committed
[project @ Added documentation to CryptUtil.]
1 parent 95b940a commit 04ad820

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

Net/OpenID/CryptUtil.php

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
<?php
22

3+
/**
4+
* CryptUtil: A suite of wrapper utility functions for the OpenID
5+
* library.
6+
*
7+
* PHP versions 4 and 5
8+
*
9+
* LICENSE: See the COPYING file included in this distribution.
10+
*
11+
* @package OpenID
12+
* @author JanRain, Inc. <[email protected]>
13+
* @copyright 2005 Janrain, Inc.
14+
* @license http://www.gnu.org/copyleft/lesser.html LGPL
15+
*/
16+
17+
/**
18+
* Require the HMAC/SHA-1 implementation for creating such hashes.
19+
*/
20+
require('HMACSHA1.php');
21+
322
if (!defined('Net_OpenID_RAND_SOURCE')) {
423
/**
524
* The filename for a source of random bytes. Define this yourself
@@ -8,12 +27,15 @@
827
define('Net_OpenID_RAND_SOURCE', '/dev/urandom');
928
}
1029

11-
require('HMACSHA1.php');
12-
30+
/**
31+
* An array of duplicate information for the randrange function.
32+
*/
1333
$Net_OpenID_CryptUtil_duplicate_cache = array();
1434

1535
/**
16-
* Cryptographic utility functions
36+
* Net_OpenID_CryptUtil houses static utility functions.
37+
*
38+
* @package OpenID
1739
*/
1840
class Net_OpenID_CryptUtil {
1941
/**

0 commit comments

Comments
 (0)