Jason Smith

Jason Smith

  • NA
  • 10
  • 0

RSAPKCS1SignatureFormatter and Digital Signatures

Aug 6 2007 12:16 PM

Hi, I have a couple of questions regarding the RSAPKCS1SignatureFormatter.

I have created a keypair using the SDK StrongName Utility and converted the keypair to XML format.

I am under the impression that the RSAPKCS1SignatureFormatter.CreateSignature() function would use the private key for encryption as opposed to the public key used in general RSA.

However, i have found something strange, i pasted the wrong key into the private exponent ( D ), and yet having corrected this, i STILL get the same signature as before? In fact after this discovery i found i could change the exponent D to anything i wanted and the signature was unaffected.

This leaves me unsure what keys are being used for encryption? does the function not need the private exponent to verify or create signatures? and does it just rely on the primes, coeff, InverseQ and the modulus etc?

Any information or suggestions are appreciated.

Many Thanks