override MD5, so compatible with FIPS

This commit is contained in:
Gang Zhuo
2015-11-23 23:52:54 +08:00
parent 1097d4fc5b
commit dd0d047402
7 changed files with 88 additions and 5 deletions
@@ -60,7 +60,7 @@ namespace Shadowsocks.Encryption
realkey = new byte[keyLen];
Array.Copy(_key, 0, temp, 0, keyLen);
Array.Copy(iv, 0, temp, keyLen, ivLen);
realkey = MD5.Create().ComputeHash(temp);
realkey = MbedTLS.MD5(temp);
}
else
{