Lines Matching refs:type
126 * @param string $type
129 abstract public function toString($type, array $options = []); argument
250 * @param string $type
255 public static function loadFormat($type, $key, $password = false) argument
260 $format = strtolower($type);
284 * @param string $type
288 public static function loadPrivateKeyFormat($type, $key, $password = false) argument
290 $key = self::loadFormat($type, $key, $password);
302 * @param string $type
305 public static function loadPublicKeyFormat($type, $key) argument
307 $key = self::loadFormat($type, $key);
319 * @param string $type
322 public static function loadParametersFormat($type, $key) argument
324 $key = self::loadFormat($type, $key);
336 * @param string $type
340 protected static function validatePlugin($format, $type, $method = null) argument
342 $type = strtolower($type);
343 if (!isset(self::$plugins[static::ALGORITHM][$format][$type])) {
344 throw new UnsupportedFormatException("$type is not a supported format");
346 $type = self::$plugins[static::ALGORITHM][$format][$type];
347 if (isset($method) && !method_exists($type, $method)) {
348 throw new UnsupportedFormatException("$type does not implement $method");
351 return $type;
372 … $type = 'phpseclib3\Crypt\\' . static::ALGORITHM . '\\Formats\\' . $format . '\\' . $name;
373 $reflect = new \ReflectionClass($type);
377 self::$plugins[static::ALGORITHM][$format][strtolower($name)] = $type;
379 self::$invisiblePlugins[static::ALGORITHM][] = $type;