CNG, CryptoServiceProvider and Managed implementations of HashAlgorithm

后端 未结 4 1718
不思量自难忘°
不思量自难忘° 2020-12-31 00:02

So I was wondering if there are any major differences between the various implementations of the hash algorithms, take the SHA series of algorithms for example. All of them

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 00:51

    One difference is that the native versions (at least some of them) are FIPS-certified (i.e., approved by the US government), whereas the managed ones are not. If your code happens to be running on a Windows machine that has been configured as "FIPS only", attempts to use the managed versions will fail.

    Most Windows machines are not configured in that way, but if you're deploying to a government- or defense-oriented (or other highly secure) environment you may run into this situation.

    See http://blogs.msdn.com/shawnfa/archive/2005/05/16/417975.aspx.

提交回复
热议问题