Java Digital Signature different to C#

后端 未结 2 810
醉梦人生
醉梦人生 2021-01-03 02:31

I have the following c# code to generate a digital signature from a private key:

    static string Sign(string text, string certificate)
    {

        X509C         


        
2条回答
  •  死守一世寂寞
    2021-01-03 03:19

    The Java sign method does hashing and signing based on the algorithms provided in getInstance method of the Signature class, so basically you were hashing twice in Java.

提交回复
热议问题