[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Binary Finite Fields Utilizes the factory design pattern
Author: | Jim Wigginton <[email protected]> |
Copyright: | 2017 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
File Size: | 198 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
BinaryField:: (7 methods):
__construct()
newInteger()
randomInteger()
getLengthInBytes()
getLength()
base2ToBase256()
base256ToBase2()
Class: BinaryField - X-Ref
Binary Finite Fields__construct(...$indices) X-Ref |
Default constructor |
newInteger($num) X-Ref |
Returns an instance of a dynamically generated PrimeFieldInteger class param: string $num return: Integer |
randomInteger() X-Ref |
Returns an integer on the finite field between one and the prime modulo return: Integer |
getLengthInBytes() X-Ref |
Returns the length of the modulo in bytes return: int |
getLength() X-Ref |
Returns the length of the modulo in bits return: int |
base2ToBase256($x, $size = null) X-Ref |
Converts a base-2 string to a base-256 string param: string $x param: int|null $size return: string |
base256ToBase2($x) X-Ref |
Converts a base-256 string to a base-2 string param: string $x return: string |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |