You've already forked linux-packaging-mono
Imported Upstream version 6.6.0.108
Former-commit-id: 00c6fff7917ab7dddc0c67044b046850c2283096
This commit is contained in:
parent
4c26f54a2f
commit
9050bbfc26
13
external/ikvm/reflect/AssemblyName.cs
vendored
13
external/ikvm/reflect/AssemblyName.cs
vendored
@@ -402,13 +402,16 @@ namespace IKVM.Reflection
|
||||
{
|
||||
return publicKey;
|
||||
}
|
||||
byte[] hash = new SHA1Managed().ComputeHash(publicKey);
|
||||
byte[] token = new byte[8];
|
||||
for (int i = 0; i < token.Length; i++)
|
||||
using (var sha1 = SHA1.Create())
|
||||
{
|
||||
token[i] = hash[hash.Length - 1 - i];
|
||||
byte[] hash = sha1.ComputeHash(publicKey);
|
||||
byte[] token = new byte[8];
|
||||
for (int i = 0; i < token.Length; i++)
|
||||
{
|
||||
token[i] = hash[hash.Length - 1 - i];
|
||||
}
|
||||
return token;
|
||||
}
|
||||
return token;
|
||||
}
|
||||
|
||||
internal static string ComputePublicKeyToken(string publicKey)
|
||||
|
||||
Reference in New Issue
Block a user