71 references to AssemblyHashAlgorithm
Microsoft.CodeAnalysis (28)
CryptographicHashProvider.cs (21)
31internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId) 43case AssemblyHashAlgorithm.None: 44case AssemblyHashAlgorithm.Sha1: 47case AssemblyHashAlgorithm.Sha256: 50case AssemblyHashAlgorithm.Sha384: 53case AssemblyHashAlgorithm.Sha512: 56case AssemblyHashAlgorithm.MD5: 112internal static HashAlgorithm? TryGetAlgorithm(AssemblyHashAlgorithm algorithmId) 116case AssemblyHashAlgorithm.None: 117case AssemblyHashAlgorithm.Sha1: 121case AssemblyHashAlgorithm.Sha256: 124case AssemblyHashAlgorithm.Sha384: 127case AssemblyHashAlgorithm.Sha512: 130case AssemblyHashAlgorithm.MD5: 139internal static bool IsSupportedAlgorithm(AssemblyHashAlgorithm algorithmId) 143case AssemblyHashAlgorithm.None: 144case AssemblyHashAlgorithm.Sha1: 145case AssemblyHashAlgorithm.Sha256: 146case AssemblyHashAlgorithm.Sha384: 147case AssemblyHashAlgorithm.Sha512: 148case AssemblyHashAlgorithm.MD5:
MetadataReader\PEModule.cs (1)
343internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
PEWriter\IFileReference.cs (1)
28ImmutableArray<byte> GetHashValue(AssemblyHashAlgorithm algorithmId);
PEWriter\MetadataWriter.cs (1)
2446var hashAlgorithm = assembly.HashAlgorithm;
ResourceDescription.cs (1)
141ImmutableArray<byte> Cci.IFileReference.GetHashValue(AssemblyHashAlgorithm algorithmId)
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (2)
296private AssemblyHashAlgorithm? _assemblyAlgorithmIdAttributeSetting; 297public AssemblyHashAlgorithm? AssemblyAlgorithmIdAttributeSetting
Symbols\ISourceAssemblySymbolInternal.cs (1)
18AssemblyHashAlgorithm HashAlgorithm { get; }
Microsoft.CodeAnalysis.CSharp (10)
Emitter\Model\ModuleReference.cs (1)
61ImmutableArray<byte> Cci.IFileReference.GetHashValue(AssemblyHashAlgorithm algorithmId)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
529internal override ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
Symbols\ModuleSymbol.cs (1)
327internal virtual ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
Symbols\Source\SourceAssemblySymbol.cs (7)
420public AssemblyHashAlgorithm HashAlgorithm 424return AssemblyAlgorithmIdAttributeSetting ?? AssemblyHashAlgorithm.Sha1; 428internal AssemblyHashAlgorithm? AssemblyAlgorithmIdAttributeSetting 432var fieldValue = (AssemblyHashAlgorithm?)null; 2573AssemblyHashAlgorithm algorithmId; 2577algorithmId = (AssemblyHashAlgorithm)value; 2581algorithmId = (AssemblyHashAlgorithm)(uint)value;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12617hashAlgorithm: AssemblyHashAlgorithm.Sha1);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_Assembly.cs (7)
602Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm); 633Assert.Equal(AssemblyHashAlgorithm.None, assembly.HashAlgorithm); 663Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm); 693Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm); 823Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm); 873VerifyAssemblyTable(comp, r => { Assert.Equal(AssemblyHashAlgorithm.MD5, r.HashAlgorithm); }); 877VerifyAssemblyTable(comp, r => { Assert.Equal(AssemblyHashAlgorithm.None, r.HashAlgorithm); });
Microsoft.CodeAnalysis.VisualBasic (10)
Emit\ModuleReference.vb (1)
49Private Function IFileReferenceGetHashValue(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte) Implements Cci.IFileReference.GetHashValue
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
310Friend Overrides Function GetHash(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte)
Symbols\ModuleSymbol.vb (1)
252Friend Overridable Function GetHash(algorithmId As AssemblyHashAlgorithm) As ImmutableArray(Of Byte)
Symbols\Source\SourceAssemblySymbol.vb (7)
786Public ReadOnly Property HashAlgorithm As AssemblyHashAlgorithm Implements ISourceAssemblySymbolInternal.HashAlgorithm 788Return If(AssemblyAlgorithmIdAttributeSetting, AssemblyHashAlgorithm.Sha1) 792Friend ReadOnly Property AssemblyAlgorithmIdAttributeSetting As AssemblyHashAlgorithm? 794Dim fieldValue As AssemblyHashAlgorithm? = Nothing 1133Dim algorithmId As AssemblyHashAlgorithm 1136algorithmId = CType(value, AssemblyHashAlgorithm) 1138algorithmId = CType(CUInt(value), AssemblyHashAlgorithm)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Attributes\AssemblyAttributes.vb (7)
792Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm) 823Assert.Equal(AssemblyHashAlgorithm.None, assembly.HashAlgorithm) 854Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm) 885Assert.Equal(AssemblyHashAlgorithm.Sha1, assembly.HashAlgorithm) 1024Assert.Equal(AssemblyHashAlgorithm.MD5, assembly.HashAlgorithm) 1080Assert.Equal(AssemblyHashAlgorithm.MD5, r.HashAlgorithm) 1088Assert.Equal(AssemblyHashAlgorithm.None, r.HashAlgorithm)
System.Reflection.Emit (1)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
161hashAlgorithm: (AssemblyHashAlgorithm)_assemblyName.HashAlgorithm
System.Reflection.Metadata (6)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (1)
393AssemblyHashAlgorithm hashAlgorithm)
System\Reflection\Metadata\Internal\Tables.cs (2)
1953internal AssemblyHashAlgorithm GetHashAlgorithm() 1956return (AssemblyHashAlgorithm)this.Block.PeekUInt32(_HashAlgIdOffset);
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
14internal AssemblyName GetAssemblyName(StringHandle nameHandle, Version version, StringHandle cultureHandle, BlobHandle publicKeyOrTokenHandle, AssemblyHashAlgorithm assemblyHashAlgorithm, AssemblyFlags flags)
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
18public AssemblyHashAlgorithm HashAlgorithm
System\Reflection\Metadata\TypeSystem\AssemblyReference.netstandard.cs (1)
10return _reader.GetAssemblyName(Name, Version, Culture, PublicKeyOrToken, AssemblyHashAlgorithm.None, Flags);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
90public static System.Configuration.Assemblies.AssemblyHashAlgorithm ToConfigurationAssemblyHashAlgorithm(this System.Reflection.AssemblyHashAlgorithm srmHash)