-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BinaryHardeningSummary.cs
55 lines (49 loc) · 2.66 KB
/
BinaryHardeningSummary.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.IotFirmwareDefense.Models
{
/// <summary> Properties for a binary hardening analysis summary. </summary>
public partial class BinaryHardeningSummary : FirmwareAnalysisSummaryProperties
{
/// <summary> Initializes a new instance of <see cref="BinaryHardeningSummary"/>. </summary>
internal BinaryHardeningSummary()
{
SummaryType = FirmwareAnalysisSummaryType.BinaryHardening;
}
/// <summary> Initializes a new instance of <see cref="BinaryHardeningSummary"/>. </summary>
/// <param name="summaryType"> Describes the type of summary. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="totalFiles"> Total number of binaries that were analyzed. </param>
/// <param name="nxPercentage"> NX summary percentage. </param>
/// <param name="piePercentage"> PIE summary percentage. </param>
/// <param name="relroPercentage"> RELRO summary percentage. </param>
/// <param name="canaryPercentage"> Canary summary percentage. </param>
/// <param name="strippedPercentage"> Stripped summary percentage. </param>
internal BinaryHardeningSummary(FirmwareAnalysisSummaryType summaryType, IDictionary<string, BinaryData> serializedAdditionalRawData, long? totalFiles, int? nxPercentage, int? piePercentage, int? relroPercentage, int? canaryPercentage, int? strippedPercentage) : base(summaryType, serializedAdditionalRawData)
{
TotalFiles = totalFiles;
NXPercentage = nxPercentage;
PiePercentage = piePercentage;
RelroPercentage = relroPercentage;
CanaryPercentage = canaryPercentage;
StrippedPercentage = strippedPercentage;
SummaryType = summaryType;
}
/// <summary> Total number of binaries that were analyzed. </summary>
public long? TotalFiles { get; }
/// <summary> NX summary percentage. </summary>
public int? NXPercentage { get; }
/// <summary> PIE summary percentage. </summary>
public int? PiePercentage { get; }
/// <summary> RELRO summary percentage. </summary>
public int? RelroPercentage { get; }
/// <summary> Canary summary percentage. </summary>
public int? CanaryPercentage { get; }
/// <summary> Stripped summary percentage. </summary>
public int? StrippedPercentage { get; }
}
}