6 instantiations of SignedFileContentKey
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (1)
182
var fileUniqueKey = new
SignedFileContentKey
(file.ContentHash, engineFileName);
src\Configuration.cs (4)
153
var fileUniqueKey = new
SignedFileContentKey
(contentHash, Path.GetFileName(itemToSign.FullPath));
302
SignedFileContentKey signedFileContentKey = new
SignedFileContentKey
(file.ContentHash, file.FileName);
327
new
SignedFileContentKey
(parentContainer.ContentHash, parentContainer.FileName);
754
var fileUniqueKey = new
SignedFileContentKey
(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
138
FileContentKey = new
SignedFileContentKey
(File.ContentHash, File.FileName);
35 references to SignedFileContentKey
Microsoft.DotNet.SignTool (35)
src\BatchSignInput.cs (2)
25
internal ImmutableDictionary<
SignedFileContentKey
, ZipData> ZipDataMap;
33
internal BatchSignInput(ImmutableArray<FileSignInfo> filesToSign, ImmutableDictionary<
SignedFileContentKey
, ZipData> zipDataMap, ImmutableArray<KeyValuePair<string, string>> filesToCopy)
src\BatchSignUtil.cs (6)
25
private readonly Dictionary<
SignedFileContentKey
, string> _hashToCollisionIdMap;
35
Dictionary<
SignedFileContentKey
, string> hashToCollisionIdMap,
121
var trackedSet = new HashSet<
SignedFileContentKey
>();
167
Dictionary<
SignedFileContentKey
, FileSignInfo> engines = new Dictionary<
SignedFileContentKey
, FileSignInfo>();
182
var
fileUniqueKey = new SignedFileContentKey(file.ContentHash, engineFileName);
src\Configuration.cs (17)
28
private readonly Dictionary<
SignedFileContentKey
, ZipData> _zipDataMap;
62
private readonly Dictionary<
SignedFileContentKey
, FileSignInfo> _filesByContentKey;
67
private readonly Dictionary<
SignedFileContentKey
, HashSet<string>> _whichPackagesTheFileIsIn;
72
private readonly Dictionary<SigningToolErrorCode, HashSet<
SignedFileContentKey
>> _errors;
96
internal Dictionary<
SignedFileContentKey
, string> _hashToCollisionIdMap;
133
_zipDataMap = new Dictionary<
SignedFileContentKey
, ZipData>();
134
_filesByContentKey = new Dictionary<
SignedFileContentKey
, FileSignInfo>();
137
_whichPackagesTheFileIsIn = new Dictionary<
SignedFileContentKey
, HashSet<string>>();
138
_errors = new Dictionary<SigningToolErrorCode, HashSet<
SignedFileContentKey
>>();
140
_hashToCollisionIdMap = new Dictionary<
SignedFileContentKey
, string>();
153
var
fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(itemToSign.FullPath));
187
foreach (
var
erroredFile in errorGroup.Value)
302
SignedFileContentKey
signedFileContentKey = new SignedFileContentKey(file.ContentHash, file.FileName);
326
SignedFileContentKey
parentSignedFileContentKey =
582
private void LogError(SigningToolErrorCode code,
SignedFileContentKey
targetFile)
586
filesErrored = new HashSet<
SignedFileContentKey
>();
754
var
fileUniqueKey = new SignedFileContentKey(contentHash, Path.GetFileName(relativePath));
src\FileSignInfo.cs (1)
14
internal readonly
SignedFileContentKey
FileContentKey;
src\PathWithHash.cs (1)
13
/// This contrasts with <seealso cref="
SignedFileContentKey
"/>, which represents
src\SignedFileContentKey.cs (8)
19
internal struct SignedFileContentKey : IEquatable<
SignedFileContentKey
>
42
=> obj is
SignedFileContentKey
key && Equals(key);
47
bool IEquatable<
SignedFileContentKey
>.Equals(
SignedFileContentKey
other)
50
public static bool operator ==(
SignedFileContentKey
key1,
SignedFileContentKey
key2)
53
public static bool operator !=(
SignedFileContentKey
key1,
SignedFileContentKey
key2)