7 references to HashAlgorithmType
MonoTargetsTasks (7)
EmitBundleTask\EmitBundleBase.cs (1)
122
string resourceDataSymbol = $"bundled_resource_{ToSafeSymbolName(TruncateEncodedHash(Utils.ComputeHashEx(resourcePath, Utils.
HashAlgorithmType
.SHA256, Utils.HashEncodingType.Base64Safe), MaxEncodedHashLength))}";
src\tasks\Common\Utils.cs (6)
253
private static byte[] ComputeHashFromStream(Stream stream,
HashAlgorithmType
algorithm)
255
if (algorithm ==
HashAlgorithmType
.SHA512)
260
else if (algorithm ==
HashAlgorithmType
.SHA384)
265
else if (algorithm ==
HashAlgorithmType
.SHA256)
297
public static string ComputeHashEx(string filepath,
HashAlgorithmType
algorithm =
HashAlgorithmType
.SHA512, HashEncodingType encoding = HashEncodingType.Base64)