未验证 提交 ea1a717f 编写于 作者: J Julien Couvreur 提交者: GitHub

Merge pull request #28861 from github-john-doe/typos

Typos in "SHA1" spelling
...@@ -265,7 +265,7 @@ public Cci.IUnitReference GetUnit(EmitContext context) ...@@ -265,7 +265,7 @@ public Cci.IUnitReference GetUnit(EmitContext context)
internal static string GenerateDataFieldName(ImmutableArray<byte> data) internal static string GenerateDataFieldName(ImmutableArray<byte> data)
{ {
// TODO: replace SAH1 with non-crypto alg: https://github.com/dotnet/roslyn/issues/24737 // TODO: replace SHA1 with non-crypto alg: https://github.com/dotnet/roslyn/issues/24737
var hash = CryptographicHashProvider.ComputeSha1(data); var hash = CryptographicHashProvider.ComputeSha1(data);
char[] c = new char[hash.Length * 2]; char[] c = new char[hash.Length * 2];
int i = 0; int i = 0;
......
...@@ -188,7 +188,7 @@ private static void WriteByteToBlobBuilder(BlobBuilder blobBuilder, int offset, ...@@ -188,7 +188,7 @@ private static void WriteByteToBlobBuilder(BlobBuilder blobBuilder, int offset,
sizeOfHeapReserve: properties.SizeOfHeapReserve, sizeOfHeapReserve: properties.SizeOfHeapReserve,
sizeOfHeapCommit: properties.SizeOfHeapCommit); sizeOfHeapCommit: properties.SizeOfHeapCommit);
// TODO: replace SAH1 with non-crypto alg: https://github.com/dotnet/roslyn/issues/24737 // TODO: replace SHA1 with non-crypto alg: https://github.com/dotnet/roslyn/issues/24737
var peIdProvider = isDeterministic ? var peIdProvider = isDeterministic ?
new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(CryptographicHashProvider.ComputeHash(HashAlgorithmName.SHA1, content))) : new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(CryptographicHashProvider.ComputeHash(HashAlgorithmName.SHA1, content))) :
null; null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册