Java and .NET interop on (RSA) signatures

前端 未结 1 1303
情深已故
情深已故 2021-02-10 18:54

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:27

    // 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)
提交回复
热议问题