2 types derived from CryptographicHashProvider
Microsoft.CodeAnalysis (2)
MetadataReader\PEModule.cs (1)
167
private sealed class PEHashProvider :
CryptographicHashProvider
ResourceDescription.cs (1)
100
private sealed class ResourceHashProvider :
CryptographicHashProvider
12 references to CryptographicHashProvider
Microsoft.CodeAnalysis (12)
CodeGen\PrivateImplementationDetails.cs (2)
454
ImmutableArray<byte> hash =
CryptographicHashProvider
.ComputeSourceHash(data);
460
ImmutableArray<byte> hash =
CryptographicHashProvider
.ComputeSourceHash(constants);
MetadataReader\PEModule.cs (1)
95
private readonly
CryptographicHashProvider
_hashesOpt;
MetadataReference\AssemblyIdentity.cs (2)
434
var hash =
CryptographicHashProvider
.ComputeSha1(publicKey);
437
Debug.Assert(hash.Length ==
CryptographicHashProvider
.Sha1HashSize);
NativePdbWriter\PdbWriter.cs (1)
568
contentId = BlobContentId.FromHash(
CryptographicHashProvider
.ComputeHash(_hashAlgorithmNameOpt, _symWriter.GetUnderlyingData()));
PEWriter\PeWriter.cs (2)
192
new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(
CryptographicHashProvider
.ComputeSourceHash(content))) :
207
new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(portablePdbContentHash =
CryptographicHashProvider
.ComputeHash(context.Module.PdbChecksumAlgorithm, content))) :
ResourceDescription.cs (1)
25
private readonly
CryptographicHashProvider
_hashes;
Text\SourceText.cs (3)
54
if (!checksum.IsDefault && checksum.Length !=
CryptographicHashProvider
.GetHashSize(checksumAlgorithm))
685
using (var algorithm =
CryptographicHashProvider
.TryGetAlgorithm(algorithmId))
694
using (var algorithm =
CryptographicHashProvider
.TryGetAlgorithm(algorithmId))