1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 08:39:43 +01:00

Fix phpdoc issues reported by Doctum

This commit is contained in:
William Desportes 2020-09-12 10:14:54 +02:00
parent 480af6b980
commit 5711e7fbe4
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
8 changed files with 38 additions and 6 deletions

View File

@ -289,7 +289,22 @@ class ChaCha20 extends Salsa20
/** /**
* The doubleround function * The doubleround function
* *
* @param int $x0...$x16 * @param int $x0 (by reference)
* @param int $x1 (by reference)
* @param int $x2 (by reference)
* @param int $x3 (by reference)
* @param int $x4 (by reference)
* @param int $x5 (by reference)
* @param int $x6 (by reference)
* @param int $x7 (by reference)
* @param int $x8 (by reference)
* @param int $x9 (by reference)
* @param int $x10 (by reference)
* @param int $x11 (by reference)
* @param int $x12 (by reference)
* @param int $x13 (by reference)
* @param int $x14 (by reference)
* @param int $x15 (by reference)
*/ */
protected static function doubleRound(&$x0, &$x1, &$x2, &$x3, &$x4, &$x5, &$x6, &$x7, &$x8, &$x9, &$x10, &$x11, &$x12, &$x13, &$x14, &$x15) protected static function doubleRound(&$x0, &$x1, &$x2, &$x3, &$x4, &$x5, &$x6, &$x7, &$x8, &$x9, &$x10, &$x11, &$x12, &$x13, &$x14, &$x15)
{ {

View File

@ -183,8 +183,8 @@ abstract class AsymmetricKey
/** /**
* Load the key, assuming a specific format * Load the key, assuming a specific format
* *
* @param string $key
* @param string $type * @param string $type
* @param string $key
* @param string $password optional * @param string $password optional
* @return AsymmetricKey * @return AsymmetricKey
*/ */

View File

@ -617,6 +617,7 @@ abstract class PKCS8 extends PKCS
* @access public * @access public
* @param string $key * @param string $key
* @param mixed $params * @param mixed $params
* @param string $oid
* @return string * @return string
*/ */
protected static function wrapPublicKey($key, $params, $oid = null) protected static function wrapPublicKey($key, $params, $oid = null)

View File

@ -110,8 +110,8 @@ abstract class OpenSSH extends Progenitor
* @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
* @param \phpseclib3\Math\BigInteger $x
* @param \phpseclib3\Math\BigInteger $y * @param \phpseclib3\Math\BigInteger $y
* @param \phpseclib3\Math\BigInteger $x
* @param string $password optional * @param string $password optional
* @param array $options optional * @param array $options optional
* @return string * @return string

View File

@ -110,8 +110,8 @@ abstract class PKCS1 extends Progenitor
* @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
* @param \phpseclib3\Math\BigInteger $x
* @param \phpseclib3\Math\BigInteger $y * @param \phpseclib3\Math\BigInteger $y
* @param \phpseclib3\Math\BigInteger $x
* @param string $password optional * @param string $password optional
* @param array $options optional * @param array $options optional
* @return string * @return string

View File

@ -125,8 +125,8 @@ abstract class PKCS8 extends Progenitor
* @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
* @param \phpseclib3\Math\BigInteger $x
* @param \phpseclib3\Math\BigInteger $y * @param \phpseclib3\Math\BigInteger $y
* @param \phpseclib3\Math\BigInteger $x
* @param string $password optional * @param string $password optional
* @param array $options optional * @param array $options optional
* @return string * @return string

View File

@ -434,7 +434,22 @@ class Salsa20 extends StreamCipher
/** /**
* The doubleround function * The doubleround function
* *
* @param int $x0...$x16 * @param int $x0 (by reference)
* @param int $x1 (by reference)
* @param int $x2 (by reference)
* @param int $x3 (by reference)
* @param int $x4 (by reference)
* @param int $x5 (by reference)
* @param int $x6 (by reference)
* @param int $x7 (by reference)
* @param int $x8 (by reference)
* @param int $x9 (by reference)
* @param int $x10 (by reference)
* @param int $x11 (by reference)
* @param int $x12 (by reference)
* @param int $x13 (by reference)
* @param int $x14 (by reference)
* @param int $x15 (by reference)
*/ */
protected static function doubleRound(&$x0, &$x1, &$x2, &$x3, &$x4, &$x5, &$x6, &$x7, &$x8, &$x9, &$x10, &$x11, &$x12, &$x13, &$x14, &$x15) protected static function doubleRound(&$x0, &$x1, &$x2, &$x3, &$x4, &$x5, &$x6, &$x7, &$x8, &$x9, &$x10, &$x11, &$x12, &$x13, &$x14, &$x15)
{ {

View File

@ -1092,6 +1092,7 @@ abstract class Engine implements \Serializable
* Calculates the greatest common divisor and Bezout's identity. * Calculates the greatest common divisor and Bezout's identity.
* *
* @param Engine $n * @param Engine $n
* @param Engine $stop (optional)
* @return Engine * @return Engine
*/ */
protected function extendedGCDHelper(Engine $n, Engine $stop = null) protected function extendedGCDHelper(Engine $n, Engine $stop = null)