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)
342internal ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
PEWriter\IFileReference.cs (1)
28ImmutableArray<byte> GetHashValue(AssemblyHashAlgorithm algorithmId);
PEWriter\MetadataWriter.cs (1)
2434var 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)
60ImmutableArray<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)
419public AssemblyHashAlgorithm HashAlgorithm 423return AssemblyAlgorithmIdAttributeSetting ?? AssemblyHashAlgorithm.Sha1; 427internal AssemblyHashAlgorithm? AssemblyAlgorithmIdAttributeSetting 431var fieldValue = (AssemblyHashAlgorithm?)null; 2572AssemblyHashAlgorithm algorithmId; 2576algorithmId = (AssemblyHashAlgorithm)value; 2580algorithmId = (AssemblyHashAlgorithm)(uint)value;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12583hashAlgorithm: 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)
48Private 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)
785Public ReadOnly Property HashAlgorithm As AssemblyHashAlgorithm Implements ISourceAssemblySymbolInternal.HashAlgorithm 787Return If(AssemblyAlgorithmIdAttributeSetting, AssemblyHashAlgorithm.Sha1) 791Friend ReadOnly Property AssemblyAlgorithmIdAttributeSetting As AssemblyHashAlgorithm? 793Dim fieldValue As AssemblyHashAlgorithm? = Nothing 1132Dim algorithmId As AssemblyHashAlgorithm 1135algorithmId = CType(value, AssemblyHashAlgorithm) 1137algorithmId = 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)
1907internal AssemblyHashAlgorithm GetHashAlgorithm() 1910return (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)