I\'m signing some data on a .net-based smartcard and trying to verify that signature in a java environment - but without success.
Smartcard (c#):
// In a different method, rsaParams.Exponent and rsaParams.Modulus are set
To set the private exponent in an RSA key, you should use RSAParameters.D. RSAParameters.Exponent is for the public exponent.
RSAParameters.Exponent