I tried to search the forum but didn't find what I needed.We have an Asp.Net web app that we want to be FIPS compliant. After some research it seems that SHA512Cng class is Fips compliant and can be used as a hash.Below is the code:\[code\] Dim sha512hash As SHA512Cng = New SHA512Cng() Dim data As Byte() = sha512hash.ComputeHash(System.Text.Encoding.UTF8.GetBytes(SomeClearText)) Dim i As Integer For i = 0 To data.Length - 1 sBuilder.Append(data(i).ToString("x2")) Next i Return sBuilder.ToString()\[/code\]At compile time we got this error:
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.In the web.config we have added \[code\]<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>\[/code\]And \[code\]<enforceFIPSPolicy enabled="true" /> \[/code\]Both "true" and "false" have been tried, no luck.So what is the problem here? Thanks in advance.
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.In the web.config we have added \[code\]<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>\[/code\]And \[code\]<enforceFIPSPolicy enabled="true" /> \[/code\]Both "true" and "false" have been tried, no luck.So what is the problem here? Thanks in advance.