[英]Use SHA256 Signing XML algorithm in .NET Framework 4.0
I am trying to sign an XML EBICS
file with SHA256
algorithm. 我正在尝试使用
SHA256
算法签署XML EBICS
文件。 I can't use the .Net Framework 4.5
in my project. 我不能在我的项目中使用
.Net Framework 4.5
。
In the .NET 4.5
we can write the code below, 在
.NET 4.5
我们可以编写下面的代码,
CryptoConfig.AddAlgorithm(typeof(RSAPKCS1SHA256SignatureDescription), "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");
So I've no idea how I can did it in .Net 4.0
所以我不知道我怎么能在
.Net 4.0
做到这一点
Could you help me please? 请问你能帮帮我吗?
Have a look at CLR Security https://clrsecurity.codeplex.com/wikipage?title=Security.Cryptography.dll&referringTitle=Home 看看CLR安全性https://clrsecurity.codeplex.com/wikipage?title=Security.Cryptography.dll&referringTitle=Home
The RSAPKCS1SHA256SignatureDescription class has been implemented in that assembly, built in .NET 3.5, hence must work in .NET 4.0 RSAPKCS1SHA256SignatureDescription类已在该程序集中实现,内置于.NET 3.5中,因此必须在.NET 4.0中运行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.