mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
Trying to fix unit tests
This commit is contained in:
parent
62ee1a5747
commit
b8d826f04f
@ -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');
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user