Lines Matching refs:bytes
71 $bytes = array();
73 $this->append($bytes, ASN1DER::encodeType(ASN1_TAG_BOOLEAN));
74 $this->append($bytes, ASN1DER::encodeLength(1));
77 $this->append($bytes, 0xFF);
79 $this->append($bytes, 0x0);
82 return $bytes;
89 * @param array $bytes V bytes from the encoding of ASN1Boolean TLV
92 public function decodeDER($bytes) { argument
94 if (count($bytes) != 1) {
95 throw new GTException("Invalid DER length for ASN1Boolean: " . count($bytes));
98 $byte = $this->readByte($bytes);