From d205ee9db5361870bd97a7ef589ee8f071bf2fcf Mon Sep 17 00:00:00 2001 From: Bogdan Gavril Date: Thu, 11 Sep 2025 14:10:36 +0100 Subject: [PATCH] Fix prototype code to address CodeQL --- prototype/KeyGuardMaa/KeyGuardDemo.csproj | 4 +++- prototype/KeyGuardMaa/Program.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/prototype/KeyGuardMaa/KeyGuardDemo.csproj b/prototype/KeyGuardMaa/KeyGuardDemo.csproj index 93aac8f710..7cf5efb41d 100644 --- a/prototype/KeyGuardMaa/KeyGuardDemo.csproj +++ b/prototype/KeyGuardMaa/KeyGuardDemo.csproj @@ -2,7 +2,7 @@ Exe - net8.0-windows + net8.0 x64 win-x64 @@ -10,6 +10,8 @@ enable enable + + false diff --git a/prototype/KeyGuardMaa/Program.cs b/prototype/KeyGuardMaa/Program.cs index 8109d3da54..75bc13e07f 100644 --- a/prototype/KeyGuardMaa/Program.cs +++ b/prototype/KeyGuardMaa/Program.cs @@ -86,7 +86,7 @@ static void Main() byte[] sig = rsa.SignData( System.Text.Encoding.UTF8.GetBytes("Hello KeyGuard"), HashAlgorithmName.SHA256, - RSASignaturePadding.PSS); + RSASignaturePadding.Pss); Console.WriteLine($"\nSignature length: {sig.Length} bytes"); }