/
StrongNameProvider.cs
40 lines (33 loc) · 1.49 KB
/
StrongNameProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Reflection.Metadata;
using System.Security.Cryptography;
using Microsoft.Cci;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Provides strong name and signs source assemblies.
/// </summary>
public abstract class StrongNameProvider
{
protected StrongNameProvider()
{
}
public abstract override int GetHashCode();
public abstract override bool Equals(object? other);
internal abstract StrongNameFileSystem FileSystem { get; }
/// <summary>
/// Signs the <paramref name="filePath"/> value using <paramref name="keys"/>.
/// </summary>
internal abstract void SignFile(StrongNameKeys keys, string filePath);
/// <summary>
/// Signs the contents of <paramref name="peBlob"/> using <paramref name="peBuilder"/> and <paramref name="privateKey"/>.
/// </summary>
internal abstract void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey);
/// <summary>
/// Create a <see cref="StrongNameKeys"/> for the provided information.
/// </summary>
internal abstract StrongNameKeys CreateKeys(string? keyFilePath, string? keyContainerName, bool hasCounterSignature, CommonMessageProvider messageProvider);
}
}