views:

77

answers:

1

How can I use C# on a FIPS-compliant WinXP SP2 box to uniquely hash the contents of a given file? I'm not concerned about performance (yet?).

Hopefully someone can point out an exception to the "rule", but it seems that the "*ServiceProvider" classes are FIPS-compliant and unavailable on WinXP, while the "*Managed" classes are available on WinXP and not FIPS-compliant.

And MD5 is out because it's not reliably unique (yes, even that small likelihood is unacceptable for my project).

A: 

It seems these are fips-compliant:

HMACSHA1, MACTripleDES, and SHA1CryptoServiceProvider

ref: http://blog.aggregatedintelligence.com/2007/10/fips-validated-cryptographic-algorithms.html

zerrias