CardSignData被称为两次 [英] CardSignData Called Twice

查看:156
本文介绍了CardSignData被称为两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


当我尝试使用任何加密API应用程序签名或使用"certutil -scinfo"时,会调用两次CardSignData()。对CardSignData()的第一次调用在智能卡读卡器中成功,并且签名被返回给CSP。


我想知道这是否是预期的行为。为什么基本CSP会执行两次私钥操作?


任何人都可以向我提供信息吗?



问候,


Madhukar

解决方案

嗨Madhukar,


你还面临上述问题吗?似乎第一次调用用于计算要签名的数据所需的大小,然后通过初始化内存,您将能够生成签名数据。


如果需要其他信息,请告诉我?或发布你的代码。



谢谢,


Rohan Mohite。


Hello,

When I try to sign using any Crypto API app or use "certutil -scinfo", CardSignData() is called twice. The first call to CardSignData() was successful in smart card mindriver and signature was returned to CSP.

I would like to know if this is the expected behavior. Why would the base CSP perform the private key operation twice?

Can any one provide me the information?

Regards,

Madhukar

解决方案

Hi Madhukar,

Still you are facing above issue? It seems 1st call is used to calculate size required to data to be signed and then by initializing memory you will able to generate signed data.

let me know in case additional information is required? or do post your code.

Thanks,

Rohan Mohite.


这篇关于CardSignData被称为两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆