符合SignedXml SHA256摘要FIPS [英] SignedXml SHA256 digest FIPS compliant

查看:105
本文介绍了符合SignedXml SHA256摘要FIPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用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屋!

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