| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function getKeyDerivationVectors() |
||
| 16 | { |
||
| 17 | return array_map(function (array $row) { |
||
| 18 | if (isset($row['password_utf8'])) { |
||
| 19 | $password = new Buffer($row['password_utf8']); |
||
| 20 | } else { |
||
| 21 | $password = Buffer::hex($row['password']); |
||
| 22 | } |
||
| 23 | return [$password, Buffer::hex($row['salt']), $row['iterations'], Buffer::hex($row['output'])]; |
||
| 24 | }, $this->getTestVectors()['keyderivation']); |
||
| 25 | } |
||
| 26 | |||
| 40 |