Liste de tous les membres
Fonctions membres publiques
Documentation des fonctions membres
Auth_OpenID_MathLibrary::base64ToLong |
( |
$ |
str | ) |
|
Auth_OpenID_MathLibrary::binaryToLong |
( |
$ |
str | ) |
|
Given a binary string, returns the binary string converted to a long number.
- Paramètres:
-
string | $binary | The binary version of a long number, probably as a result of calling longToBinary |
- Renvoie:
- integer $long The long number equivalent of the binary string $str
Références $n.
Auth_OpenID_MathLibrary::longToBase64 |
( |
$ |
str | ) |
|
Auth_OpenID_MathLibrary::longToBinary |
( |
$ |
long | ) |
|
Given a long integer, returns the number converted to a binary string. This function accepts long integer values of arbitrary magnitude and uses the local large-number math library when available.
- Paramètres:
-
integer | $long | The long number (can be a normal PHP integer or a number created by one of the available long number libraries) |
- Renvoie:
- string $binary The binary version of $long
Auth_OpenID_MathLibrary::rand |
( |
$ |
stop | ) |
|
Returns a random number in the specified range. This function accepts $start, $stop, and $step values of arbitrary magnitude and will utilize the local large-number math library when available.
- Paramètres:
-
integer | $start | The start of the range, or the minimum random number to return |
integer | $stop | The end of the range, or the maximum random number to return |
integer | $step | The step size, such that $result - ($step * N) = $start for some N |
- Renvoie:
- integer $result The resulting randomly-generated number
Références $n, Auth_OpenID::bytes(), et Auth_OpenID_CryptUtil::getBytes().
La documentation de cette classe a été générée à partir du fichier suivant :