Skip to content

Commit

Permalink
These coefficients go in the other order
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Jul 27, 2016
1 parent 4531815 commit 741fec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/keygen.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
'n' => $rsa->modulus->toBytes(),
'e' => $rsa->publicExponent->toBytes(),
'd' => $rsa->exponent->toBytes(),
'p' => $rsa->primes[1]->toBytes(),
'q' => $rsa->primes[2]->toBytes(),
'p' => $rsa->primes[2]->toBytes(),
'q' => $rsa->primes[1]->toBytes(),
'u' => $rsa->coefficients[2]->toBytes()
));

Expand Down

0 comments on commit 741fec2

Please sign in to comment.