These coefficients go in the other order
This commit is contained in:
parent
4531815ef2
commit
741fec24a6
@ -11,8 +11,8 @@ $nkey = new OpenPGP_SecretKeyPacket(array(
|
|||||||
'n' => $rsa->modulus->toBytes(),
|
'n' => $rsa->modulus->toBytes(),
|
||||||
'e' => $rsa->publicExponent->toBytes(),
|
'e' => $rsa->publicExponent->toBytes(),
|
||||||
'd' => $rsa->exponent->toBytes(),
|
'd' => $rsa->exponent->toBytes(),
|
||||||
'p' => $rsa->primes[1]->toBytes(),
|
'p' => $rsa->primes[2]->toBytes(),
|
||||||
'q' => $rsa->primes[2]->toBytes(),
|
'q' => $rsa->primes[1]->toBytes(),
|
||||||
'u' => $rsa->coefficients[2]->toBytes()
|
'u' => $rsa->coefficients[2]->toBytes()
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user