Lines Matching refs:der
555 $der = \chr($tag_header | $type);
558 $der .= \chr(\strlen($value));
560 return $der . $value;
566 * @param string $der binary signature in DER format
571 private static function signatureFromDER(string $der, int $keySize): string argument
574 list($offset, $_) = self::readDER($der);
575 list($offset, $r) = self::readDER($der, $offset);
576 list($offset, $s) = self::readDER($der, $offset);
593 * @param string $der the binary data in DER format
599 private static function readDER(string $der, int $offset = 0): array argument
602 $size = \strlen($der);
603 $constructed = (\ord($der[$pos]) >> 5) & 0x01;
604 $type = \ord($der[$pos++]) & 0x1f;
607 $len = \ord($der[$pos++]);
612 $len = ($len << 8) | \ord($der[$pos++]);
619 $data = \substr($der, $pos, $len - 1);
622 $data = \substr($der, $pos, $len);