芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/status.pulsehost.co.uk/vendor/spomky-labs/pki-framework/src/ASN1/DERData.php
identifier = Identifier::fromDER($data, $this->contentOffset); // check that length encoding is valid Length::expectFromDER($data, $this->contentOffset); $this->der = $data; parent::__construct($this->identifier->intTag()); } public static function create(string $data): self { return new self($data); } public function typeClass(): int { return $this->identifier->typeClass(); } public function isConstructed(): bool { return $this->identifier->isConstructed(); } public function toDER(): string { return $this->der; } protected function encodedAsDER(): string { // if there's no content payload if (mb_strlen($this->der, '8bit') === $this->contentOffset) { return ''; } return mb_substr($this->der, $this->contentOffset, null, '8bit'); } protected static function decodeFromDER(Identifier $identifier, string $data, int &$offset): ElementBase { throw new BadMethodCallException(__METHOD__ . ' must be implemented in derived class.'); } }