32 references to Sha256
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\AdditionalTextExtensions.cs (1)
15private static readonly SourceText s_emptySourceText = SourceText.From("", s_utf8bom, SourceHashAlgorithm.Sha256);
Microsoft.CodeAnalysis (9)
CryptographicHashProvider.cs (3)
72case SourceHashAlgorithm.Sha256: 94case SourceHashAlgorithm.Sha256: 116case SourceHashAlgorithm.Sha256:
Text\SourceHashAlgorithms.cs (6)
16public const SourceHashAlgorithm Default = SourceHashAlgorithm.Sha256; 34SourceHashAlgorithm.Sha256 => true, 44SourceHashAlgorithm.Sha256 => s_guidSha256, 51=> (guid == s_guidSha256) ? SourceHashAlgorithm.Sha256 : 63SourceHashAlgorithm.Sha256 => SHA256.Create(), 85algorithm = SourceHashAlgorithm.Sha256;
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\AdditionalTextExtensions.cs (1)
15private static readonly SourceText s_emptySourceText = SourceText.From("", s_utf8bom, SourceHashAlgorithm.Sha256);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\AdditionalTextExtensions.cs (1)
15private static readonly SourceText s_emptySourceText = SourceText.From("", s_utf8bom, SourceHashAlgorithm.Sha256);
Microsoft.CodeAnalysis.Razor.Compiler (8)
Language\DefaultRazorCSharpLoweringPhase.cs (1)
88if (algorithm == CodeAnalysis.Text.SourceHashAlgorithm.Sha256)
Language\Legacy\SeekableTextReader.cs (1)
19public SeekableTextReader(string source, string filePath) : this(SourceText.From(source, checksumAlgorithm: SourceHashAlgorithm.Sha256), filePath)
Language\RazorSourceDocument.cs (6)
66var sourceText = SourceText.From(stream, checksumAlgorithm: SourceHashAlgorithm.Sha256); 90var sourceText = SourceText.From(stream, encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256); 118var sourceText = SourceText.From(stream, encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256); 153var sourceText = SourceText.From(stream, checksumAlgorithm: SourceHashAlgorithm.Sha256); 218var sourceText = SourceText.From(content, encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256); 246var sourceText = SourceText.From(content, encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
191: hashAlgorithmGuid == HashAlgorithmSha256 ? SourceHashAlgorithm.Sha256
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
AbstractResxGenerator.cs (3)
252var errorText = SourceText.From(text, Encoding.UTF8, SourceHashAlgorithm.Sha256); 392OutputText = SourceText.From(result, Encoding.UTF8, SourceHashAlgorithm.Sha256); 735OutputText = SourceText.From(result, Encoding.UTF8, SourceHashAlgorithm.Sha256);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\AdditionalTextExtensions.cs (1)
15private static readonly SourceText s_emptySourceText = SourceText.From("", s_utf8bom, SourceHashAlgorithm.Sha256);
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Compilers\Core\Portable\Text\SourceHashAlgorithms.cs (6)
16public const SourceHashAlgorithm Default = SourceHashAlgorithm.Sha256; 34SourceHashAlgorithm.Sha256 => true, 44SourceHashAlgorithm.Sha256 => s_guidSha256, 51=> (guid == s_guidSha256) ? SourceHashAlgorithm.Sha256 : 63SourceHashAlgorithm.Sha256 => SHA256.Create(), 85algorithm = SourceHashAlgorithm.Sha256;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\AdditionalTextExtensions.cs (1)
15private static readonly SourceText s_emptySourceText = SourceText.From("", s_utf8bom, SourceHashAlgorithm.Sha256);