mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
Add Composer support to phpseclib
This commit is contained in:
parent
8b59e80aa5
commit
7e9a975296
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,4 @@
|
||||
*~
|
||||
vendor
|
||||
composer.json
|
||||
composer.lock
|
||||
|
@ -66,7 +66,9 @@
|
||||
/**
|
||||
* Include Crypt_Rijndael
|
||||
*/
|
||||
if (!class_exists('Crypt_Rijndael')) {
|
||||
require_once 'Rijndael.php';
|
||||
}
|
||||
|
||||
/**#@+
|
||||
* @access public
|
||||
|
@ -57,7 +57,9 @@
|
||||
/**
|
||||
* Include Crypt_DES
|
||||
*/
|
||||
if (!class_exists('Crypt_DES')) {
|
||||
require_once('DES.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Encrypt / decrypt using inner chaining
|
||||
|
@ -47,7 +47,9 @@
|
||||
/**
|
||||
* Include File_ASN1
|
||||
*/
|
||||
if (!class_exists('File_ASN1')) {
|
||||
require_once('File/ASN1.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Flag to only accept signatures signed by certificate authorities
|
||||
|
@ -57,7 +57,9 @@
|
||||
/**
|
||||
* Include Net_SSH2
|
||||
*/
|
||||
if (!class_exists('Net_SSH2')) {
|
||||
require_once('Net/SSH2.php');
|
||||
}
|
||||
|
||||
/**#@+
|
||||
* @access public
|
||||
|
@ -71,7 +71,9 @@
|
||||
*
|
||||
* Used to do RSA encryption.
|
||||
*/
|
||||
if (!class_exists('Math_BigInteger')) {
|
||||
require_once('Math/BigInteger.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_Null
|
||||
@ -81,22 +83,30 @@ require_once('Math/BigInteger.php');
|
||||
/**
|
||||
* Include Crypt_DES
|
||||
*/
|
||||
if (!class_exists('Crypt_DES')) {
|
||||
require_once('Crypt/DES.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_TripleDES
|
||||
*/
|
||||
if (!class_exists('Crypt_TripleDES')) {
|
||||
require_once('Crypt/TripleDES.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_RC4
|
||||
*/
|
||||
if (!class_exists('Crypt_RC4')) {
|
||||
require_once('Crypt/RC4.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_Random
|
||||
*/
|
||||
if (!class_exists('Crypt_Random')) {
|
||||
require_once('Crypt/Random.php');
|
||||
}
|
||||
|
||||
/**#@+
|
||||
* Encryption Methods
|
||||
|
@ -73,32 +73,43 @@
|
||||
*
|
||||
* Used to do Diffie-Hellman key exchange and DSA/RSA signature verification.
|
||||
*/
|
||||
if (!class_exists('Math_BigInteger')) {
|
||||
require_once('Math/BigInteger.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_Random
|
||||
*/
|
||||
if (!class_exists('Crypt_Random')) {
|
||||
require_once('Crypt/Random.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_Hash
|
||||
*/
|
||||
if (!class_exists('Crypt_Hash')) {
|
||||
require_once('Crypt/Hash.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_TripleDES
|
||||
*/
|
||||
if (!class_exists('Crypt_TripleDES')) {
|
||||
require_once('Crypt/TripleDES.php');
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Crypt_RC4
|
||||
*/
|
||||
if (!class_exists('Crypt_RC4')) {
|
||||
require_once('Crypt/RC4.php');
|
||||
|
||||
/**
|
||||
* Include Crypt_AES
|
||||
*/
|
||||
if (!class_exists('Crypt_AES')) {
|
||||
require_once('Crypt/AES.php');
|
||||
}
|
||||
|
||||
/**#@+
|
||||
* Execution Bitmap Masks
|
||||
|
Loading…
x
Reference in New Issue
Block a user