Merge branch '3.0'

This commit is contained in:
terrafrost 2022-05-04 07:09:00 -05:00
commit 21993760ad
329 changed files with 3 additions and 2337 deletions

View File

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

View File

@ -39,8 +39,6 @@
* ?> * ?>
* </code> * </code>
* *
* @category Crypt
* @package AES
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2008 Jim Wigginton * @copyright 2008 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -52,9 +50,7 @@ namespace phpseclib3\Crypt;
/** /**
* Pure-PHP implementation of AES. * Pure-PHP implementation of AES.
* *
* @package AES
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
class AES extends Rijndael 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. * Since \phpseclib3\Crypt\AES extends \phpseclib3\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything.
* *
* @see \phpseclib3\Crypt\Rijndael::setBlockLength() * @see \phpseclib3\Crypt\Rijndael::setBlockLength()
* @access public
* @param int $length * @param int $length
* @throws \BadMethodCallException anytime it's called * @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 * 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() * @see \phpseclib3\Crypt\Rijndael:setKeyLength()
* @access public
* @param int $length * @param int $length
* @throws \LengthException if the key length isn't supported * @throws \LengthException if the key length isn't supported
*/ */
@ -103,7 +97,6 @@ class AES extends Rijndael
* *
* @see \phpseclib3\Crypt\Rijndael:setKey() * @see \phpseclib3\Crypt\Rijndael:setKey()
* @see setKeyLength() * @see setKeyLength()
* @access public
* @param string $key * @param string $key
* @throws \LengthException if the key length isn't supported * @throws \LengthException if the key length isn't supported
*/ */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,8 +5,6 @@
* *
* PHP version 5 * PHP version 5
* *
* @category Crypt
* @package Common
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton * @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -20,9 +18,7 @@ use phpseclib3\Crypt\Hash;
/** /**
* Fingerprint Trait for Private Keys * Fingerprint Trait for Private Keys
* *
* @package Common
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
trait Fingerprint trait Fingerprint
{ {
@ -33,7 +29,6 @@ trait Fingerprint
* no public key currently loaded, false is returned. * 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) * 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 * @param string $algorithm The hashing algorithm to be used. Valid options are 'md5' and 'sha256'. False is returned
* for invalid values. * for invalid values.
* @return mixed * @return mixed

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,8 +7,6 @@
* *
* Place in $HOME/.ssh/authorized_keys * Place in $HOME/.ssh/authorized_keys
* *
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton * @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
@ -24,9 +22,7 @@ use phpseclib3\Math\BigInteger;
/** /**
* OpenSSH Formatted DSA Key Handler * OpenSSH Formatted DSA Key Handler
* *
* @package DSA
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
abstract class OpenSSH extends Progenitor 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 * Break a public or private key down into its constituent components
* *
* @access public
* @param string $key * @param string $key
* @param string $password optional * @param string $password optional
* @return array * @return array
@ -70,7 +65,6 @@ abstract class OpenSSH extends Progenitor
/** /**
* Convert a public key to the appropriate format * Convert a public key to the appropriate format
* *
* @access public
* @param \phpseclib3\Math\BigInteger $p * @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q * @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g * @param \phpseclib3\Math\BigInteger $g
@ -105,7 +99,6 @@ abstract class OpenSSH extends Progenitor
/** /**
* Convert a private key to the appropriate format. * Convert a private key to the appropriate format.
* *
* @access public
* @param \phpseclib3\Math\BigInteger $p * @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q * @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g * @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 * 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. * we're just re-using that as the name.
* *
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton * @copyright 2015 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @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 * PKCS#1 Formatted DSA Key Handler
* *
* @package RSA
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
abstract class PKCS1 extends Progenitor abstract class PKCS1 extends Progenitor
{ {
/** /**
* Break a public or private key down into its constituent components * Break a public or private key down into its constituent components
* *
* @access public
* @param string $key * @param string $key
* @param string $password optional * @param string $password optional
* @return array * @return array
@ -82,7 +77,6 @@ abstract class PKCS1 extends Progenitor
/** /**
* Convert DSA parameters to the appropriate format * Convert DSA parameters to the appropriate format
* *
* @access public
* @param \phpseclib3\Math\BigInteger $p * @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q * @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g * @param \phpseclib3\Math\BigInteger $g
@ -106,7 +100,6 @@ abstract class PKCS1 extends Progenitor
/** /**
* Convert a private key to the appropriate format. * Convert a private key to the appropriate format.
* *
* @access public
* @param \phpseclib3\Math\BigInteger $p * @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q * @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g * @param \phpseclib3\Math\BigInteger $g
@ -135,7 +128,6 @@ abstract class PKCS1 extends Progenitor
/** /**
* Convert a public key to the appropriate format * Convert a public key to the appropriate format
* *
* @access public
* @param \phpseclib3\Math\BigInteger $p * @param \phpseclib3\Math\BigInteger $p
* @param \phpseclib3\Math\BigInteger $q * @param \phpseclib3\Math\BigInteger $q
* @param \phpseclib3\Math\BigInteger $g * @param \phpseclib3\Math\BigInteger $g

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,8 +5,6 @@
* *
* PHP version 5 * PHP version 5
* *
* @category Crypt
* @package DSA
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton * @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @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 * Raw DSA Signature Handler
* *
* @package DSA
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
abstract class Raw extends Progenitor abstract class Raw extends Progenitor
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,8 +13,6 @@
* *
* PHP version 5 and 7 * PHP version 5 and 7
* *
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton * @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @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 * Curves over y^2 + x*y = x^3 + a*x^2 + b
* *
* @package Binary
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
class Binary extends Base class Binary extends Base
{ {

View File

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

View File

@ -16,8 +16,6 @@
* *
* PHP version 5 and 7 * PHP version 5 and 7
* *
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2019 Jim Wigginton * @copyright 2019 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @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 * Curves over y^2 = x^3 + a*x + x
* *
* @package EC
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
class Montgomery extends Base class Montgomery extends Base
{ {

View File

@ -13,8 +13,6 @@
* *
* PHP version 5 and 7 * PHP version 5 and 7
* *
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton * @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @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 * Curves over y^2 = x^3 + a*x + b
* *
* @package Prime
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
class Prime extends Base class Prime extends Base
{ {

View File

@ -18,8 +18,6 @@
* *
* PHP version 5 and 7 * PHP version 5 and 7
* *
* @category Crypt
* @package EC
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton * @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @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 * Curves over a*x^2 + y^2 = 1 + d*x^2*y^2
* *
* @package Prime
* @author Jim Wigginton <terrafrost@php.net> * @author Jim Wigginton <terrafrost@php.net>
* @access public
*/ */
class TwistedEdwards extends Base class TwistedEdwards extends Base
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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