开发者

Digital Signature using CAPICOM needs to be 1024 bits long

开发者 https://www.devze.com 2022-12-30 17:46 出处:网络
We are trying to sign documents using RSA-SHA1 hash. We have tried using the Crypt32 lib and we are getting signature (DS) length of 1024 bits (172 bytes after BASE-64) which is proper.

We are trying to sign documents using RSA-SHA1 hash. We have tried using the Crypt32 lib and we are getting signature (DS) length of 1024 bits (172 bytes after BASE-64) which is proper. When we try to do the same with CAPICOM, the length comes to be 2292 bytes (BASE-64). How can we have DS lengt开发者_如何学JAVAh of 172 while using CAPICOM?


it could be one of two things. because capicom treats the data as unicode, or because capicom ds includes the signer certificate.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号