Lines Matching refs:bytes
77 * @param array $bytes byte array containing encoded publications file
79 public function __construct(array $bytes) { argument
81 if (empty($bytes)) {
85 $this->content = $bytes;
177 $bytes = GTUtil::read($file);
179 return new GTPublicationsFile($bytes);
387 $bytes = array_slice($this->content, $this->signatureBlockBegin,
394 $contentInfo->decode(ASN1DER::decode($bytes));
517 $bytes = GTBase32::decode($publicationString);
519 $result = GTUtil::readLong($bytes, 0);
535 … $bytes = array_slice($this->content, $offset, self::TIME_SIZE + 1 + $hashAlgorithm->getLength());
536 $bytes = GTUtil::addCrc32($bytes);
538 return GTBase32::encodeWithDashes($bytes);
555 $bytes = array_slice($this->content, $offset, $hashLength);
557 return GTDataHash::getInstance($bytes);