88 references to AssemblyHashAlgorithm
ILAssembler (2)
EntityRegistry.cs (1)
1480
public
AssemblyHashAlgorithm
HashAlgorithm { get; set; }
GrammarVisitor.cs (1)
718
_entityRegistry.Assembly!.HashAlgorithm = (
AssemblyHashAlgorithm
)VisitInt32(hashAlg).Value;
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
46
_metadataBuilder.AddAssembly(assemblyNameHandle, assemblyName.Version ?? new Version(0, 0, 0, 0), default(StringHandle), publicKey: publicKeyArray != null ? _metadataBuilder.GetOrAddBlob(publicKeyArray) : default(BlobHandle), flags,
AssemblyHashAlgorithm
.None);
ILCompiler.ReadyToRun (29)
Compiler\CryptographicHashProvider.cs (21)
53
internal ImmutableArray<byte> GetHash(
AssemblyHashAlgorithm
algorithmId)
65
case
AssemblyHashAlgorithm
.None:
66
case
AssemblyHashAlgorithm
.Sha1:
69
case
AssemblyHashAlgorithm
.Sha256:
72
case
AssemblyHashAlgorithm
.Sha384:
75
case
AssemblyHashAlgorithm
.Sha512:
78
case
AssemblyHashAlgorithm
.MD5:
132
internal static HashAlgorithm? TryGetAlgorithm(
AssemblyHashAlgorithm
algorithmId)
136
case
AssemblyHashAlgorithm
.None:
137
case
AssemblyHashAlgorithm
.Sha1:
140
case
AssemblyHashAlgorithm
.Sha256:
143
case
AssemblyHashAlgorithm
.Sha384:
146
case
AssemblyHashAlgorithm
.Sha512:
149
case
AssemblyHashAlgorithm
.MD5:
157
internal static bool IsSupportedAlgorithm(
AssemblyHashAlgorithm
algorithmId)
161
case
AssemblyHashAlgorithm
.None:
162
case
AssemblyHashAlgorithm
.Sha1:
163
case
AssemblyHashAlgorithm
.Sha256:
164
case
AssemblyHashAlgorithm
.Sha384:
165
case
AssemblyHashAlgorithm
.Sha512:
166
case
AssemblyHashAlgorithm
.MD5:
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (3)
93
AssemblyHashAlgorithm
hashAlgorithm =
AssemblyHashAlgorithm
.None;
102
hashAlgorithm =
AssemblyHashAlgorithm
.Sha1;
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
46
_metadataBuilder.AddAssembly(assemblyNameHandle, assemblyName.Version ?? new Version(0, 0, 0, 0), default(StringHandle), publicKey: publicKeyArray != null ? _metadataBuilder.GetOrAddBlob(publicKeyArray) : default(BlobHandle), flags,
AssemblyHashAlgorithm
.None);
TypeSystem\Mutable\MutableModule.cs (4)
82
AssemblyHashAlgorithm
hashAlgorithm,
152
AssemblyHashAlgorithm
_hashAlgorithm;
155
public Cache(MutableModule module, string assemblyName, AssemblyFlags assemblyFlags, byte[] publicKeyArray, Version version,
AssemblyHashAlgorithm
hashAlgorithm, Func<ModuleDesc, int> moduleToIndex)
292
AssemblyHashAlgorithm
hashAlgorithm,
Microsoft.CodeAnalysis (28)
CryptographicHashProvider.cs (21)
31
internal ImmutableArray<byte> GetHash(
AssemblyHashAlgorithm
algorithmId)
43
case
AssemblyHashAlgorithm
.None:
44
case
AssemblyHashAlgorithm
.Sha1:
47
case
AssemblyHashAlgorithm
.Sha256:
50
case
AssemblyHashAlgorithm
.Sha384:
53
case
AssemblyHashAlgorithm
.Sha512:
56
case
AssemblyHashAlgorithm
.MD5:
130
internal static HashAlgorithm? TryGetAlgorithm(
AssemblyHashAlgorithm
algorithmId)
134
case
AssemblyHashAlgorithm
.None:
135
case
AssemblyHashAlgorithm
.Sha1:
139
case
AssemblyHashAlgorithm
.Sha256:
142
case
AssemblyHashAlgorithm
.Sha384:
145
case
AssemblyHashAlgorithm
.Sha512:
148
case
AssemblyHashAlgorithm
.MD5:
157
internal static bool IsSupportedAlgorithm(
AssemblyHashAlgorithm
algorithmId)
161
case
AssemblyHashAlgorithm
.None:
162
case
AssemblyHashAlgorithm
.Sha1:
163
case
AssemblyHashAlgorithm
.Sha256:
164
case
AssemblyHashAlgorithm
.Sha384:
165
case
AssemblyHashAlgorithm
.Sha512:
166
case
AssemblyHashAlgorithm
.MD5:
MetadataReader\PEModule.cs (1)
343
internal ImmutableArray<byte> GetHash(
AssemblyHashAlgorithm
algorithmId)
PEWriter\IFileReference.cs (1)
28
ImmutableArray<byte> GetHashValue(
AssemblyHashAlgorithm
algorithmId);
PEWriter\MetadataWriter.cs (1)
2451
var
hashAlgorithm = assembly.HashAlgorithm;
ResourceDescription.cs (1)
141
ImmutableArray<byte> Cci.IFileReference.GetHashValue(
AssemblyHashAlgorithm
algorithmId)
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (2)
296
private
AssemblyHashAlgorithm
? _assemblyAlgorithmIdAttributeSetting;
297
public
AssemblyHashAlgorithm
? AssemblyAlgorithmIdAttributeSetting
Symbols\ISourceAssemblySymbolInternal.cs (1)
18
AssemblyHashAlgorithm
HashAlgorithm { get; }
Microsoft.CodeAnalysis.CSharp (10)
Emitter\Model\ModuleReference.cs (1)
61
ImmutableArray<byte> Cci.IFileReference.GetHashValue(
AssemblyHashAlgorithm
algorithmId)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
418
internal override ImmutableArray<byte> GetHash(
AssemblyHashAlgorithm
algorithmId)
Symbols\ModuleSymbol.cs (1)
334
internal virtual ImmutableArray<byte> GetHash(
AssemblyHashAlgorithm
algorithmId)
Symbols\Source\SourceAssemblySymbol.cs (7)
420
public
AssemblyHashAlgorithm
HashAlgorithm
424
return AssemblyAlgorithmIdAttributeSetting ??
AssemblyHashAlgorithm
.Sha1;
428
internal
AssemblyHashAlgorithm
? AssemblyAlgorithmIdAttributeSetting
432
var fieldValue = (
AssemblyHashAlgorithm
?)null;
2594
AssemblyHashAlgorithm
algorithmId;
2598
algorithmId = (
AssemblyHashAlgorithm
)value;
2602
algorithmId = (
AssemblyHashAlgorithm
)(uint)value;
Microsoft.CodeAnalysis.VisualBasic (10)
Emit\ModuleReference.vb (1)
49
Private Function IFileReferenceGetHashValue(algorithmId As
AssemblyHashAlgorithm
) As ImmutableArray(Of Byte) Implements Cci.IFileReference.GetHashValue
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
310
Friend Overrides Function GetHash(algorithmId As
AssemblyHashAlgorithm
) As ImmutableArray(Of Byte)
Symbols\ModuleSymbol.vb (1)
252
Friend Overridable Function GetHash(algorithmId As
AssemblyHashAlgorithm
) As ImmutableArray(Of Byte)
Symbols\Source\SourceAssemblySymbol.vb (7)
780
Public ReadOnly Property HashAlgorithm As
AssemblyHashAlgorithm
Implements ISourceAssemblySymbolInternal.HashAlgorithm
782
Return If(AssemblyAlgorithmIdAttributeSetting,
AssemblyHashAlgorithm
.Sha1)
786
Friend ReadOnly Property AssemblyAlgorithmIdAttributeSetting As
AssemblyHashAlgorithm
?
788
Dim fieldValue As
AssemblyHashAlgorithm
? = Nothing
1125
Dim algorithmId As
AssemblyHashAlgorithm
1128
algorithmId = CType(value,
AssemblyHashAlgorithm
)
1130
algorithmId = CType(CUInt(value),
AssemblyHashAlgorithm
)
System.Reflection.Emit (1)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
161
hashAlgorithm: (
AssemblyHashAlgorithm
)_assemblyName.HashAlgorithm
System.Reflection.Metadata (6)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (1)
393
AssemblyHashAlgorithm
hashAlgorithm)
System\Reflection\Metadata\Internal\Tables.cs (2)
1953
internal
AssemblyHashAlgorithm
GetHashAlgorithm()
1956
return (
AssemblyHashAlgorithm
)this.Block.PeekUInt32(_HashAlgIdOffset);
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
15
internal AssemblyName GetAssemblyName(StringHandle nameHandle, Version version, StringHandle cultureHandle, BlobHandle publicKeyOrTokenHandle,
AssemblyHashAlgorithm
assemblyHashAlgorithm, AssemblyFlags flags)
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
18
public
AssemblyHashAlgorithm
HashAlgorithm
System\Reflection\Metadata\TypeSystem\AssemblyReference.netstandard.cs (1)
13
return _reader.GetAssemblyName(Name, Version, Culture, PublicKeyOrToken,
AssemblyHashAlgorithm
.None, Flags);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
90
public static System.Configuration.Assemblies.AssemblyHashAlgorithm ToConfigurationAssemblyHashAlgorithm(this System.Reflection.
AssemblyHashAlgorithm
srmHash)