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