Private Method Details |
_encipherLong |
private void _encipherLong(integer $y, integer $z, array &$w, array &$k)
|
|
|
Parameter |
|
integer |
$y |
|
|
32 bits of data. |
|
|
integer |
$z |
|
|
32 bits of data. |
|
|
array |
&$w |
|
|
Placeholder for enciphered 64 bits (in w[0] and w[1]). |
|
|
array |
&$k |
|
|
Key 128 bits (in k[0]-k[3]). |
|
Returns |
void |
See Also |
$n_iter, _add(), _rshift(), _decipherLong() |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_decipherLong |
private void _decipherLong(integer $y, integer $z, array &$w, array &$k)
|
|
|
Parameter |
|
integer |
$y |
|
|
32 bits of enciphered data. |
|
|
integer |
$z |
|
|
32 bits of enciphered data. |
|
|
array |
&$w |
|
|
Placeholder for deciphered 64 bits (in w[0] and w[1]). |
|
|
array |
&$k |
|
|
Key 128 bits (in k[0]-k[3]). |
|
Returns |
void |
See Also |
$n_iter, _add(), _rshift(), _decipherLong() |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_resize |
private integer _resize(string &$data, integer $size, [ boolean $nonull ])
|
|
|
Parameter |
|
string |
&$data |
|
|
Data string to resize to specified size. |
|
|
integer |
$size |
|
|
Size in bytes to align data to. |
|
|
boolean |
$nonull |
= >>false<< |
|
Set to true if padded bytes should not be zero. |
|
Returns |
integer Length of supplied data string. |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_hex2bin |
private string _hex2bin(string $str)
|
|
|
Parameter |
|
string |
$str |
|
|
Hexadecimal string to convert to binary string. |
|
Returns |
string Binary string. |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_str2long |
private integer _str2long(integer $start, string &$data, array &$data_long)
|
|
|
Parameter |
|
integer |
$start |
|
|
Index into $data_long for output. |
|
|
string |
&$data |
|
|
Input string. |
|
|
array |
&$data_long |
|
|
Output array of long. |
|
Returns |
integer Index from which to optionally continue. |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_long2str |
private string _long2str(long $l)
|
|
|
Parameter |
|
long |
$l |
|
|
Long to convert to character string. |
|
Returns |
string Character string. |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_rshift |
private void _rshift( $integer, $n)
|
|
|
Parameter |
|
|
$integer |
|
|
Warning: documentation is missing. |
|
|
|
$n |
|
|
Warning: documentation is missing. |
|
Returns |
void |
Since |
2004/Sep/06 |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|
_add |
private void _add( $i1, $i2)
|
|
|
Parameter |
|
|
$i1 |
|
|
Warning: documentation is missing. |
|
|
|
$i2 |
|
|
Warning: documentation is missing. |
|
Returns |
void |
Since |
2004/Sep/06 |
Author(s) |
Jeroen Derks <jeroen@derks.it> |
|