Member Function Documentation
Add
_sha256() adds multiple unsigned 32-bit integers. Since PHP doesn't support unsigned integers and since the possibility of overflow exists, care has to be taken. Math_BigInteger() could be used but this should be faster.
- Parameters:
-
String | $string | |
| optional | Integer $index |
- Returns:
- String
- See also:
- _sha256() private
Pure-PHP implementation of MD2
See RFC1319.
private
- Parameters:
-
Wrapper for MD5
private
- Parameters:
-
Not
private
- Parameters:
-
- See also:
- _sha256()
- Returns:
- Integer
_rightRotate |
( |
$ |
int, |
|
|
$ |
amt |
|
) |
| |
Right Rotate
private
- Parameters:
-
- See also:
- _sha256()
- Returns:
- Integer
_rightShift |
( |
$ |
int, |
|
|
$ |
amt |
|
) |
| |
Right Shift
private
- Parameters:
-
- See also:
- _sha256()
- Returns:
- Integer
Wrapper for SHA1
private
- Parameters:
-
Pure-PHP implementation of SHA384 and SHA512
private
- Parameters:
-
_string_shift |
( |
&$ |
string, |
|
|
$ |
index = 1 |
|
) |
| |
String Shift
Inspired by array_shift
- Parameters:
-
String | $string | |
| optional | Integer $index |
- Returns:
- String private
Default Constructor.
- Parameters:
-
- Returns:
- Crypt_Hash public
Returns the hash length (in bytes)
private
- Returns:
- Integer
Compute the HMAC.
public
- Parameters:
-
- Returns:
- String
Sets the hash function.
public
- Parameters:
-
Sets the key for HMACs
Keys can be of any length.
public
- Parameters:
-
The documentation for this class was generated from the following file: