mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
make more use of stream.CopyTo on (de)compressors, plus several cosmetics
This commit is contained in:
@@ -363,11 +363,7 @@ namespace OpenSim.Services.FSAssetService
|
||||
|
||||
string GetSHA256Hash(byte[] data)
|
||||
{
|
||||
byte[] hash;
|
||||
using (SHA256 sha = SHA256.Create())
|
||||
hash = sha.ComputeHash(data);
|
||||
|
||||
return BitConverter.ToString(hash).Replace("-", String.Empty);
|
||||
return Util.SHA256Hash(data);
|
||||
}
|
||||
|
||||
public string HashToPath(string hash)
|
||||
|
||||
Reference in New Issue
Block a user