Lines Matching refs:bytes
72 $bytes = $this->value->toBytes();
76 while (count($bytes) > 0) {
78 if ($bytes[0] == 0x0) {
79 array_shift($bytes);
87 if ($bytes[0] >> 7 == 1) {
88 array_unshift($bytes, 0xFF);
91 $bytes[0] = ($bytes[0] | 0x80) & 0xFF;
96 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes)));
97 $this->prepend($bytes, ASN1DER::encodeType(ASN1_TAG_INTEGER));
99 return $bytes;
105 * @param array $bytes V bytes from the encoding of ASN1Integer TLV.
108 public function decodeDER($bytes) { argument
110 $this->value = new GTBigInteger($bytes);