符合SignedXml SHA256摘要FIPS [英] SignedXml SHA256 digest FIPS compliant
问题描述
我需要使用FIPS兼容算法来计算签名.我将Reference.DigestMethod设置为http://www.w3.org/2001/04/xmlenc#sha256,但是在启用FIPS算法的情况下,我看到该算法不符合Fips的错误.我已经配置了CryptoConfig(CryptoConfig.AddAlgorithm(typeof(RSAPKCS1SHA256SignatureDescription),
"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");)签名符合FIPS,但引用是由不符合FIPS的SHA256Managed计算的.如何将digestMethod设置为SHA256Cng或SHA256Csp(符合FIPS)?框架4.5.1
Hi, i need compute Signature with FIPS compliant algorithm. I set Reference.DigestMethod to http://www.w3.org/2001/04/xmlenc#sha256, but with FIPS algorith enabled i see error that algorithm is not fips compliant. I have configured CryptoConfig (CryptoConfig.AddAlgorithm(typeof(RSAPKCS1SHA256SignatureDescription),
"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");)Signature is FIPS compliant but reference is computed by SHA256Managed, which is not FIPS compliant. How I can setup digestMethod to SHA256Cng or SHA256Csp (FIPS compliant)? Framework 4.5.1
谢谢大卫
推荐答案
我建议您在以下线程中测试该方法
https: //social.msdn.microsoft.com/Forums/vstudio/zh-CN/6438011b-92fb-4123-a22f-ad071efddf85/xml-digital-signature-with-sha256-算法
I suggest you test the method in the following thread
https://social.msdn.microsoft.com/Forums/vstudio/en-US/6438011b-92fb-4123-a22f-ad071efddf85/xml-digital-signature-with-sha256-algorithm
这篇关于符合SignedXml SHA256摘要FIPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!