[求助C#大牛] 下面的函数使用哪些API可以实现
数字证书加密:
static byte[] GenerateSignedMessage(byte[] uniqueDeviceNumber, X509Certificate2 oemsigningCert)
{
ContentInfo contentInfo = new ContentInfo(uniqueDeviceNumber);
SignedCms signedCms = new SignedCms(contentInfo, true);
CmsSigner signer = new CmsSigner(oemsigningCert);
signedCms.ComputeSignature(signer);
return signedCms.Encode();
}
上面红色部分,怎么使用VC的API来实现呢?
static byte[] GenerateSignedMessage(byte[] uniqueDeviceNumber, X509Certificate2 oemsigningCert)
{
ContentInfo contentInfo = new ContentInfo(uniqueDeviceNumber);
SignedCms signedCms = new SignedCms(contentInfo, true);
CmsSigner signer = new CmsSigner(oemsigningCert);
signedCms.ComputeSignature(signer);
return signedCms.Encode();
}
上面红色部分,怎么使用VC的API来实现呢?
...全文
相关推荐
C#中调用API,介绍API的使用
C#中调用API C#中调用API C#中调用API C#中调用API
C# 如何使用系统API函数的实例
C# 如何使用系统API函数的实例,C# 如何使用系统API函数的实例,C# 如何使用系统API函数的实例。
C#中使用API函数ShellExecute源码
Crack8_编程小组[K.8] QQ吻 欢迎您 Blog http://qqhack8.blog.163.com
C# API函数查询工具
C# API函数查询工具 C# API函数查询工具
C#调用api接口
API函数是构筑Windows应用程序的基石,是Windows编程的必备利器。每一种Windows应用程序开发工具都提供了间接或直接调用了Windows API函数的方法


