哪个.NET SHA1类符合FIPS? [英] Which .NET SHA1 class is FIPS compliant?
问题描述
我在代码中使用了 SHA1Managed
类,但是当我在特定计算机上运行它时,这会导致问题.我收到此异常:
I'm using the SHA1Managed
class in my code, but this causes a problem when I run it on a particular machine. I get this exception:
System.InvalidOperationException:此实现不属于Windows Platform FIPS验证的加密算法.
System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
此问题是由 SHA1Managed
引起的,该代码不符合FIPS.
The problem is caused by SHA1Managed
, which is not FIPS compliant.
哪些.NET SHA1类符合FIPS?
Which .NET SHA1 class is FIPS complient?
(我想我可以尝试所有方法,但是我无法轻松访问问题机器,而且我怀疑我将无法在开发机器上启用FIPS.而且我很懒)
(I could just try them all out, I guess, but I don't have easy access to the problem machine, and I suspect I won't be able to enable FIPS on my development machine. And I'm lazy.)
推荐答案
您可能会发现此博客文章很有帮助. HMACSHA1 符合FIPS.
You might find this blog post helpful. HMACSHA1 is FIPS compliant.
这篇关于哪个.NET SHA1类符合FIPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!