user2707674
user2707674

Reputation: 333

C# SignatureDescription for SHA256

I am working on a c# signing application. At one point, a System.Security.Cryptography.SignatureDescription needs to be obtained. Does anyone know why description1 below contains a valid structure, while description2 is null? Changing from .Net3.5 to .Net4.5.1 did not help.

SignatureDescription description1 = CryptoConfig.CreateFromName("http://www.w3.org/2000/09/xmldsig#rsa-sha1") as SignatureDescription;

SignatureDescription description2 = CryptoConfig.CreateFromName("http://www.w3.org/2001/04/xmldsig-more#rsa-sha256") as SignatureDescription;

It didn't work for SHA512 either. URIs obtained from here.

Upvotes: 3

Views: 3540

Answers (1)

user2707674
user2707674

Reputation: 333

Apparently RSA-SHA256 is not supported in .Net 3.5. However there's a workaround which can be found here: http://social.msdn.microsoft.com/Forums/vstudio/en-US/6438011b-92fb-4123-a22f-ad071efddf85/xml-digital-signature-with-sha256-algorithm

Upvotes: 1

Related Questions