| 1 | <?php |
||
| 8 | class KeyDerivation |
||
| 9 | { |
||
| 10 | const HASHER = 'sha512'; |
||
| 11 | const DEFAULT_ITERATIONS = 35000; |
||
| 12 | const KEYLEN_BITS = 256; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param BufferInterface $password |
||
| 16 | * @param BufferInterface $salt |
||
| 17 | * @param int $iterations |
||
| 18 | * @return BufferInterface |
||
| 19 | */ |
||
| 20 | public static function compute(BufferInterface $password, BufferInterface $salt, $iterations) { |
||
| 39 | } |
||
| 40 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.