64 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: 130internal static HashAlgorithm? TryGetAlgorithm(AssemblyHashAlgorithm algorithmId) 134case AssemblyHashAlgorithm.None: 135case AssemblyHashAlgorithm.Sha1: 139case AssemblyHashAlgorithm.Sha256: 142case AssemblyHashAlgorithm.Sha384: 145case AssemblyHashAlgorithm.Sha512: 148case AssemblyHashAlgorithm.MD5: 157internal static bool IsSupportedAlgorithm(AssemblyHashAlgorithm algorithmId) 161case AssemblyHashAlgorithm.None: 162case AssemblyHashAlgorithm.Sha1: 163case AssemblyHashAlgorithm.Sha256: 164case AssemblyHashAlgorithm.Sha384: 165case AssemblyHashAlgorithm.Sha512: 166case 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)
2447var 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)
418internal override ImmutableArray<byte> GetHash(AssemblyHashAlgorithm algorithmId)
Symbols\ModuleSymbol.cs (1)
334internal 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; 2575AssemblyHashAlgorithm algorithmId; 2579algorithmId = (AssemblyHashAlgorithm)value; 2583algorithmId = (AssemblyHashAlgorithm)(uint)value;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12610hashAlgorithm: 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)
780Public ReadOnly Property HashAlgorithm As AssemblyHashAlgorithm Implements ISourceAssemblySymbolInternal.HashAlgorithm 782Return If(AssemblyAlgorithmIdAttributeSetting, AssemblyHashAlgorithm.Sha1) 786Friend ReadOnly Property AssemblyAlgorithmIdAttributeSetting As AssemblyHashAlgorithm? 788Dim fieldValue As AssemblyHashAlgorithm? = Nothing 1127Dim algorithmId As AssemblyHashAlgorithm 1130algorithmId = CType(value, AssemblyHashAlgorithm) 1132algorithmId = CType(CUInt(value), AssemblyHashAlgorithm)
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)
15internal 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)
13return _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)