Skip to content

Commit 8a8eed8

Browse files
authored
Fix prototype code to address CodeQL (#5472)
1 parent f3ddbdd commit 8a8eed8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

prototype/KeyGuardMaa/KeyGuardDemo.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0-windows</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<PlatformTarget>x64</PlatformTarget>
77

88
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
99
<EnableNativeCopyLocalItems>true</EnableNativeCopyLocalItems>
1010

1111
<ImplicitUsings>enable</ImplicitUsings>
1212
<Nullable>enable</Nullable>
13+
14+
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
1315
</PropertyGroup>
1416

1517
<!-- managed packages -->

prototype/KeyGuardMaa/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void Main()
8686
byte[] sig = rsa.SignData(
8787
System.Text.Encoding.UTF8.GetBytes("Hello KeyGuard"),
8888
HashAlgorithmName.SHA256,
89-
RSASignaturePadding.PSS);
89+
RSASignaturePadding.Pss);
9090

9191
Console.WriteLine($"\nSignature length: {sig.Length} bytes");
9292
}

0 commit comments

Comments
 (0)