Trying to fix unit tests

This commit is contained in:
Sokolovskyy Roman 2017-12-21 10:17:30 +01:00
parent 62ee1a5747
commit b8d826f04f
2 changed files with 8 additions and 0 deletions

View File

@ -76,6 +76,10 @@ abstract class PuTTY extends Progenitor
}
list($x) = $result;
if (isset($components['comment'])) {
$comment = $components['comment'];
}
return compact('p', 'q', 'g', 'y', 'x', 'comment');
}

View File

@ -84,6 +84,10 @@ abstract class PuTTY extends Progenitor
$temp = $primes[2]->subtract($one);
$exponents[] = $publicExponent->modInverse($temp);
if (isset($components['comment'])) {
$comment = $components['comment'];
}
return compact('publicExponent', 'modulus', 'privateExponent', 'primes', 'coefficients', 'exponents', 'comment', 'isPublicKey');
}