RSA parameters p/q values

Hi there I'm working on a project which involves digital signatures.

I take custom made key files and import modulus public and private exponent on RSAParameters.With this info I can encrypt data without any problem

Unforunately when I call the sign method I get an exception about including the private part of the key that means the P/Q/DP/DQ values of the keys have to be entered too.

Anyway how can I calculate the P and Q values given that the only info I have about the private key is the D parameter and the exponent and modulus of course.

Please help me

Thank you in advance


Answer this question

RSA parameters p/q values