Remove_@access

This commit is contained in:
Jack Worman 2022-04-21 19:40:01 -05:00 committed by terrafrost
parent a965060d81
commit 8855351cbb
329 changed files with 3 additions and 2327 deletions

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Common
* @package Functions\Strings
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -21,7 +19,6 @@ use phpseclib3\Math\Common\FiniteField;
/**
* Common String Functions
*
* @package Functions\Strings
* @author Jim Wigginton <terrafrost@php.net>
*/
abstract class Strings
@ -33,7 +30,6 @@ abstract class Strings
*
* @param string $string
* @param int $index
* @access public
* @return string
*/
public static function shift(&$string, $index = 1)
@ -50,7 +46,6 @@ abstract class Strings
*
* @param string $string
* @param int $index
* @access public
* @return string
*/
public static function pop(&$string, $index = 1)
@ -160,7 +155,6 @@ abstract class Strings
*
* @param string $format
* @param string|int|float|array|bool ...$elements
* @access public
* @return string
*/
public static function packSSH2($format, ...$elements)
@ -233,7 +227,6 @@ abstract class Strings
*
* Converts C5 to CCCCC, for example.
*
* @access private
* @param string $format
* @return string
*/
@ -257,7 +250,6 @@ abstract class Strings
* of this function, bin refers to base-256 encoded data whilst bits refers
* to base-2 encoded data
*
* @access public
* @param string $x
* @return string
*/
@ -304,7 +296,6 @@ abstract class Strings
/**
* Convert bits to binary data
*
* @access public
* @param string $x
* @return string
*/
@ -343,7 +334,6 @@ abstract class Strings
/**
* Switch Endianness Bit Order
*
* @access public
* @param string $x
* @return string
*/
@ -374,7 +364,6 @@ abstract class Strings
*
* @param string $var
* @return string
* @access public
*/
public static function increment_str(&$var)
{

View File

@ -39,8 +39,6 @@
* ?>
* </code>
*
* @category Crypt
* @package AES
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2008 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -52,9 +50,7 @@ namespace phpseclib3\Crypt;
/**
* Pure-PHP implementation of AES.
*
* @package AES
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class AES extends Rijndael
{
@ -64,7 +60,6 @@ class AES extends Rijndael
* Since \phpseclib3\Crypt\AES extends \phpseclib3\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything.
*
* @see \phpseclib3\Crypt\Rijndael::setBlockLength()
* @access public
* @param int $length
* @throws \BadMethodCallException anytime it's called
*/
@ -79,7 +74,6 @@ class AES extends Rijndael
* Valid key lengths are 128, 192, and 256. Set the link to bool(false) to disable a fixed key length
*
* @see \phpseclib3\Crypt\Rijndael:setKeyLength()
* @access public
* @param int $length
* @throws \LengthException if the key length isn't supported
*/
@ -103,7 +97,6 @@ class AES extends Rijndael
*
* @see \phpseclib3\Crypt\Rijndael:setKey()
* @see setKeyLength()
* @access public
* @param string $key
* @throws \LengthException if the key length isn't supported
*/

View File

@ -26,8 +26,6 @@
* ?>
* </code>
*
* @category Crypt
* @package Blowfish
* @author Jim Wigginton <terrafrost@php.net>
* @author Hans-Juergen Petrich <petrich@tronic-media.com>
* @copyright 2007 Jim Wigginton
@ -42,10 +40,8 @@ use phpseclib3\Crypt\Common\BlockCipher;
/**
* Pure-PHP implementation of Blowfish.
*
* @package Blowfish
* @author Jim Wigginton <terrafrost@php.net>
* @author Hans-Juergen Petrich <petrich@tronic-media.com>
* @access public
*/
class Blowfish extends BlockCipher
{
@ -54,7 +50,6 @@ class Blowfish extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::block_size
* @var int
* @access private
*/
protected $block_size = 8;
@ -63,7 +58,6 @@ class Blowfish extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::cipher_name_mcrypt
* @var string
* @access private
*/
protected $cipher_name_mcrypt = 'blowfish';
@ -72,7 +66,6 @@ class Blowfish extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::cfb_init_len
* @var int
* @access private
*/
protected $cfb_init_len = 500;
@ -81,7 +74,6 @@ class Blowfish extends BlockCipher
*
* S-Box 0
*
* @access private
* @var array
*/
private static $sbox0 = [
@ -122,7 +114,6 @@ class Blowfish extends BlockCipher
/**
* S-Box 1
*
* @access private
* @var array
*/
private static $sbox1 = [
@ -163,7 +154,6 @@ class Blowfish extends BlockCipher
/**
* S-Box 2
*
* @access private
* @var array
*/
private static $sbox2 = [
@ -204,7 +194,6 @@ class Blowfish extends BlockCipher
/**
* S-Box 3
*
* @access private
* @var array
*/
private static $sbox3 = [
@ -246,7 +235,6 @@ class Blowfish extends BlockCipher
* P-Array consists of 18 32-bit subkeys
*
* @var array
* @access private
*/
private static $parray = [
0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0,
@ -260,7 +248,6 @@ class Blowfish extends BlockCipher
* Holds the expanded key [p] and the key-depended s-boxes [sb]
*
* @var array
* @access private
*/
private $bctx;
@ -268,7 +255,6 @@ class Blowfish extends BlockCipher
* Holds the last used key
*
* @var array
* @access private
*/
private $kl;
@ -281,7 +267,6 @@ class Blowfish extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::setKeyLength()
* @var int
* @access private
*/
protected $key_length = 16;
@ -289,7 +274,6 @@ class Blowfish extends BlockCipher
* Default Constructor.
*
* @param string $mode
* @access public
* @throws \InvalidArgumentException if an invalid / unsupported mode is provided
*/
public function __construct($mode)
@ -306,7 +290,6 @@ class Blowfish extends BlockCipher
*
* Key lengths can be between 32 and 448 bits.
*
* @access public
* @param int $length
*/
public function setKeyLength($length)
@ -327,7 +310,6 @@ class Blowfish extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::isValidEngine()
* @param int $engine
* @access protected
* @return bool
*/
protected function isValidEngineHelper($engine)
@ -350,7 +332,6 @@ class Blowfish extends BlockCipher
* Setup the key (expansion)
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::_setupKey()
* @access private
*/
protected function setupKey()
{
@ -405,7 +386,6 @@ class Blowfish extends BlockCipher
/**
* Encrypts a block
*
* @access private
* @param string $in
* @return string
*/
@ -439,7 +419,6 @@ class Blowfish extends BlockCipher
/**
* Decrypts a block
*
* @access private
* @param string $in
* @return string
*/
@ -473,7 +452,6 @@ class Blowfish extends BlockCipher
* Setup the performance-optimized function for de/encrypt()
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::_setupInlineCrypt()
* @access private
*/
protected function setupInlineCrypt()
{

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package ChaCha20
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2019 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -21,9 +19,7 @@ use phpseclib3\Exception\InsufficientSetupException;
/**
* Pure-PHP implementation of ChaCha20.
*
* @package ChaCha20
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class ChaCha20 extends Salsa20
{
@ -41,7 +37,6 @@ class ChaCha20 extends Salsa20
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
* @param int $engine
* @access protected
* @return bool
*/
protected function isValidEngineHelper($engine)

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package AsymmetricKey
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -25,7 +23,6 @@ use phpseclib3\Math\BigInteger;
/**
* Base Class for all asymmetric cipher classes
*
* @package AsymmetricKey
* @author Jim Wigginton <terrafrost@php.net>
*/
abstract class AsymmetricKey
@ -34,7 +31,6 @@ abstract class AsymmetricKey
* Precomputed Zero
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected static $zero;
@ -42,7 +38,6 @@ abstract class AsymmetricKey
* Precomputed One
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected static $one;
@ -50,7 +45,6 @@ abstract class AsymmetricKey
* Format of the loaded key
*
* @var string
* @access private
*/
protected $format;
@ -58,7 +52,6 @@ abstract class AsymmetricKey
* Hash function
*
* @var \phpseclib3\Crypt\Hash
* @access private
*/
protected $hash;
@ -66,7 +59,6 @@ abstract class AsymmetricKey
* HMAC function
*
* @var \phpseclib3\Crypt\Hash
* @access private
*/
private $hmac;
@ -75,7 +67,6 @@ abstract class AsymmetricKey
*
* @see self::initialize_static_variables()
* @var array
* @access private
*/
private static $plugins = [];
@ -84,7 +75,6 @@ abstract class AsymmetricKey
*
* @see self::initialize_static_variables()
* @var array
* @access private
*/
private static $invisiblePlugins = [];
@ -93,7 +83,6 @@ abstract class AsymmetricKey
*
* @see self::initialize_static_variables()
* @var array
* @access private
*/
private static $signatureFormats = [];
@ -102,7 +91,6 @@ abstract class AsymmetricKey
*
* @see self::initialize_static_variables()
* @var array
* @access private
*/
private static $signatureFileFormats = [];
@ -110,7 +98,6 @@ abstract class AsymmetricKey
* Available Engines
*
* @var boolean[]
* @access private
*/
protected static $engines = [];
@ -118,7 +105,6 @@ abstract class AsymmetricKey
* Key Comment
*
* @var null|string
* @access private
*/
private $comment;
@ -199,7 +185,6 @@ abstract class AsymmetricKey
* Loads a private key
*
* @return PrivateKey
* @access public
* @param string|array $key
* @param string $password optional
*/
@ -216,7 +201,6 @@ abstract class AsymmetricKey
* Loads a public key
*
* @return PublicKey
* @access public
* @param string|array $key
*/
public static function loadPublicKey($key)
@ -232,7 +216,6 @@ abstract class AsymmetricKey
* Loads parameters
*
* @return AsymmetricKey
* @access public
* @param string|array $key
*/
public static function loadParameters($key)
@ -280,7 +263,6 @@ abstract class AsymmetricKey
* Loads a private key
*
* @return PrivateKey
* @access public
* @param string $type
* @param string $key
* @param string $password optional
@ -298,7 +280,6 @@ abstract class AsymmetricKey
* Loads a public key
*
* @return PublicKey
* @access public
* @param string $type
* @param string $key
*/
@ -315,7 +296,6 @@ abstract class AsymmetricKey
* Loads parameters
*
* @return AsymmetricKey
* @access public
* @param string $type
* @param string|array $key
*/
@ -331,7 +311,6 @@ abstract class AsymmetricKey
/**
* Validate Plugin
*
* @access private
* @param string $format
* @param string $type
* @param string $method optional
@ -354,7 +333,6 @@ abstract class AsymmetricKey
/**
* Load Plugins
*
* @access private
* @param string $format
*/
private static function loadPlugins($format)
@ -385,7 +363,6 @@ abstract class AsymmetricKey
/**
* Returns a list of supported formats.
*
* @access public
* @return array
*/
public static function getSupportedKeyFormats()
@ -403,7 +380,6 @@ abstract class AsymmetricKey
*
* @see self::load()
* @param string $fullname
* @access public
* @return bool
*/
public static function addFileFormat($fullname)
@ -427,7 +403,6 @@ abstract class AsymmetricKey
* with RSA::createKey() then this will throw an exception.
*
* @see self::load()
* @access public
* @return mixed
*/
public function getLoadedFormat()
@ -445,7 +420,6 @@ abstract class AsymmetricKey
*
* Not all key formats support comments. If you want to set a comment use toString()
*
* @access public
* @return null|string
*/
public function getComment()
@ -456,7 +430,6 @@ abstract class AsymmetricKey
/**
* Tests engine validity
*
* @access public
*/
public static function useBestEngine()
{
@ -475,7 +448,6 @@ abstract class AsymmetricKey
/**
* Flag to use internal engine only (useful for unit testing)
*
* @access public
*/
public static function useInternalEngine()
{
@ -499,7 +471,6 @@ abstract class AsymmetricKey
/**
* Determines which hashing function should be used
*
* @access public
* @param string $hash
*/
public function withHash($hash)
@ -515,7 +486,6 @@ abstract class AsymmetricKey
/**
* Returns the hash algorithm currently being used
*
* @access public
*/
public function getHash()
{
@ -526,7 +496,6 @@ abstract class AsymmetricKey
* Compute the pseudorandom k for signature generation,
* using the process specified for deterministic DSA.
*
* @access public
* @param string $h1
* @return string
*/
@ -571,7 +540,6 @@ abstract class AsymmetricKey
/**
* Integer to Octet String
*
* @access private
* @param \phpseclib3\Math\BigInteger $v
* @return string
*/
@ -591,7 +559,6 @@ abstract class AsymmetricKey
/**
* Bit String to Integer
*
* @access private
* @param string $in
* @return \phpseclib3\Math\BigInteger
*/
@ -609,7 +576,6 @@ abstract class AsymmetricKey
/**
* Bit String to Octet String
*
* @access private
* @param string $in
* @return string
*/

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package BlockCipher
* @author Jim Wigginton <terrafrost@php.net>
* @author Hans-Juergen Petrich <petrich@tronic-media.com>
* @copyright 2007 Jim Wigginton
@ -19,7 +17,6 @@ namespace phpseclib3\Crypt\Common;
/**
* Base Class for all block cipher classes
*
* @package BlockCipher
* @author Jim Wigginton <terrafrost@php.net>
*/
abstract class BlockCipher extends SymmetricKey

View File

@ -7,8 +7,6 @@
*
* Place in $HOME/.ssh/authorized_keys
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -25,9 +23,7 @@ use phpseclib3\Exception\UnsupportedFormatException;
/**
* OpenSSH Formatted RSA Key Handler
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class OpenSSH
{
@ -35,7 +31,6 @@ abstract class OpenSSH
* Default comment
*
* @var string
* @access private
*/
protected static $comment = 'phpseclib-generated-key';
@ -43,14 +38,12 @@ abstract class OpenSSH
* Binary key flag
*
* @var bool
* @access private
*/
protected static $binary = false;
/**
* Sets the default comment
*
* @access public
* @param string $comment
*/
public static function setComment($comment)
@ -63,7 +56,6 @@ abstract class OpenSSH
*
* $type can be either ssh-dss or ssh-rsa
*
* @access public
* @param string $key
* @param string $password
* @return array
@ -169,7 +161,6 @@ abstract class OpenSSH
* Printable keys are what are generated by default. These are the ones that go in
* $HOME/.ssh/authorized_key.
*
* @access public
* @param bool $enabled
*/
public static function setBinaryOutput($enabled)
@ -180,7 +171,6 @@ abstract class OpenSSH
/**
* Checks to see if the type is valid
*
* @access private
* @param string $candidate
*/
private static function checkType($candidate)
@ -193,7 +183,6 @@ abstract class OpenSSH
/**
* Wrap a private key appropriately
*
* @access public
* @param string $publicKey
* @param string $privateKey
* @param string $password

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -18,9 +16,7 @@ namespace phpseclib3\Crypt\Common\Formats\Keys;
/**
* PKCS1 Formatted Key Handler
*
* @package RSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS
{
@ -41,7 +37,6 @@ abstract class PKCS
/**
* Is the key a base-64 encoded PEM, DER or should it be auto-detected?
*
* @access private
* @var int
*/
protected static $format = self::MODE_ANY;
@ -49,7 +44,6 @@ abstract class PKCS
/**
* Require base64-encoded PEM's be supplied
*
* @access public
*/
public static function requirePEM()
{
@ -59,7 +53,6 @@ abstract class PKCS
/**
* Require raw DER's be supplied
*
* @access public
*/
public static function requireDER()
{
@ -71,7 +64,6 @@ abstract class PKCS
*
* This is the default setting
*
* @access public
*/
public static function requireAny()
{

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -28,9 +26,7 @@ use phpseclib3\File\ASN1;
/**
* PKCS1 Formatted Key Handler
*
* @package RSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS1 extends PKCS
{
@ -38,14 +34,12 @@ abstract class PKCS1 extends PKCS
* Default encryption algorithm
*
* @var string
* @access private
*/
private static $defaultEncryptionAlgorithm = 'AES-128-CBC';
/**
* Sets the default encryption algorithm
*
* @access public
* @param string $algo
*/
public static function setEncryptionAlgorithm($algo)
@ -56,7 +50,6 @@ abstract class PKCS1 extends PKCS
/**
* Returns the mode constant corresponding to the mode string
*
* @access public
* @param string $mode
* @return int
* @throws \UnexpectedValueException if the block cipher mode is unsupported
@ -77,7 +70,6 @@ abstract class PKCS1 extends PKCS
/**
* Returns a cipher object corresponding to a string
*
* @access public
* @param string $algo
* @return string
* @throws \UnexpectedValueException if the encryption algorithm is unsupported
@ -102,7 +94,6 @@ abstract class PKCS1 extends PKCS
/**
* Generate a symmetric key for PKCS#1 keys
*
* @access private
* @param string $password
* @param string $iv
* @param int $length
@ -121,7 +112,6 @@ abstract class PKCS1 extends PKCS
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -176,7 +166,6 @@ abstract class PKCS1 extends PKCS
/**
* Wrap a private key appropriately
*
* @access public
* @param string $key
* @param string $type
* @param string $password
@ -209,7 +198,6 @@ abstract class PKCS1 extends PKCS
/**
* Wrap a public key appropriately
*
* @access public
* @param string $key
* @param string $type
* @return string

View File

@ -17,8 +17,6 @@
* is specific to private keys it's basically creating a DER-encoded wrapper
* for keys. This just extends that same concept to public keys (much like ssh-keygen)
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -43,9 +41,7 @@ use phpseclib3\File\ASN1\Maps;
/**
* PKCS#8 Formatted Key Handler
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS8 extends PKCS
{
@ -53,7 +49,6 @@ abstract class PKCS8 extends PKCS
* Default encryption algorithm
*
* @var string
* @access private
*/
private static $defaultEncryptionAlgorithm = 'id-PBES2';
@ -63,7 +58,6 @@ abstract class PKCS8 extends PKCS
* Only used when defaultEncryptionAlgorithm is id-PBES2
*
* @var string
* @access private
*/
private static $defaultEncryptionScheme = 'aes128-CBC-PAD';
@ -73,7 +67,6 @@ abstract class PKCS8 extends PKCS
* Only used when defaultEncryptionAlgorithm is id-PBES2
*
* @var string
* @access private
*/
private static $defaultPRF = 'id-hmacWithSHA256';
@ -81,7 +74,6 @@ abstract class PKCS8 extends PKCS
* Default Iteration Count
*
* @var int
* @access private
*/
private static $defaultIterationCount = 2048;
@ -89,14 +81,12 @@ abstract class PKCS8 extends PKCS
* OIDs loaded
*
* @var bool
* @access private
*/
private static $oidsLoaded = false;
/**
* Sets the default encryption algorithm
*
* @access public
* @param string $algo
*/
public static function setEncryptionAlgorithm($algo)
@ -107,7 +97,6 @@ abstract class PKCS8 extends PKCS
/**
* Sets the default encryption algorithm for PBES2
*
* @access public
* @param string $algo
*/
public static function setEncryptionScheme($algo)
@ -118,7 +107,6 @@ abstract class PKCS8 extends PKCS
/**
* Sets the iteration count
*
* @access public
* @param int $count
*/
public static function setIterationCount($count)
@ -129,7 +117,6 @@ abstract class PKCS8 extends PKCS
/**
* Sets the PRF for PBES2
*
* @access public
* @param string $algo
*/
public static function setPRF($algo)
@ -141,7 +128,6 @@ abstract class PKCS8 extends PKCS
* Returns a SymmetricKey object based on a PBES1 $algo
*
* @return \phpseclib3\Crypt\Common\SymmetricKey
* @access public
* @param string $algo
*/
private static function getPBES1EncryptionObject($algo)
@ -191,7 +177,6 @@ abstract class PKCS8 extends PKCS
* Returns a hash based on a PBES1 $algo
*
* @return string
* @access public
* @param string $algo
*/
private static function getPBES1Hash($algo)
@ -207,7 +192,6 @@ abstract class PKCS8 extends PKCS
* Returns a KDF baesd on a PBES1 $algo
*
* @return string
* @access public
* @param string $algo
*/
private static function getPBES1KDF($algo)
@ -229,7 +213,6 @@ abstract class PKCS8 extends PKCS
* Returns a SymmetricKey object baesd on a PBES2 $algo
*
* @return SymmetricKey
* @access public
* @param string $algo
*/
private static function getPBES2EncryptionObject($algo)
@ -264,7 +247,6 @@ abstract class PKCS8 extends PKCS
/**
* Initialize static variables
*
* @access private
*/
private static function initialize_static_variables()
{
@ -328,7 +310,6 @@ abstract class PKCS8 extends PKCS
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -505,7 +486,6 @@ abstract class PKCS8 extends PKCS
/**
* Wrap a private key appropriately
*
* @access public
* @param string $key
* @param string $attr
* @param mixed $params
@ -619,7 +599,6 @@ abstract class PKCS8 extends PKCS
/**
* Wrap a public key appropriately
*
* @access public
* @param string $key
* @param mixed $params
* @param string $oid

View File

@ -7,8 +7,6 @@
*
* PHP version 5
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -28,9 +26,7 @@ use phpseclib3\Exception\UnsupportedAlgorithmException;
/**
* PuTTY Formatted Key Handler
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PuTTY
{
@ -38,7 +34,6 @@ abstract class PuTTY
* Default comment
*
* @var string
* @access private
*/
private static $comment = 'phpseclib-generated-key';
@ -46,14 +41,12 @@ abstract class PuTTY
* Default version
*
* @var int
* @access private
*/
private static $version = 2;
/**
* Sets the default comment
*
* @access public
* @param string $comment
*/
public static function setComment($comment)
@ -64,7 +57,6 @@ abstract class PuTTY
/**
* Sets the default version
*
* @access public
* @param int $version
*/
public static function setVersion($version)
@ -78,7 +70,6 @@ abstract class PuTTY
/**
* Generate a symmetric key for PuTTY v2 keys
*
* @access private
* @param string $password
* @param int $length
* @return string
@ -97,7 +88,6 @@ abstract class PuTTY
/**
* Generate a symmetric key for PuTTY v3 keys
*
* @access private
* @param string $password
* @param string $flavour
* @param int $memory
@ -135,7 +125,6 @@ abstract class PuTTY
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password
* @return array
@ -287,7 +276,6 @@ abstract class PuTTY
/**
* Wrap a private key appropriately
*
* @access private
* @param string $public
* @param string $private
* @param string $type
@ -372,7 +360,6 @@ abstract class PuTTY
*
* This is basically the format described in RFC 4716 (https://tools.ietf.org/html/rfc4716)
*
* @access private
* @param string $key
* @param string $type
* @return string

View File

@ -7,8 +7,6 @@
*
* Handles signatures as arrays
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -22,16 +20,13 @@ use phpseclib3\Math\BigInteger;
/**
* Raw Signature Handler
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class Raw
{
/**
* Loads a signature
*
* @access public
* @param array $sig
* @return array|bool
*/
@ -54,7 +49,6 @@ abstract class Raw
/**
* Returns a signature in the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $r
* @param \phpseclib3\Math\BigInteger $s
* @return string

View File

@ -3,8 +3,6 @@
/**
* PrivateKey interface
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2009 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -16,9 +14,7 @@ namespace phpseclib3\Crypt\Common;
/**
* PrivateKey interface
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
interface PrivateKey
{

View File

@ -3,8 +3,6 @@
/**
* PublicKey interface
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2009 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -16,9 +14,7 @@ namespace phpseclib3\Crypt\Common;
/**
* PublicKey interface
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
interface PublicKey
{

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package StreamCipher
* @author Jim Wigginton <terrafrost@php.net>
* @author Hans-Juergen Petrich <petrich@tronic-media.com>
* @copyright 2007 Jim Wigginton
@ -19,7 +17,6 @@ namespace phpseclib3\Crypt\Common;
/**
* Base Class for all stream cipher classes
*
* @package StreamCipher
* @author Jim Wigginton <terrafrost@php.net>
*/
abstract class StreamCipher extends SymmetricKey
@ -31,7 +28,6 @@ abstract class StreamCipher extends SymmetricKey
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::block_size
* @var int
* @access private
*/
protected $block_size = 0;
@ -49,7 +45,6 @@ abstract class StreamCipher extends SymmetricKey
/**
* Stream ciphers not use an IV
*
* @access public
* @return bool
*/
public function usesIV()

View File

@ -25,8 +25,6 @@
*
* - Please read all the other comments/notes/hints here also for each class var/method
*
* @category Crypt
* @package Base
* @author Jim Wigginton <terrafrost@php.net>
* @author Hans-Juergen Petrich <petrich@tronic-media.com>
* @copyright 2007 Jim Wigginton
@ -50,7 +48,6 @@ use phpseclib3\Math\PrimeField;
/**
* Base Class for all \phpseclib3\Crypt\* cipher classes
*
* @package Base
* @author Jim Wigginton <terrafrost@php.net>
* @author Hans-Juergen Petrich <petrich@tronic-media.com>
*/
@ -62,7 +59,6 @@ abstract class SymmetricKey
* Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.
*
* @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -71,7 +67,6 @@ abstract class SymmetricKey
* Encrypt / decrypt using the Electronic Code Book mode.
*
* @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -80,7 +75,6 @@ abstract class SymmetricKey
* Encrypt / decrypt using the Code Book Chaining mode.
*
* @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher-block_chaining_.28CBC.29
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -89,7 +83,6 @@ abstract class SymmetricKey
* Encrypt / decrypt using the Cipher Feedback mode.
*
* @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher_feedback_.28CFB.29
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -97,7 +90,6 @@ abstract class SymmetricKey
/**
* Encrypt / decrypt using the Cipher Feedback mode (8bit)
*
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -105,7 +97,6 @@ abstract class SymmetricKey
/**
* Encrypt / decrypt using the Output Feedback mode (8bit)
*
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -114,7 +105,6 @@ abstract class SymmetricKey
* Encrypt / decrypt using the Output Feedback mode.
*
* @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Output_feedback_.28OFB.29
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -123,7 +113,6 @@ abstract class SymmetricKey
* Encrypt / decrypt using Galois/Counter mode.
*
* @link https://en.wikipedia.org/wiki/Galois/Counter_Mode
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -131,7 +120,6 @@ abstract class SymmetricKey
/**
* Encrypt / decrypt using streaming mode.
*
* @access public
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
*/
@ -140,7 +128,6 @@ abstract class SymmetricKey
/**
* Mode Map
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const MODE_MAP = [
@ -158,42 +145,36 @@ abstract class SymmetricKey
/**
* Base value for the internal implementation $engine switch
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const ENGINE_INTERNAL = 1;
/**
* Base value for the eval() implementation $engine switch
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const ENGINE_EVAL = 2;
/**
* Base value for the mcrypt implementation $engine switch
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const ENGINE_MCRYPT = 3;
/**
* Base value for the openssl implementation $engine switch
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const ENGINE_OPENSSL = 4;
/**
* Base value for the libsodium implementation $engine switch
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const ENGINE_LIBSODIUM = 5;
/**
* Base value for the openssl / gcm implementation $engine switch
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::__construct()
*/
const ENGINE_OPENSSL_GCM = 6;
@ -201,7 +182,6 @@ abstract class SymmetricKey
/**
* Engine Reverse Map
*
* @access private
* @see \phpseclib3\Crypt\Common\SymmetricKey::getEngine()
*/
const ENGINE_MAP = [
@ -218,7 +198,6 @@ abstract class SymmetricKey
*
* @see self::__construct()
* @var int
* @access private
*/
protected $mode;
@ -226,7 +205,6 @@ abstract class SymmetricKey
* The Block Length of the block cipher
*
* @var int
* @access private
*/
protected $block_size = 16;
@ -235,7 +213,6 @@ abstract class SymmetricKey
*
* @see self::setKey()
* @var string
* @access private
*/
protected $key = false;
@ -244,7 +221,6 @@ abstract class SymmetricKey
*
* @see self::setIV()
* @var string
* @access private
*/
protected $iv = false;
@ -254,7 +230,6 @@ abstract class SymmetricKey
* @see self::enableContinuousBuffer()
* @see self::clearBuffers()
* @var string
* @access private
*/
protected $encryptIV;
@ -264,7 +239,6 @@ abstract class SymmetricKey
* @see self::enableContinuousBuffer()
* @see self::clearBuffers()
* @var string
* @access private
*/
protected $decryptIV;
@ -273,7 +247,6 @@ abstract class SymmetricKey
*
* @see self::enableContinuousBuffer()
* @var bool
* @access private
*/
protected $continuousBuffer = false;
@ -283,7 +256,6 @@ abstract class SymmetricKey
* @see self::encrypt()
* @see self::clearBuffers()
* @var array
* @access private
*/
protected $enbuffer;
@ -293,7 +265,6 @@ abstract class SymmetricKey
* @see self::decrypt()
* @see self::clearBuffers()
* @var array
* @access private
*/
protected $debuffer;
@ -305,7 +276,6 @@ abstract class SymmetricKey
*
* @see self::encrypt()
* @var resource
* @access private
*/
private $enmcrypt;
@ -317,7 +287,6 @@ abstract class SymmetricKey
*
* @see self::decrypt()
* @var resource
* @access private
*/
private $demcrypt;
@ -327,7 +296,6 @@ abstract class SymmetricKey
* @see \phpseclib3\Crypt\Twofish::setKey()
* @see \phpseclib3\Crypt\Twofish::setIV()
* @var bool
* @access private
*/
private $enchanged = true;
@ -337,7 +305,6 @@ abstract class SymmetricKey
* @see \phpseclib3\Crypt\Twofish::setKey()
* @see \phpseclib3\Crypt\Twofish::setIV()
* @var bool
* @access private
*/
private $dechanged = true;
@ -356,7 +323,6 @@ abstract class SymmetricKey
* @see self::decrypt()
* @see self::setupMcrypt()
* @var resource
* @access private
*/
private $ecb;
@ -378,7 +344,6 @@ abstract class SymmetricKey
*
* @see self::encrypt()
* @var int
* @access private
*/
protected $cfb_init_len = 600;
@ -389,7 +354,6 @@ abstract class SymmetricKey
* @see self::setIV()
* @see self::disableContinuousBuffer()
* @var bool
* @access private
*/
protected $changed = true;
@ -398,7 +362,6 @@ abstract class SymmetricKey
*
* @see self::setup()
* @var bool
* @access private
*/
protected $nonIVChanged = true;
@ -407,7 +370,6 @@ abstract class SymmetricKey
*
* @see self::enablePadding()
* @var bool
* @access private
*/
private $padding = true;
@ -416,7 +378,6 @@ abstract class SymmetricKey
*
* @see self::__construct()
* @var bool
* @access private
*/
private $paddable = false;
@ -436,7 +397,6 @@ abstract class SymmetricKey
* @see self::encrypt()
* @see self::decrypt()
* @var int
* @access private
*/
protected $engine;
@ -446,7 +406,6 @@ abstract class SymmetricKey
* @see self::setEngine()
* @see self::setPreferredEngine()
* @var int
* @access private
*/
private $preferredEngine;
@ -459,7 +418,6 @@ abstract class SymmetricKey
* @link http://www.php.net/mcrypt_list_algorithms
* @see self::setupMcrypt()
* @var string
* @access private
*/
protected $cipher_name_mcrypt;
@ -470,7 +428,6 @@ abstract class SymmetricKey
*
* @link http://www.php.net/openssl-get-cipher-methods
* @var string
* @access private
*/
protected $cipher_name_openssl;
@ -482,7 +439,6 @@ abstract class SymmetricKey
*
* @link http://www.php.net/openssl-get-cipher-methods
* @var string
* @access private
*/
protected $cipher_name_openssl_ecb;
@ -491,7 +447,6 @@ abstract class SymmetricKey
*
* @see self::setPassword()
* @var string
* @access private
*/
private $password_default_salt = 'phpseclib/salt';
@ -505,7 +460,6 @@ abstract class SymmetricKey
* @see self::decrypt()
* @see self::setupInlineCrypt()
* @var Callback
* @access private
*/
protected $inline_crypt;
@ -514,7 +468,6 @@ abstract class SymmetricKey
*
* @see self::openssl_ctr_process()
* @var bool
* @access private
*/
private $openssl_emulate_ctr = false;
@ -523,7 +476,6 @@ abstract class SymmetricKey
*
* @see self::clearBuffers()
* @var bool
* @access private
*/
private $skip_key_adjustment = false;
@ -532,7 +484,6 @@ abstract class SymmetricKey
*
* @see self::setKeyLength()
* @var bool
* @access private
*/
protected $explicit_key_length = false;
@ -542,7 +493,6 @@ abstract class SymmetricKey
* @see self::setupGCM()
* @see self::ghash()
* @var BinaryField\Integer
* @access private
*/
private $h;
@ -550,7 +500,6 @@ abstract class SymmetricKey
* Additional authenticated data
*
* @var string
* @access private
*/
protected $aad = '';
@ -558,7 +507,6 @@ abstract class SymmetricKey
* Authentication Tag produced after a round of encryption
*
* @var string
* @access private
*/
protected $newtag = false;
@ -566,7 +514,6 @@ abstract class SymmetricKey
* Authentication Tag to be verified during decryption
*
* @var string
* @access private
*/
protected $oldtag = false;
@ -576,7 +523,6 @@ abstract class SymmetricKey
* @see self::__construct()
* @see self::ghash()
* @var BinaryField
* @access private
*/
private static $gcmField;
@ -586,7 +532,6 @@ abstract class SymmetricKey
* @see self::enablePoly1305()
* @see self::poly1305()
* @var PrimeField
* @access private
*/
private static $poly1305Field;
@ -596,7 +541,6 @@ abstract class SymmetricKey
* @see self::setPoly1305Key()
* @see self::poly1305()
* @var string
* @access private
*/
protected $poly1305Key;
@ -606,7 +550,6 @@ abstract class SymmetricKey
* @see self::setPoly1305Key()
* @see self::enablePoly1305()
* @var boolean
* @access private
*/
protected $usePoly1305 = false;
@ -618,7 +561,6 @@ abstract class SymmetricKey
*
* @see self::setIV()
* @var string
* @access private
*/
private $origIV = false;
@ -630,7 +572,6 @@ abstract class SymmetricKey
*
* @see self::setNonce()
* @var string
* @access private
*/
protected $nonce = false;
@ -656,7 +597,6 @@ abstract class SymmetricKey
* - gcm
*
* @param string $mode
* @access public
* @throws BadModeException if an invalid / unsupported mode is provided
*/
public function __construct($mode)
@ -707,7 +647,6 @@ abstract class SymmetricKey
*
* {@internal Can be overwritten by a sub class, but does not have to be}
*
* @access public
* @param string $iv
* @throws \LengthException if the IV length isn't equal to the block size
* @throws \BadMethodCallException if an IV is provided when one shouldn't be
@ -739,7 +678,6 @@ abstract class SymmetricKey
*
* Once enabled Poly1305 cannot be disabled.
*
* @access public
* @throws \BadMethodCallException if Poly1305 is enabled whilst in GCM mode
*/
public function enablePoly1305()
@ -757,7 +695,6 @@ abstract class SymmetricKey
* Once enabled Poly1305 cannot be disabled. If $key is not passed then an attempt to call createPoly1305Key
* will be made.
*
* @access public
* @param string $key optional
* @throws \LengthException if the key isn't long enough
* @throws \BadMethodCallException if Poly1305 is enabled whilst in GCM mode
@ -786,7 +723,6 @@ abstract class SymmetricKey
*
* setNonce() is only required when gcm is used
*
* @access public
* @param string $nonce
* @throws \BadMethodCallException if an nonce is provided when one shouldn't be
*/
@ -805,7 +741,6 @@ abstract class SymmetricKey
*
* setAAD() is only used by gcm or in poly1305 mode
*
* @access public
* @param string $aad
* @throws \BadMethodCallException if mode isn't GCM or if poly1305 isn't being utilized
*/
@ -821,7 +756,6 @@ abstract class SymmetricKey
/**
* Returns whether or not the algorithm uses an IV
*
* @access public
* @return bool
*/
public function usesIV()
@ -832,7 +766,6 @@ abstract class SymmetricKey
/**
* Returns whether or not the algorithm uses a nonce
*
* @access public
* @return bool
*/
public function usesNonce()
@ -843,7 +776,6 @@ abstract class SymmetricKey
/**
* Returns the current key length in bits
*
* @access public
* @return int
*/
public function getKeyLength()
@ -854,7 +786,6 @@ abstract class SymmetricKey
/**
* Returns the current block length in bits
*
* @access public
* @return int
*/
public function getBlockLength()
@ -865,7 +796,6 @@ abstract class SymmetricKey
/**
* Returns the current block length in bytes
*
* @access public
* @return int
*/
public function getBlockLengthInBytes()
@ -878,7 +808,6 @@ abstract class SymmetricKey
*
* Keys with explicitly set lengths need to be treated accordingly
*
* @access public
* @param int $length
*/
public function setKeyLength($length)
@ -903,7 +832,6 @@ abstract class SymmetricKey
*
* {@internal Could, but not must, extend by the child Crypt_* class}
*
* @access public
* @param string $key
*/
public function setKey($key)
@ -934,7 +862,6 @@ abstract class SymmetricKey
* @param string[] ...$func_args
* @throws \LengthException if pbkdf1 is being used and the derived key length exceeds the hash length
* @return bool
* @access public
*/
public function setPassword($password, $method = 'pbkdf2', ...$func_args)
{
@ -1074,7 +1001,6 @@ abstract class SymmetricKey
* {@link https://tools.ietf.org/html/rfc7292#appendix-B}
*
* @see self::setPassword()
* @access private
* @param int $n
* @param \phpseclib3\Crypt\Hash $hashObj
* @param string $i
@ -1137,7 +1063,6 @@ abstract class SymmetricKey
* {@internal Could, but not must, extend by the child Crypt_* class}
*
* @see self::decrypt()
* @access public
* @param string $plaintext
* @return string $ciphertext
*/
@ -1517,7 +1442,6 @@ abstract class SymmetricKey
* {@internal Could, but not must, extend by the child Crypt_* class}
*
* @see self::encrypt()
* @access public
* @param string $ciphertext
* @return string $plaintext
* @throws \LengthException if we're inside a block cipher and the ciphertext length is not a multiple of the block size
@ -1888,7 +1812,6 @@ abstract class SymmetricKey
* @see self::encrypt()
* @param int $length optional
* @return string
* @access public
* @throws \LengthException if $length isn't of a sufficient length
* @throws \RuntimeException if GCM mode isn't being used
*/
@ -1923,7 +1846,6 @@ abstract class SymmetricKey
*
* @see self::decrypt()
* @param string $tag
* @access public
* @throws \LengthException if $length isn't of a sufficient length
* @throws \RuntimeException if GCM mode isn't being used
*/
@ -1953,7 +1875,6 @@ abstract class SymmetricKey
* @see self::decrypt()
* @param string $iv
* @return string
* @access private
*/
protected function getIV($iv)
{
@ -1974,7 +1895,6 @@ abstract class SymmetricKey
* @param string $encryptIV
* @param array $buffer
* @return string
* @access private
*/
private function openssl_ctr_process($plaintext, &$encryptIV, &$buffer)
{
@ -2062,7 +1982,6 @@ abstract class SymmetricKey
* @param string $encryptIV
* @param array $buffer
* @return string
* @access private
*/
private function openssl_ofb_process($plaintext, &$encryptIV, &$buffer)
{
@ -2108,7 +2027,6 @@ abstract class SymmetricKey
* May need to be overwritten by classes extending this one in some cases
*
* @return string
* @access private
*/
protected function openssl_translate_mode()
{
@ -2142,7 +2060,6 @@ abstract class SymmetricKey
* transmitted separately)
*
* @see self::disablePadding()
* @access public
*/
public function enablePadding()
{
@ -2153,7 +2070,6 @@ abstract class SymmetricKey
* Do not pad packets.
*
* @see self::enablePadding()
* @access public
*/
public function disablePadding()
{
@ -2197,7 +2113,6 @@ abstract class SymmetricKey
* {@internal Could, but not must, extend by the child Crypt_* class}
*
* @see self::disableContinuousBuffer()
* @access public
*/
public function enableContinuousBuffer()
{
@ -2222,7 +2137,6 @@ abstract class SymmetricKey
* {@internal Could, but not must, extend by the child Crypt_* class}
*
* @see self::enableContinuousBuffer()
* @access public
*/
public function disableContinuousBuffer()
{
@ -2243,7 +2157,6 @@ abstract class SymmetricKey
*
* @see self::__construct()
* @param int $engine
* @access private
* @return bool
*/
protected function isValidEngineHelper($engine)
@ -2293,7 +2206,6 @@ abstract class SymmetricKey
*
* @see self::__construct()
* @param string $engine
* @access public
* @return bool
*/
public function isValidEngine($engine)
@ -2330,7 +2242,6 @@ abstract class SymmetricKey
*
* @see self::__construct()
* @param string $engine
* @access public
*/
public function setPreferredEngine($engine)
{
@ -2349,7 +2260,6 @@ abstract class SymmetricKey
* Returns the engine currently being utilized
*
* @see self::setEngine()
* @access public
*/
public function getEngine()
{
@ -2360,7 +2270,6 @@ abstract class SymmetricKey
* Sets the engine as appropriate
*
* @see self::__construct()
* @access private
*/
protected function setEngine()
{
@ -2415,7 +2324,6 @@ abstract class SymmetricKey
*
* Note: Must be extended by the child \phpseclib3\Crypt\* class
*
* @access private
* @param string $in
* @return string
*/
@ -2426,7 +2334,6 @@ abstract class SymmetricKey
*
* Note: Must be extended by the child \phpseclib3\Crypt\* class
*
* @access private
* @param string $in
* @return string
*/
@ -2440,7 +2347,6 @@ abstract class SymmetricKey
* Note: Must extend by the child \phpseclib3\Crypt\* class
*
* @see self::setup()
* @access private
*/
abstract protected function setupKey();
@ -2468,7 +2374,6 @@ abstract class SymmetricKey
* @see self::setKey()
* @see self::setIV()
* @see self::disableContinuousBuffer()
* @access private
*/
protected function setup()
{
@ -2571,7 +2476,6 @@ abstract class SymmetricKey
* @see self::unpad()
* @param string $text
* @throws \LengthException if padding is disabled and the plaintext's length is not a multiple of the block size
* @access private
* @return string
*/
protected function pad($text)
@ -2600,7 +2504,6 @@ abstract class SymmetricKey
* @see self::pad()
* @param string $text
* @throws \LengthException if the ciphertext's length is not a multiple of the block size
* @access private
* @return string
*/
protected function unpad($text)
@ -2674,7 +2577,6 @@ abstract class SymmetricKey
* @see self::createInlineCryptFunction()
* @see self::encrypt()
* @see self::decrypt()
* @access private
*/
//protected function setupInlineCrypt();
@ -2786,7 +2688,6 @@ abstract class SymmetricKey
* @see self::encrypt()
* @see self::decrypt()
* @param array $cipher_code
* @access private
* @return string (the name of the created callback function)
*/
protected function createInlineCryptFunction($cipher_code)
@ -3234,7 +3135,6 @@ abstract class SymmetricKey
*
* On ARM CPUs converting floats to ints doesn't always work
*
* @access private
* @param string $x
* @return int
*/
@ -3253,7 +3153,6 @@ abstract class SymmetricKey
/**
* eval()'able string for in-line float to int
*
* @access private
* @return string
*/
protected static function safe_intval_inline()
@ -3275,7 +3174,6 @@ abstract class SymmetricKey
* See steps 1-2 of https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf#page=23
* for more info
*
* @access private
*/
private function setupGCM()
{
@ -3308,7 +3206,6 @@ abstract class SymmetricKey
*
* @see self::decrypt()
* @see self::encrypt()
* @access private
* @param string $x
* @return string
*/
@ -3343,7 +3240,6 @@ abstract class SymmetricKey
* @see self::decrypt()
* @see self::encrypt()
* @see self::setupGCM()
* @access private
* @param string $str
* @return string
*/
@ -3358,7 +3254,6 @@ abstract class SymmetricKey
* @see self::decrypt()
* @see self::encrypt()
* @see self::setupGCM()
* @access private
* @param string $str
* @return string
*/
@ -3376,7 +3271,6 @@ abstract class SymmetricKey
*
* @see self::decrypt()
* @see self::encrypt()
* @access private
* @param string $text
* @return string
*/
@ -3409,7 +3303,6 @@ abstract class SymmetricKey
*
* You can do $obj instanceof AES or whatever to get the cipher but you can't do that to get the mode
*
* @access public
* @return string
*/
public function getMode()

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -20,9 +18,7 @@ use phpseclib3\Crypt\Hash;
/**
* Fingerprint Trait for Private Keys
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
trait Fingerprint
{
@ -33,7 +29,6 @@ trait Fingerprint
* no public key currently loaded, false is returned.
* Example output (md5): "c1:b1:30:29:d7:b8:de:6c:97:77:10:d7:46:41:63:87" (as specified by RFC 4716)
*
* @access public
* @param string $algorithm The hashing algorithm to be used. Valid options are 'md5' and 'sha256'. False is returned
* for invalid values.
* @return mixed

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -18,9 +16,7 @@ namespace phpseclib3\Crypt\Common\Traits;
/**
* Password Protected Trait for Private Keys
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
trait PasswordProtected
{
@ -39,7 +35,6 @@ trait PasswordProtected
*
* @see self::createKey()
* @see self::load()
* @access public
* @param string|bool $password
*/
public function withPassword($password = false)

View File

@ -32,8 +32,6 @@
* ?>
* </code>
*
* @category Crypt
* @package DES
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2007 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -48,16 +46,13 @@ use phpseclib3\Exception\BadModeException;
/**
* Pure-PHP implementation of DES.
*
* @package DES
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class DES extends BlockCipher
{
/**
* Contains $keys[self::ENCRYPT]
*
* @access private
* @see \phpseclib3\Crypt\DES::setupKey()
* @see \phpseclib3\Crypt\DES::processBlock()
*/
@ -65,7 +60,6 @@ class DES extends BlockCipher
/**
* Contains $keys[self::DECRYPT]
*
* @access private
* @see \phpseclib3\Crypt\DES::setupKey()
* @see \phpseclib3\Crypt\DES::processBlock()
*/
@ -76,7 +70,6 @@ class DES extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::block_size
* @var int
* @access private
*/
protected $block_size = 8;
@ -85,7 +78,6 @@ class DES extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::setKeyLength()
* @var int
* @access private
*/
protected $key_length = 8;
@ -94,7 +86,6 @@ class DES extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::cipher_name_mcrypt
* @var string
* @access private
*/
protected $cipher_name_mcrypt = 'des';
@ -103,7 +94,6 @@ class DES extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::openssl_mode_names
* @var array
* @access private
*/
protected $openssl_mode_names = [
self::MODE_ECB => 'des-ecb',
@ -118,7 +108,6 @@ class DES extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::cfb_init_len
* @var int
* @access private
*/
protected $cfb_init_len = 500;
@ -130,7 +119,6 @@ class DES extends BlockCipher
* @see self::setupKey()
* @see self::processBlock()
* @var int
* @access private
*/
protected $des_rounds = 1;
@ -139,7 +127,6 @@ class DES extends BlockCipher
*
* @see self::setKey()
* @var string
* @access private
*/
protected $key_length_max = 8;
@ -148,7 +135,6 @@ class DES extends BlockCipher
*
* @see self::setupKey()
* @var array
* @access private
*/
private $keys;
@ -162,7 +148,6 @@ class DES extends BlockCipher
* @see self::processBlock()
* @see self::setupKey()
* @var array
* @access private
*/
protected static $shuffle = [
"\x00\x00\x00\x00\x00\x00\x00\x00", "\x00\x00\x00\x00\x00\x00\x00\xFF",
@ -301,7 +286,6 @@ class DES extends BlockCipher
* Indexing this table with each source byte performs the initial bit permutation.
*
* @var array
* @access private
*/
protected static $ipmap = [
0x00, 0x10, 0x01, 0x11, 0x20, 0x30, 0x21, 0x31,
@ -343,7 +327,6 @@ class DES extends BlockCipher
* Indexing this table with a byte value reverses the bit order.
*
* @var array
* @access private
*/
protected static $invipmap = [
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0,
@ -387,7 +370,6 @@ class DES extends BlockCipher
* P table: concatenation can then be replaced by exclusive ORs.
*
* @var array
* @access private
*/
protected static $sbox1 = [
0x00808200, 0x00000000, 0x00008000, 0x00808202,
@ -412,7 +394,6 @@ class DES extends BlockCipher
* Pre-permuted S-box2
*
* @var array
* @access private
*/
protected static $sbox2 = [
0x40084010, 0x40004000, 0x00004000, 0x00084010,
@ -437,7 +418,6 @@ class DES extends BlockCipher
* Pre-permuted S-box3
*
* @var array
* @access private
*/
protected static $sbox3 = [
0x00000104, 0x04010100, 0x00000000, 0x04010004,
@ -462,7 +442,6 @@ class DES extends BlockCipher
* Pre-permuted S-box4
*
* @var array
* @access private
*/
protected static $sbox4 = [
0x80401000, 0x80001040, 0x80001040, 0x00000040,
@ -487,7 +466,6 @@ class DES extends BlockCipher
* Pre-permuted S-box5
*
* @var array
* @access private
*/
protected static $sbox5 = [
0x00000080, 0x01040080, 0x01040000, 0x21000080,
@ -512,7 +490,6 @@ class DES extends BlockCipher
* Pre-permuted S-box6
*
* @var array
* @access private
*/
protected static $sbox6 = [
0x10000008, 0x10200000, 0x00002000, 0x10202008,
@ -537,7 +514,6 @@ class DES extends BlockCipher
* Pre-permuted S-box7
*
* @var array
* @access private
*/
protected static $sbox7 = [
0x00100000, 0x02100001, 0x02000401, 0x00000000,
@ -562,7 +538,6 @@ class DES extends BlockCipher
* Pre-permuted S-box8
*
* @var array
* @access private
*/
protected static $sbox8 = [
0x08000820, 0x00000800, 0x00020000, 0x08020820,
@ -587,7 +562,6 @@ class DES extends BlockCipher
* Default Constructor.
*
* @param string $mode
* @access public
* @throws BadModeException if an invalid / unsupported mode is provided
*/
public function __construct($mode)
@ -606,7 +580,6 @@ class DES extends BlockCipher
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::isValidEngine()
* @param int $engine
* @access protected
* @return bool
*/
protected function isValidEngineHelper($engine)
@ -629,7 +602,6 @@ class DES extends BlockCipher
* DES also requires that every eighth bit be a parity bit, however, we'll ignore that.
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::setKey()
* @access public
* @param string $key
*/
public function setKey($key)
@ -648,7 +620,6 @@ class DES extends BlockCipher
* @see \phpseclib3\Crypt\Common\SymmetricKey::encryptBlock()
* @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()
* @see self::encrypt()
* @access private
* @param string $in
* @return string
*/
@ -663,7 +634,6 @@ class DES extends BlockCipher
* @see \phpseclib3\Crypt\Common\SymmetricKey::decryptBlock()
* @see \phpseclib3\Crypt\Common\SymmetricKey::decrypt()
* @see self::decrypt()
* @access private
* @param string $in
* @return string
*/
@ -681,7 +651,6 @@ class DES extends BlockCipher
*
* @see self::encryptBlock()
* @see self::decryptBlock()
* @access private
* @param string $block
* @param int $mode
* @return string
@ -765,7 +734,6 @@ class DES extends BlockCipher
* Creates the key schedule
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::setupKey()
* @access private
*/
protected function setupKey()
{
@ -1300,7 +1268,6 @@ class DES extends BlockCipher
* Setup the performance-optimized function for de/encrypt()
*
* @see \phpseclib3\Crypt\Common\SymmetricKey::setupInlineCrypt()
* @access private
*/
protected function setupInlineCrypt()
{

View File

@ -16,8 +16,6 @@
* ?>
* </code>
*
* @category Crypt
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -37,9 +35,7 @@ use phpseclib3\Math\BigInteger;
/**
* Pure-PHP (EC)DH implementation
*
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class DH extends AsymmetricKey
{
@ -47,7 +43,6 @@ abstract class DH extends AsymmetricKey
* Algorithm Name
*
* @var string
* @access private
*/
const ALGORITHM = 'DH';
@ -55,7 +50,6 @@ abstract class DH extends AsymmetricKey
* DH prime
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $prime;
@ -65,7 +59,6 @@ abstract class DH extends AsymmetricKey
* Prime divisor of p-1
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $base;
@ -77,7 +70,6 @@ abstract class DH extends AsymmetricKey
* - an integer representing the size of the prime in bits (the base is assumed to be 2)
* - a string (eg. diffie-hellman-group14-sha1)
*
* @access public
* @return Parameters
*/
public static function createParameters(...$args)
@ -239,7 +231,6 @@ abstract class DH extends AsymmetricKey
*
* @param Parameters $params
* @param int $length optional
* @access public
* @return DH\PrivateKey
*/
public static function createKey(Parameters $params, $length = 0)
@ -265,7 +256,6 @@ abstract class DH extends AsymmetricKey
*
* @param PrivateKey|EC $private
* @param PublicKey|BigInteger|string $public
* @access public
* @return mixed
*/
public static function computeSecret($private, $public)
@ -336,7 +326,6 @@ abstract class DH extends AsymmetricKey
* OnLoad Handler
*
* @return bool
* @access protected
* @param array $components
*/
protected static function onLoad($components)
@ -365,7 +354,6 @@ abstract class DH extends AsymmetricKey
/**
* Determines which hashing function should be used
*
* @access public
* @param string $hash
*/
public function withHash($hash)
@ -376,7 +364,6 @@ abstract class DH extends AsymmetricKey
/**
* Returns the hash algorithm currently being used
*
* @access public
*/
public function getHash()
{
@ -390,7 +377,6 @@ abstract class DH extends AsymmetricKey
* value.
*
* @see self::getPublicKey()
* @access public
* @return mixed
*/
public function getParameters()

View File

@ -13,8 +13,6 @@
* DSA, whose format isn't really formally described anywhere, so might as well
* use it to describe this, too.
*
* @category Crypt
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -31,16 +29,13 @@ use phpseclib3\Math\BigInteger;
/**
* "PKCS1" Formatted DH Key Handler
*
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS1 extends Progenitor
{
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -65,7 +60,6 @@ abstract class PKCS1 extends Progenitor
/**
* Convert EC parameters to the appropriate format
*
* @access public
* @return string
*/
public static function saveParameters(BigInteger $prime, BigInteger $base, array $options = [])

View File

@ -11,8 +11,6 @@
* -----BEGIN PRIVATE KEY-----
* -----BEGIN PUBLIC KEY-----
*
* @category Crypt
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -30,9 +28,7 @@ use phpseclib3\Math\BigInteger;
/**
* PKCS#8 Formatted DH Key Handler
*
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS8 extends Progenitor
{
@ -40,7 +36,6 @@ abstract class PKCS8 extends Progenitor
* OID Name
*
* @var string
* @access private
*/
const OID_NAME = 'dhKeyAgreement';
@ -48,7 +43,6 @@ abstract class PKCS8 extends Progenitor
* OID Value
*
* @var string
* @access private
*/
const OID_VALUE = '1.2.840.113549.1.3.1';
@ -56,14 +50,12 @@ abstract class PKCS8 extends Progenitor
* Child OIDs loaded
*
* @var bool
* @access private
*/
protected static $childOIDsLoaded = false;
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -112,7 +104,6 @@ abstract class PKCS8 extends Progenitor
/**
* Convert a private key to the appropriate format.
*
* @access public
* @param \phpseclib3\Math\BigInteger $prime
* @param \phpseclib3\Math\BigInteger $base
* @param \phpseclib3\Math\BigInteger $privateKey
@ -136,7 +127,6 @@ abstract class PKCS8 extends Progenitor
/**
* Convert a public key to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $prime
* @param \phpseclib3\Math\BigInteger $base
* @param \phpseclib3\Math\BigInteger $publicKey

View File

@ -3,8 +3,6 @@
/**
* DH Parameters
*
* @category Crypt
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -18,9 +16,7 @@ use phpseclib3\Crypt\DH;
/**
* DH Parameters
*
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class Parameters extends DH
{

View File

@ -3,8 +3,6 @@
/**
* DH Private Key
*
* @category Crypt
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -19,9 +17,7 @@ use phpseclib3\Crypt\DH;
/**
* DH Private Key
*
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class PrivateKey extends DH
{
@ -31,7 +27,6 @@ class PrivateKey extends DH
* Private Key
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $privateKey;
@ -39,14 +34,12 @@ class PrivateKey extends DH
* Public Key
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $publicKey;
/**
* Returns the public key
*
* @access public
* @return DH\PublicKey
*/
public function getPublicKey()

View File

@ -3,8 +3,6 @@
/**
* DH Public Key
*
* @category Crypt
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -19,9 +17,7 @@ use phpseclib3\Crypt\DH;
/**
* DH Public Key
*
* @package DH
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class PublicKey extends DH
{

View File

@ -21,8 +21,6 @@
* ?>
* </code>
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -41,9 +39,7 @@ use phpseclib3\Math\BigInteger;
/**
* Pure-PHP FIPS 186-4 compliant implementation of DSA.
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class DSA extends AsymmetricKey
{
@ -51,7 +47,6 @@ abstract class DSA extends AsymmetricKey
* Algorithm Name
*
* @var string
* @access private
*/
const ALGORITHM = 'DSA';
@ -59,7 +54,6 @@ abstract class DSA extends AsymmetricKey
* DSA Prime P
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $p;
@ -69,7 +63,6 @@ abstract class DSA extends AsymmetricKey
* Prime divisor of p-1
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $q;
@ -77,7 +70,6 @@ abstract class DSA extends AsymmetricKey
* DSA Group Generator G
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $g;
@ -85,7 +77,6 @@ abstract class DSA extends AsymmetricKey
* DSA public key value y
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $y;
@ -93,7 +84,6 @@ abstract class DSA extends AsymmetricKey
* Signature Format
*
* @var string
* @access private
*/
protected $sigFormat;
@ -101,14 +91,12 @@ abstract class DSA extends AsymmetricKey
* Signature Format (Short)
*
* @var string
* @access private
*/
protected $shortFormat;
/**
* Create DSA parameters
*
* @access public
* @param int $L
* @param int $N
* @return \phpseclib3\Crypt\DSA|bool
@ -186,7 +174,6 @@ abstract class DSA extends AsymmetricKey
* Returns the private key, from which the publickey can be extracted
*
* @param int[] ...$args
* @access public
* @return DSA\PrivateKey
*/
public static function createKey(...$args)
@ -227,7 +214,6 @@ abstract class DSA extends AsymmetricKey
* OnLoad Handler
*
* @return bool
* @access protected
* @param array $components
*/
protected static function onLoad($components)
@ -274,7 +260,6 @@ abstract class DSA extends AsymmetricKey
*
* More specifically, this L (the length of DSA Prime P) and N (the length of DSA Group Order q)
*
* @access public
* @return array
*/
public function getLength()
@ -287,7 +272,6 @@ abstract class DSA extends AsymmetricKey
*
* @see self::useInternalEngine()
* @see self::useBestEngine()
* @access public
* @return string
*/
public function getEngine()
@ -306,7 +290,6 @@ abstract class DSA extends AsymmetricKey
* value.
*
* @see self::getPublicKey()
* @access public
* @return mixed
*/
public function getParameters()
@ -324,7 +307,6 @@ abstract class DSA extends AsymmetricKey
*
* Valid values are: ASN1, SSH2, Raw
*
* @access public
* @param string $format
*/
public function withSignatureFormat($format)
@ -338,7 +320,6 @@ abstract class DSA extends AsymmetricKey
/**
* Returns the signature format currently being used
*
* @access public
*/
public function getSignatureFormat()
{

View File

@ -7,8 +7,6 @@
*
* Place in $HOME/.ssh/authorized_keys
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -24,9 +22,7 @@ use phpseclib3\Math\BigInteger;
/**
* OpenSSH Formatted DSA Key Handler
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class OpenSSH extends Progenitor
{
@ -40,7 +36,6 @@ abstract class OpenSSH extends Progenitor
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -70,7 +65,6 @@ abstract class OpenSSH extends Progenitor
/**
* Convert a public key to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g
@ -105,7 +99,6 @@ abstract class OpenSSH extends Progenitor
/**
* Convert a private key to the appropriate format.
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g

View File

@ -19,8 +19,6 @@
* The DSA private key format seems to have been adapted from the RSA private key format so
* we're just re-using that as the name.
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -38,16 +36,13 @@ use phpseclib3\Math\BigInteger;
/**
* PKCS#1 Formatted DSA Key Handler
*
* @package RSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS1 extends Progenitor
{
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -82,7 +77,6 @@ abstract class PKCS1 extends Progenitor
/**
* Convert DSA parameters to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g
@ -106,7 +100,6 @@ abstract class PKCS1 extends Progenitor
/**
* Convert a private key to the appropriate format.
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g
@ -135,7 +128,6 @@ abstract class PKCS1 extends Progenitor
/**
* Convert a public key to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g

View File

@ -15,8 +15,6 @@
* is specific to private keys it's basically creating a DER-encoded wrapper
* for keys. This just extends that same concept to public keys (much like ssh-keygen)
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -34,9 +32,7 @@ use phpseclib3\Math\BigInteger;
/**
* PKCS#8 Formatted DSA Key Handler
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PKCS8 extends Progenitor
{
@ -44,7 +40,6 @@ abstract class PKCS8 extends Progenitor
* OID Name
*
* @var string
* @access private
*/
const OID_NAME = 'id-dsa';
@ -52,7 +47,6 @@ abstract class PKCS8 extends Progenitor
* OID Value
*
* @var string
* @access private
*/
const OID_VALUE = '1.2.840.10040.4.1';
@ -60,14 +54,12 @@ abstract class PKCS8 extends Progenitor
* Child OIDs loaded
*
* @var bool
* @access private
*/
protected static $childOIDsLoaded = false;
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -121,7 +113,6 @@ abstract class PKCS8 extends Progenitor
/**
* Convert a private key to the appropriate format.
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g
@ -147,7 +138,6 @@ abstract class PKCS8 extends Progenitor
/**
* Convert a public key to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g

View File

@ -10,8 +10,6 @@
*
* PHP version 5
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -27,9 +25,7 @@ use phpseclib3\Math\BigInteger;
/**
* PuTTY Formatted DSA Key Handler
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class PuTTY extends Progenitor
{
@ -37,7 +33,6 @@ abstract class PuTTY extends Progenitor
* Public Handler
*
* @var string
* @access private
*/
const PUBLIC_HANDLER = 'phpseclib3\Crypt\DSA\Formats\Keys\OpenSSH';
@ -45,14 +40,12 @@ abstract class PuTTY extends Progenitor
* Algorithm Identifier
*
* @var array
* @access private
*/
protected static $types = ['ssh-dss'];
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -75,7 +68,6 @@ abstract class PuTTY extends Progenitor
/**
* Convert a private key to the appropriate format.
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g
@ -100,7 +92,6 @@ abstract class PuTTY extends Progenitor
/**
* Convert a public key to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g

View File

@ -7,8 +7,6 @@
*
* Reads and creates arrays as DSA keys
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -22,16 +20,13 @@ use phpseclib3\Math\BigInteger;
/**
* Raw DSA Key Handler
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class Raw
{
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param array $key
* @param string $password optional
* @return array
@ -61,7 +56,6 @@ abstract class Raw
/**
* Convert a private key to the appropriate format.
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g
@ -78,7 +72,6 @@ abstract class Raw
/**
* Convert a public key to the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g

View File

@ -11,8 +11,6 @@
*
* PHP version 5
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -29,16 +27,13 @@ use phpseclib3\Math\BigInteger;
/**
* XML Formatted DSA Key Handler
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class XML
{
/**
* Break a public or private key down into its constituent components
*
* @access public
* @param string $key
* @param string $password optional
* @return array
@ -120,7 +115,6 @@ abstract class XML
*
* See https://www.w3.org/TR/xmldsig-core/#sec-DSAKeyValue
*
* @access public
* @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g

View File

@ -8,8 +8,6 @@
* Handles signatures in the format described in
* https://tools.ietf.org/html/rfc3279#section-2.2.2
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -25,16 +23,13 @@ use phpseclib3\Math\BigInteger;
/**
* ASN1 Signature Handler
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class ASN1
{
/**
* Loads a signature
*
* @access public
* @param string $sig
* @return array|bool
*/
@ -56,7 +51,6 @@ abstract class ASN1
/**
* Returns a signature in the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $r
* @param \phpseclib3\Math\BigInteger $s
* @return string

View File

@ -5,8 +5,6 @@
*
* PHP version 5
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -20,9 +18,7 @@ use phpseclib3\Crypt\Common\Formats\Signature\Raw as Progenitor;
/**
* Raw DSA Signature Handler
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class Raw extends Progenitor
{

View File

@ -7,8 +7,6 @@
*
* Handles signatures in the format used by SSH2
*
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -23,16 +21,13 @@ use phpseclib3\Math\BigInteger;
/**
* SSH2 Signature Handler
*
* @package Common
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class SSH2
{
/**
* Loads a signature
*
* @access public
* @param string $sig
* @return mixed
*/
@ -60,7 +55,6 @@ abstract class SSH2
/**
* Returns a signature in the appropriate format
*
* @access public
* @param \phpseclib3\Math\BigInteger $r
* @param \phpseclib3\Math\BigInteger $s
* @return string

View File

@ -3,8 +3,6 @@
/**
* DSA Parameters
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -18,9 +16,7 @@ use phpseclib3\Crypt\DSA;
/**
* DSA Parameters
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class Parameters extends DSA
{

View File

@ -3,8 +3,6 @@
/**
* DSA Private Key
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -21,9 +19,7 @@ use phpseclib3\Math\BigInteger;
/**
* DSA Private Key
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class PrivateKey extends DSA implements Common\PrivateKey
{
@ -33,7 +29,6 @@ class PrivateKey extends DSA implements Common\PrivateKey
* DSA secret exponent x
*
* @var \phpseclib3\Math\BigInteger
* @access private
*/
protected $x;
@ -56,7 +51,6 @@ class PrivateKey extends DSA implements Common\PrivateKey
* without the parameters and the PKCS1 DSA public key format does not include the parameters.
*
* @see self::getPrivateKey()
* @access public
* @return mixed
*/
public function getPublicKey()
@ -78,7 +72,6 @@ class PrivateKey extends DSA implements Common\PrivateKey
* Create a signature
*
* @see self::verify()
* @access public
* @param string $message
* @return mixed
*/

View File

@ -3,8 +3,6 @@
/**
* DSA Public Key
*
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -20,9 +18,7 @@ use phpseclib3\Crypt\DSA\Formats\Signature\ASN1 as ASN1Signature;
/**
* DSA Public Key
*
* @package DSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class PublicKey extends DSA implements Common\PublicKey
{
@ -32,7 +28,6 @@ class PublicKey extends DSA implements Common\PublicKey
* Verify a signature
*
* @see self::verify()
* @access public
* @param string $message
* @param string $signature
* @return mixed

View File

@ -21,8 +21,6 @@
* ?>
* </code>
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -51,9 +49,7 @@ use phpseclib3\Math\BigInteger;
/**
* Pure-PHP implementation of EC.
*
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class EC extends AsymmetricKey
{
@ -61,7 +57,6 @@ abstract class EC extends AsymmetricKey
* Algorithm Name
*
* @var string
* @access private
*/
const ALGORITHM = 'EC';
@ -83,7 +78,6 @@ abstract class EC extends AsymmetricKey
* Signature Format
*
* @var string
* @access private
*/
protected $format;
@ -91,7 +85,6 @@ abstract class EC extends AsymmetricKey
* Signature Format (Short)
*
* @var string
* @access private
*/
protected $shortFormat;
@ -133,7 +126,6 @@ abstract class EC extends AsymmetricKey
/**
* Create public / private key pair.
*
* @access public
* @param string $curve
* @return \phpseclib3\Crypt\EC\PrivateKey
*/
@ -207,7 +199,6 @@ abstract class EC extends AsymmetricKey
* OnLoad Handler
*
* @return bool
* @access protected
* @param array $components
*/
protected static function onLoad($components)
@ -257,7 +248,6 @@ abstract class EC extends AsymmetricKey
*
* Returns a string if it's a named curve, an array if not
*
* @access public
* @return string|array
*/
public function getCurve()
@ -305,7 +295,6 @@ abstract class EC extends AsymmetricKey
* elliptic curve domain parameters defines a group of order n generated
* by a base point P"
*
* @access public
* @return int
*/
public function getLength()
@ -318,7 +307,6 @@ abstract class EC extends AsymmetricKey
*
* @see self::useInternalEngine()
* @see self::useBestEngine()
* @access public
* @return string
*/
public function getEngine()
@ -357,7 +345,6 @@ abstract class EC extends AsymmetricKey
* Returns the parameters
*
* @see self::getPublicKey()
* @access public
* @param string $type optional
* @return mixed
*/
@ -377,7 +364,6 @@ abstract class EC extends AsymmetricKey
*
* Valid values are: ASN1, SSH2, Raw
*
* @access public
* @param string $format
*/
public function withSignatureFormat($format)
@ -395,7 +381,6 @@ abstract class EC extends AsymmetricKey
/**
* Returns the signature format currently being used
*
* @access public
*/
public function getSignatureFormat()
{
@ -409,7 +394,6 @@ abstract class EC extends AsymmetricKey
*
* @see self::sign()
* @see self::verify()
* @access public
* @param string $context optional
*/
public function withContext($context = null)
@ -436,7 +420,6 @@ abstract class EC extends AsymmetricKey
/**
* Returns the signature format currently being used
*
* @access public
*/
public function getContext()
{
@ -446,7 +429,6 @@ abstract class EC extends AsymmetricKey
/**
* Determines which hashing function should be used
*
* @access public
* @param string $hash
*/
public function withHash($hash)

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -20,9 +18,7 @@ use phpseclib3\Math\BigInteger;
/**
* Base
*
* @package Prime
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
abstract class Base
{

View File

@ -13,8 +13,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -30,9 +28,7 @@ use phpseclib3\Math\BinaryField\Integer as BinaryInteger;
/**
* Curves over y^2 + x*y = x^3 + a*x^2 + b
*
* @package Binary
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class Binary extends Base
{

View File

@ -20,8 +20,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -36,9 +34,7 @@ use phpseclib3\Math\PrimeField;
/**
* Curves over y^2 = x^3 + b
*
* @package KoblitzPrime
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class KoblitzPrime extends Prime
{

View File

@ -16,8 +16,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2019 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -34,9 +32,7 @@ use phpseclib3\Math\PrimeField\Integer as PrimeInteger;
/**
* Curves over y^2 = x^3 + a*x + x
*
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class Montgomery extends Base
{

View File

@ -13,8 +13,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -32,9 +30,7 @@ use phpseclib3\Math\PrimeField\Integer as PrimeInteger;
/**
* Curves over y^2 = x^3 + a*x + b
*
* @package Prime
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class Prime extends Base
{

View File

@ -18,8 +18,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -35,9 +33,7 @@ use phpseclib3\Math\PrimeField\Integer as PrimeInteger;
/**
* Curves over a*x^2 + y^2 = 1 + d*x^2*y^2
*
* @package Prime
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class TwistedEdwards extends Base
{

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2019 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2019 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -18,8 +18,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -7,8 +7,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -7,8 +7,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

View File

@ -5,8 +5,6 @@
*
* PHP version 5 and 7
*
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License

Some files were not shown because too many files have changed in this diff Show More