On Tue, Oct 15, 2002 at 06:22:37PM +0200, Stefan Berglas wrote: > I have a private key from an external source consisting out of moudulus > n, public exponent e and private exponent d. > For decrypting a message which is encrypted with the corresponding > public key (n,e) I don't need the prime factors p and q. In crypto++ > version 3.2 and 4.0 I could not find an interface in the class > InvertibelRSAFunction and InvertibleTrapdoorFunction to setup the > private key (n,d) and do a raw decryption. The only way to do this is > with modular integer arithmetic. Is that correct ? > Is there a reason why the RSA classes cannot be used with the private > key in the form of (n,d) ?
It's because PKCS #1 does not specify a key format for private key of the form (n,d).
