append($bytes, ASN1DER::encodeType(ASN1_TAG_NULL)); $this->append($bytes, 0x0); return $bytes; } /** * Decodes an ASN1Null object. * * For ASN1Null the byte stream must be empty (no V bytes, just TL) * * @throws GTException * @param array $bytes null or empty array * @return void */ public function decodeDER($bytes) { if (!empty($bytes)) { throw new GTException("ASN1Null TLV should not contain any V bytes"); } } } ?>