Java and .NET interop on (RSA) signatures

前端 未结 1 725
我在风中等你
我在风中等你 2021-02-10 18:53

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#):

<
1条回答
  •  囚心锁ツ
    2021-02-10 19:38

    // 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.

    0 讨论(0)
提交回复
热议问题