1
0
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:
Rob Loach 2012-06-08 15:38:27 -04:00
parent 8b59e80aa5
commit 7e9a975296
7 changed files with 52 additions and 20 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
*~
vendor
composer.json
composer.lock

View File

@ -66,7 +66,9 @@
/**
* Include Crypt_Rijndael
*/
if (!class_exists('Crypt_Rijndael')) {
require_once 'Rijndael.php';
}
/**#@+
* @access public

View File

@ -57,7 +57,9 @@
/**
* Include Crypt_DES
*/
if (!class_exists('Crypt_DES')) {
require_once('DES.php');
}
/**
* Encrypt / decrypt using inner chaining

View File

@ -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

View File

@ -57,7 +57,9 @@
/**
* Include Net_SSH2
*/
if (!class_exists('Net_SSH2')) {
require_once('Net/SSH2.php');
}
/**#@+
* @access public

View File

@ -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

View File

@ -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