mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 11:52:48 +00:00
mv Keys/ and Signature/ to Formats/*
This commit is contained in:
parent
d7abfaadbc
commit
7012e72488
@ -224,12 +224,12 @@ abstract class AsymmetricKey
|
|||||||
{
|
{
|
||||||
if (!isset(self::$plugins[static::ALGORITHM][$format])) {
|
if (!isset(self::$plugins[static::ALGORITHM][$format])) {
|
||||||
self::$plugins[static::ALGORITHM][$format] = [];
|
self::$plugins[static::ALGORITHM][$format] = [];
|
||||||
foreach (new \DirectoryIterator(__DIR__ . '/../' . static::ALGORITHM . '/' . $format . '/') as $file) {
|
foreach (new \DirectoryIterator(__DIR__ . '/../' . static::ALGORITHM . '/Formats/' . $format . '/') as $file) {
|
||||||
if ($file->getExtension() != 'php') {
|
if ($file->getExtension() != 'php') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$name = $file->getBasename('.php');
|
$name = $file->getBasename('.php');
|
||||||
$type = 'phpseclib\Crypt\\' . static::ALGORITHM . '\\' . $format . '\\' . $name;
|
$type = 'phpseclib\Crypt\\' . static::ALGORITHM . '\\Formats\\' . $format . '\\' . $name;
|
||||||
$reflect = new \ReflectionClass($type);
|
$reflect = new \ReflectionClass($type);
|
||||||
if ($reflect->isTrait()) {
|
if ($reflect->isTrait()) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\Common\Keys;
|
namespace phpseclib\Crypt\Common\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
@ -13,7 +13,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\Common\Keys;
|
namespace phpseclib\Crypt\Common\Formats\Keys;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PKCS1 Formatted Key Handler
|
* PKCS1 Formatted Key Handler
|
@ -13,7 +13,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\Common\Keys;
|
namespace phpseclib\Crypt\Common\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use ParagonIE\ConstantTime\Hex;
|
use ParagonIE\ConstantTime\Hex;
|
@ -25,7 +25,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\Common\Keys;
|
namespace phpseclib\Crypt\Common\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Crypt\DES;
|
use phpseclib\Crypt\DES;
|
@ -13,7 +13,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\Common\Keys;
|
namespace phpseclib\Crypt\Common\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use ParagonIE\ConstantTime\Hex;
|
use ParagonIE\ConstantTime\Hex;
|
@ -15,7 +15,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\Common\Signature;
|
namespace phpseclib\Crypt\Common\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
|
|
@ -15,12 +15,12 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Keys;
|
namespace phpseclib\Crypt\DSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\OpenSSH as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\OpenSSH as Progenitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OpenSSH Formatted DSA Key Handler
|
* OpenSSH Formatted DSA Key Handler
|
@ -27,10 +27,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Keys;
|
namespace phpseclib\Crypt\DSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS1 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS1 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\File\ASN1\Maps;
|
use phpseclib\File\ASN1\Maps;
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
@ -23,10 +23,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Keys;
|
namespace phpseclib\Crypt\DSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS8 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS8 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\File\ASN1\Maps;
|
use phpseclib\File\ASN1\Maps;
|
||||||
|
|
@ -18,11 +18,11 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Keys;
|
namespace phpseclib\Crypt\DSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\PuTTY as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PuTTY as Progenitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PuTTY Formatted DSA Key Handler
|
* PuTTY Formatted DSA Key Handler
|
||||||
@ -39,7 +39,7 @@ abstract class PuTTY extends Progenitor
|
|||||||
* @var string
|
* @var string
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
const PUBLIC_HANDLER = 'phpseclib\Crypt\DSA\Keys\OpenSSH';
|
const PUBLIC_HANDLER = 'phpseclib\Crypt\DSA\Formats\Keys\OpenSSH';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Algorithm Identifier
|
* Algorithm Identifier
|
@ -15,7 +15,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Keys;
|
namespace phpseclib\Crypt\DSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
|
|
@ -19,7 +19,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Keys;
|
namespace phpseclib\Crypt\DSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
@ -16,7 +16,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Signature;
|
namespace phpseclib\Crypt\DSA\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\File\ASN1 as Encoder;
|
use phpseclib\File\ASN1 as Encoder;
|
@ -13,9 +13,9 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Signature;
|
namespace phpseclib\Crypt\DSA\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Crypt\Common\Signature\Raw as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Signature\Raw as Progenitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Raw DSA Signature Handler
|
* Raw DSA Signature Handler
|
@ -15,7 +15,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\DSA\Signature;
|
namespace phpseclib\Crypt\DSA\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
@ -14,7 +14,7 @@
|
|||||||
namespace phpseclib\Crypt\DSA;
|
namespace phpseclib\Crypt\DSA;
|
||||||
|
|
||||||
use phpseclib\Crypt\DSA;
|
use phpseclib\Crypt\DSA;
|
||||||
use phpseclib\Crypt\ECDSA\Signature\ASN1 as ASN1Signature;
|
use phpseclib\Crypt\ECDSA\Formats\Signature\ASN1 as ASN1Signature;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common;
|
use phpseclib\Crypt\Common;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
namespace phpseclib\Crypt\DSA;
|
namespace phpseclib\Crypt\DSA;
|
||||||
|
|
||||||
use phpseclib\Crypt\DSA;
|
use phpseclib\Crypt\DSA;
|
||||||
use phpseclib\Crypt\ECDSA\Signature\ASN1 as ASN1Signature;
|
use phpseclib\Crypt\ECDSA\Formats\Signature\ASN1 as ASN1Signature;
|
||||||
use phpseclib\Crypt\Common;
|
use phpseclib\Crypt\Common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,7 @@ use phpseclib\Crypt\ECDSA\Parameters;
|
|||||||
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
||||||
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
||||||
use phpseclib\Crypt\ECDSA\Curves\Ed448;
|
use phpseclib\Crypt\ECDSA\Curves\Ed448;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PKCS1;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PKCS1;
|
||||||
use phpseclib\File\ASN1\Maps\ECParameters;
|
use phpseclib\File\ASN1\Maps\ECParameters;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\Exception\UnsupportedCurveException;
|
use phpseclib\Exception\UnsupportedCurveException;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Hex;
|
use ParagonIE\ConstantTime\Hex;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
||||||
@ -362,7 +362,7 @@ trait Common
|
|||||||
['namedCurve' => $name] :
|
['namedCurve' => $name] :
|
||||||
ASN1::encodeDER(['namedCurve' => $name], Maps\ECParameters::MAP);
|
ASN1::encodeDER(['namedCurve' => $name], Maps\ECParameters::MAP);
|
||||||
}
|
}
|
||||||
foreach (new \DirectoryIterator(__DIR__ . '/../Curves/') as $file) {
|
foreach (new \DirectoryIterator(__DIR__ . '/../../Curves/') as $file) {
|
||||||
if ($file->getExtension() != 'php') {
|
if ($file->getExtension() != 'php') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
@ -15,12 +15,12 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\OpenSSH as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\OpenSSH as Progenitor;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
||||||
use phpseclib\Exception\UnsupportedCurveException;
|
use phpseclib\Exception\UnsupportedCurveException;
|
||||||
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
@ -25,10 +25,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\Common\FiniteField\Integer;
|
use phpseclib\Math\Common\FiniteField\Integer;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS1 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS1 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\File\ASN1\Maps;
|
use phpseclib\File\ASN1\Maps;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
@ -23,10 +23,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS8 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS8 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\File\ASN1\Maps;
|
use phpseclib\File\ASN1\Maps;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
@ -13,12 +13,12 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\PuTTY as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PuTTY as Progenitor;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\Base as BaseCurve;
|
||||||
use phpseclib\Math\Common\FiniteField\Integer;
|
use phpseclib\Math\Common\FiniteField\Integer;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
||||||
@ -40,7 +40,7 @@ abstract class PuTTY extends Progenitor
|
|||||||
* @var string
|
* @var string
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
const PUBLIC_HANDLER = 'phpseclib\Crypt\ECDSA\Keys\OpenSSH';
|
const PUBLIC_HANDLER = 'phpseclib\Crypt\ECDSA\Formats\Keys\OpenSSH';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supported Key Types
|
* Supported Key Types
|
@ -18,7 +18,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
@ -17,7 +17,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Keys;
|
namespace phpseclib\Crypt\ECDSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
||||||
use phpseclib\Math\Common\FiniteField\Integer;
|
use phpseclib\Math\Common\FiniteField\Integer;
|
@ -16,7 +16,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Signature;
|
namespace phpseclib\Crypt\ECDSA\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\File\ASN1 as Encoder;
|
use phpseclib\File\ASN1 as Encoder;
|
@ -13,9 +13,9 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Signature;
|
namespace phpseclib\Crypt\ECDSA\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Crypt\Common\Signature\Raw as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Signature\Raw as Progenitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Raw DSA Signature Handler
|
* Raw DSA Signature Handler
|
@ -15,7 +15,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\ECDSA\Signature;
|
namespace phpseclib\Crypt\ECDSA\Formats\Signature;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
@ -14,12 +14,12 @@
|
|||||||
namespace phpseclib\Crypt\ECDSA;
|
namespace phpseclib\Crypt\ECDSA;
|
||||||
|
|
||||||
use phpseclib\Crypt\ECDSA;
|
use phpseclib\Crypt\ECDSA;
|
||||||
use phpseclib\Crypt\ECDSA\Signature\ASN1 as ASN1Signature;
|
use phpseclib\Crypt\ECDSA\Formats\Signature\ASN1 as ASN1Signature;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
||||||
use phpseclib\Crypt\Hash;
|
use phpseclib\Crypt\Hash;
|
||||||
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PKCS8;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PKCS8;
|
||||||
use phpseclib\Crypt\Common;
|
use phpseclib\Crypt\Common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,11 +16,11 @@ namespace phpseclib\Crypt\ECDSA;
|
|||||||
use phpseclib\Crypt\ECDSA;
|
use phpseclib\Crypt\ECDSA;
|
||||||
use phpseclib\Crypt\Hash;
|
use phpseclib\Crypt\Hash;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\ECDSA\Signature\ASN1 as ASN1Signature;
|
use phpseclib\Crypt\ECDSA\Formats\Signature\ASN1 as ASN1Signature;
|
||||||
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
use phpseclib\Crypt\ECDSA\BaseCurves\TwistedEdwards as TwistedEdwardsCurve;
|
||||||
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
use phpseclib\Crypt\ECDSA\Curves\Ed25519;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PKCS1;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PKCS1;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PKCS8;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PKCS8;
|
||||||
use phpseclib\Crypt\Common;
|
use phpseclib\Crypt\Common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +53,7 @@ use phpseclib\Crypt\RSA\PublicKey;
|
|||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Exception\UnsupportedAlgorithmException;
|
use phpseclib\Exception\UnsupportedAlgorithmException;
|
||||||
use phpseclib\Exception\InconsistentSetupException;
|
use phpseclib\Exception\InconsistentSetupException;
|
||||||
use phpseclib\Crypt\RSA\Keys\PSS;
|
use phpseclib\Crypt\RSA\Formats\Keys\PSS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pure-PHP PKCS#1 compliant implementation of RSA.
|
* Pure-PHP PKCS#1 compliant implementation of RSA.
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
@ -15,12 +15,12 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\OpenSSH as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\OpenSSH as Progenitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OpenSSH Formatted RSA Key Handler
|
* OpenSSH Formatted RSA Key Handler
|
@ -22,10 +22,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS1 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS1 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\File\ASN1\Maps;
|
use phpseclib\File\ASN1\Maps;
|
||||||
|
|
@ -25,10 +25,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS8 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS8 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
|
|
||||||
/**
|
/**
|
@ -23,10 +23,10 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\Common\Keys\PKCS8 as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PKCS8 as Progenitor;
|
||||||
use phpseclib\File\ASN1;
|
use phpseclib\File\ASN1;
|
||||||
use phpseclib\File\ASN1\Maps;
|
use phpseclib\File\ASN1\Maps;
|
||||||
|
|
@ -13,11 +13,11 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\PuTTY as Progenitor;
|
use phpseclib\Crypt\Common\Formats\Keys\PuTTY as Progenitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PuTTY Formatted RSA Key Handler
|
* PuTTY Formatted RSA Key Handler
|
||||||
@ -34,7 +34,7 @@ abstract class PuTTY extends Progenitor
|
|||||||
* @var string
|
* @var string
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
const PUBLIC_HANDLER = 'phpseclib\Crypt\RSA\Keys\OpenSSH';
|
const PUBLIC_HANDLER = 'phpseclib\Crypt\RSA\Formats\Keys\OpenSSH';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Algorithm Identifier
|
* Algorithm Identifier
|
@ -23,7 +23,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
|
|
@ -20,7 +20,7 @@
|
|||||||
* @link http://phpseclib.sourceforge.net
|
* @link http://phpseclib.sourceforge.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpseclib\Crypt\RSA\Keys;
|
namespace phpseclib\Crypt\RSA\Formats\Keys;
|
||||||
|
|
||||||
use ParagonIE\ConstantTime\Base64;
|
use ParagonIE\ConstantTime\Base64;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
@ -22,7 +22,7 @@ use phpseclib\Exceptions\NoKeyLoadedException;
|
|||||||
use phpseclib\Exception\UnsupportedFormatException;
|
use phpseclib\Exception\UnsupportedFormatException;
|
||||||
use phpseclib\Crypt\Random;
|
use phpseclib\Crypt\Random;
|
||||||
use phpseclib\Crypt\Common;
|
use phpseclib\Crypt\Common;
|
||||||
use phpseclib\Crypt\RSA\Keys\PSS;
|
use phpseclib\Crypt\RSA\Formats\Keys\PSS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Raw RSA Key Handler
|
* Raw RSA Key Handler
|
||||||
|
@ -23,7 +23,7 @@ use phpseclib\Exception\UnsupportedFormatException;
|
|||||||
use phpseclib\Crypt\Random;
|
use phpseclib\Crypt\Random;
|
||||||
use phpseclib\Crypt\Common;
|
use phpseclib\Crypt\Common;
|
||||||
use phpseclib\File\ASN1\Maps\DigestInfo;
|
use phpseclib\File\ASN1\Maps\DigestInfo;
|
||||||
use phpseclib\Crypt\RSA\Keys\PSS;
|
use phpseclib\Crypt\RSA\Formats\Keys\PSS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Raw RSA Key Handler
|
* Raw RSA Key Handler
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
namespace phpseclib\Math\BigInteger\Engines;
|
namespace phpseclib\Math\BigInteger\Engines;
|
||||||
|
|
||||||
use phpseclib\Crypt\RSA;
|
use phpseclib\Crypt\RSA;
|
||||||
use phpseclib\Crypt\RSA\Keys\PKCS8;
|
use phpseclib\Crypt\RSA\Formats\Keys\PKCS8;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,7 +68,6 @@ use phpseclib\Exception\NoSupportedAlgorithmsException;
|
|||||||
use phpseclib\Exception\UnsupportedAlgorithmException;
|
use phpseclib\Exception\UnsupportedAlgorithmException;
|
||||||
use phpseclib\Exception\UnsupportedCurveException;
|
use phpseclib\Exception\UnsupportedCurveException;
|
||||||
use phpseclib\Common\Functions\Strings;
|
use phpseclib\Common\Functions\Strings;
|
||||||
use phpseclib\Crypt\Common\Keys\OpenSSH;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pure-PHP implementation of SSHv2.
|
* Pure-PHP implementation of SSHv2.
|
||||||
|
@ -9,9 +9,9 @@ use phpseclib\Crypt\PublicKeyLoader;
|
|||||||
use phpseclib\Crypt\DSA\PrivateKey;
|
use phpseclib\Crypt\DSA\PrivateKey;
|
||||||
use phpseclib\Crypt\DSA\PublicKey;
|
use phpseclib\Crypt\DSA\PublicKey;
|
||||||
use phpseclib\Crypt\DSA\Parameters;
|
use phpseclib\Crypt\DSA\Parameters;
|
||||||
use phpseclib\Crypt\DSA\Keys\PKCS1;
|
use phpseclib\Crypt\DSA\Formats\Keys\PKCS1;
|
||||||
use phpseclib\Crypt\DSA\Keys\PKCS8;
|
use phpseclib\Crypt\DSA\Formats\Keys\PKCS8;
|
||||||
use phpseclib\Crypt\DSA\Keys\PuTTY;
|
use phpseclib\Crypt\DSA\Formats\Keys\PuTTY;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
|
|
||||||
class Unit_Crypt_DSA_LoadKeyTest extends PhpseclibTestCase
|
class Unit_Crypt_DSA_LoadKeyTest extends PhpseclibTestCase
|
||||||
|
@ -14,7 +14,7 @@ use phpseclib\Crypt\PublicKeyLoader;
|
|||||||
|
|
||||||
class Ed448PublicKey
|
class Ed448PublicKey
|
||||||
{
|
{
|
||||||
use phpseclib\Crypt\ECDSA\Keys\Common;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\Common;
|
||||||
|
|
||||||
public static function load($key, $password = '')
|
public static function load($key, $password = '')
|
||||||
{
|
{
|
||||||
@ -74,7 +74,7 @@ class Unit_Crypt_ECDSA_CurveTest extends PhpseclibTestCase
|
|||||||
|
|
||||||
public function curvesWithOIDs()
|
public function curvesWithOIDs()
|
||||||
{
|
{
|
||||||
$class = new ReflectionClass('phpseclib\Crypt\ECDSA\Keys\PKCS8');
|
$class = new ReflectionClass('phpseclib\Crypt\ECDSA\Formats\Keys\PKCS8');
|
||||||
|
|
||||||
$initialize = $class->getMethod('initialize_static_variables');
|
$initialize = $class->getMethod('initialize_static_variables');
|
||||||
$initialize->setAccessible(true);
|
$initialize->setAccessible(true);
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use phpseclib\Crypt\ECDSA;
|
use phpseclib\Crypt\ECDSA;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PKCS1;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PKCS1;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PKCS8;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PKCS8;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\PuTTY;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\PuTTY;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\OpenSSH;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\OpenSSH;
|
||||||
use phpseclib\Crypt\ECDSA\Keys\XML;
|
use phpseclib\Crypt\ECDSA\Formats\Keys\XML;
|
||||||
use phpseclib\Crypt\PublicKeyLoader;
|
use phpseclib\Crypt\PublicKeyLoader;
|
||||||
use phpseclib\Crypt\ECDSA\PrivateKey;
|
use phpseclib\Crypt\ECDSA\PrivateKey;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use phpseclib\Crypt\RSA;
|
use phpseclib\Crypt\RSA;
|
||||||
use phpseclib\Crypt\RSA\Keys\PKCS1;
|
use phpseclib\Crypt\RSA\Formats\Keys\PKCS1;
|
||||||
use phpseclib\Crypt\RSA\PrivateKey;
|
use phpseclib\Crypt\RSA\PrivateKey;
|
||||||
use phpseclib\Crypt\RSA\PublicKey;
|
use phpseclib\Crypt\RSA\PublicKey;
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@ use phpseclib\Crypt\RSA;
|
|||||||
use phpseclib\Crypt\PublicKeyLoader;
|
use phpseclib\Crypt\PublicKeyLoader;
|
||||||
use phpseclib\Crypt\RSA\PrivateKey;
|
use phpseclib\Crypt\RSA\PrivateKey;
|
||||||
use phpseclib\Crypt\RSA\PublicKey;
|
use phpseclib\Crypt\RSA\PublicKey;
|
||||||
use phpseclib\Crypt\RSA\Keys\PKCS1;
|
use phpseclib\Crypt\RSA\Formats\Keys\PKCS1;
|
||||||
use phpseclib\Crypt\RSA\Keys\PKCS8;
|
use phpseclib\Crypt\RSA\Formats\Keys\PKCS8;
|
||||||
use phpseclib\Crypt\RSA\Keys\PuTTY;
|
use phpseclib\Crypt\RSA\Formats\Keys\PuTTY;
|
||||||
use phpseclib\Crypt\RSA\Keys\OpenSSH;
|
use phpseclib\Crypt\RSA\Formats\Keys\OpenSSH;
|
||||||
use phpseclib\Crypt\RSA\Keys\PSS;
|
use phpseclib\Crypt\RSA\Formats\Keys\PSS;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
|
|
||||||
class Unit_Crypt_RSA_LoadKeyTest extends PhpseclibTestCase
|
class Unit_Crypt_RSA_LoadKeyTest extends PhpseclibTestCase
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
use phpseclib\Crypt\RSA;
|
use phpseclib\Crypt\RSA;
|
||||||
use phpseclib\Math\BigInteger;
|
use phpseclib\Math\BigInteger;
|
||||||
use phpseclib\Crypt\PublicKeyLoader;
|
use phpseclib\Crypt\PublicKeyLoader;
|
||||||
use phpseclib\Crypt\RSA\Keys\PKCS8;
|
use phpseclib\Crypt\RSA\Formats\Keys\PKCS8;
|
||||||
|
|
||||||
class Unit_Crypt_RSA_ModeTest extends PhpseclibTestCase
|
class Unit_Crypt_RSA_ModeTest extends PhpseclibTestCase
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user