@@ -269,7 +269,7 @@ |
||
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | /** |
| 272 | - * @param array $recipient |
|
| 272 | + * @param Recipient $recipient |
|
| 273 | 273 | * @param string $cek |
| 274 | 274 | * @param array $additionalHeaders |
| 275 | 275 | * |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @param array $children |
|
| 106 | + * @param ASNObject[] $children |
|
| 107 | 107 | * |
| 108 | 108 | * @return array |
| 109 | 109 | */ |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | /** |
| 269 | - * @param array $children |
|
| 269 | + * @param ASNObject[] $children |
|
| 270 | 270 | * |
| 271 | 271 | * @return bool |
| 272 | 272 | */ |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @param array $children |
|
| 106 | + * @param ASNObject[] $children |
|
| 107 | 107 | * |
| 108 | 108 | * @return array |
| 109 | 109 | */ |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | /** |
| 269 | - * @param array $children |
|
| 269 | + * @param ASNObject[] $children |
|
| 270 | 270 | * |
| 271 | 271 | * @return bool |
| 272 | 272 | */ |
@@ -73,6 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * {@inheritDoc} |
| 75 | 75 | * @see GmpMath::pow() |
| 76 | + * @param integer $exponent |
|
| 76 | 77 | */ |
| 77 | 78 | public function pow(\GMP $base, $exponent) |
| 78 | 79 | { |
@@ -91,6 +92,7 @@ discard block |
||
| 91 | 92 | /** |
| 92 | 93 | * {@inheritDoc} |
| 93 | 94 | * @see GmpMath::rightShift() |
| 95 | + * @param integer $positions |
|
| 94 | 96 | */ |
| 95 | 97 | public function rightShift(\GMP $number, $positions) |
| 96 | 98 | { |
@@ -138,6 +140,7 @@ discard block |
||
| 138 | 140 | /** |
| 139 | 141 | * {@inheritDoc} |
| 140 | 142 | * @see GmpMath::decHex() |
| 143 | + * @param string $dec |
|
| 141 | 144 | */ |
| 142 | 145 | public function decHex($dec) |
| 143 | 146 | { |
@@ -273,6 +276,9 @@ discard block |
||
| 273 | 276 | /** |
| 274 | 277 | * {@inheritDoc} |
| 275 | 278 | * @see GmpMath::baseConvert() |
| 279 | + * @param string $number |
|
| 280 | + * @param integer $from |
|
| 281 | + * @param integer $to |
|
| 276 | 282 | */ |
| 277 | 283 | public function baseConvert($number, $from, $to) |
| 278 | 284 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param \GMP $minuend |
|
| 28 | + * @param resource $minuend |
|
| 29 | 29 | * @param \GMP $subtrahend |
| 30 | 30 | * @return \GMP |
| 31 | 31 | */ |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @param \GMP $dividend |
|
| 49 | - * @param \GMP $divisor |
|
| 48 | + * @param resource $dividend |
|
| 49 | + * @param resource $divisor |
|
| 50 | 50 | * @return \GMP |
| 51 | 51 | */ |
| 52 | 52 | public function div(\GMP $dividend, \GMP $divisor): \GMP |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | - * @param array $base |
|
| 128 | + * @param \GMP[] $base |
|
| 129 | 129 | * @param \GMP $exponent |
| 130 | 130 | * @param array $polymod |
| 131 | 131 | * @param \GMP $p |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | - * @param \GMP $a |
|
| 172 | + * @param resource $a |
|
| 173 | 173 | * @param \GMP $p |
| 174 | 174 | * @return \GMP |
| 175 | 175 | */ |
@@ -305,7 +305,7 @@ |
||
| 305 | 305 | /** |
| 306 | 306 | * @param $a |
| 307 | 307 | * @param $b |
| 308 | - * @param $cond |
|
| 308 | + * @param integer $cond |
|
| 309 | 309 | */ |
| 310 | 310 | public function cswapValue(& $a, & $b, $cond) |
| 311 | 311 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Jose\Component\Core\Util\Ecc\Curves; |
| 4 | 4 | |
| 5 | -use Jose\Component\Core\Util\Ecc\Math\GmpMath; |
|
| 6 | -use Jose\Component\Core\Util\Ecc\Math\MathAdapterFactory; |
|
| 7 | 5 | use Jose\Component\Core\Util\Ecc\Primitives\CurveFp; |
| 8 | 6 | |
| 9 | 7 | final class CurveFactory |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | |
| 26 | 26 | use Jose\Component\Core\Util\Ecc\Math\GmpMath; |
| 27 | 27 | use Jose\Component\Core\Util\Ecc\Math\ModularArithmetic; |
| 28 | -use Jose\Component\Core\Util\Ecc\Random\RandomNumberGenerator; |
|
| 29 | 28 | |
| 30 | 29 | /** |
| 31 | 30 | * This class is a representation of an EC over a field modulo a prime number |