Lines Matching refs:bytes
47 * @param array $bytes hash chain bytes
50 private function __construct(array $bytes, $checkLevel) { argument
52 if (empty($bytes)) {
56 if (!is_array($bytes)) {
62 for ($i = 0; $i < count($bytes);) {
64 $algorithm = GTHashAlgorithm::getByGtid($bytes[$i++]);
66 if ($i >= count($bytes)) {
70 $direction = $bytes[$i++];
72 if ($i >= count($bytes)) {
80 $siblingAlgorithm = GTHashAlgorithm::getByGtid($bytes[$i++]);
81 …$siblingHash = new GTDataHash($siblingAlgorithm, array_slice($bytes, $i, $siblingAlgorithm->getLen…
85 if ($i >= count($bytes)) {
88 $level = $bytes[$i++] & 0xFF;
104 * @param array $bytes bytes to compute chain output for
107 public function computeOutput(array $bytes) { argument
109 if (empty($bytes)) {
113 if (!is_array($bytes)) {
117 $output = $bytes;
387 * @param array $bytes byte array containing the hash chain bytes
390 public static function getLocationInstance(array $bytes) { argument
391 return new GTHashChain($bytes, true);
401 * @param array $bytes byte array containing the hash chain bytes
404 public static function getHistoryInstance(array $bytes) { argument
405 return new GTHashChain($bytes, false);