From d3570b11b7dbe3684c7e047c2f3d8f3249895c82 Mon Sep 17 00:00:00 2001 From: mattosaurus Date: Mon, 10 Jun 2024 14:33:09 +0100 Subject: [PATCH 1/3] Set prefered hash algorithim --- PgpCore/PGP.KeySync.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PgpCore/PGP.KeySync.cs b/PgpCore/PGP.KeySync.cs index 102e9c8..ef85064 100644 --- a/PgpCore/PGP.KeySync.cs +++ b/PgpCore/PGP.KeySync.cs @@ -115,8 +115,9 @@ public void GenerateKey( masterKey, username, SymmetricKeyAlgorithm, + preferredHashAlgorithmTags[0], password.ToCharArray(), - true, + preferredHashAlgorithmTags[0] == HashAlgorithmTag.Sha1 ? true : false, signHashGen.Generate(), null, new SecureRandom()); From 606c826a311983fa251ffef164623fbf2d042e29 Mon Sep 17 00:00:00 2001 From: mattosaurus Date: Mon, 10 Jun 2024 14:34:11 +0100 Subject: [PATCH 2/3] Update version --- PgpCore/PgpCore.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PgpCore/PgpCore.csproj b/PgpCore/PgpCore.csproj index 778ceda..af026d4 100644 --- a/PgpCore/PgpCore.csproj +++ b/PgpCore/PgpCore.csproj @@ -10,10 +10,10 @@ https://github.com/mattosaurus/PgpCore https://github.com/mattosaurus/PgpCore PGP .NET Core - 6.4.0.0 + 6.5.0.0 6.0.0.0 - 6.4.1 - v6.4.1 - Package updates + 6.5.0 + v6.5.0 - Fix setting key hash algorithim MIT true true From 80a1e2c9cf16d3b3a047c70078d09a0c13700fb1 Mon Sep 17 00:00:00 2001 From: mattosaurus Date: Mon, 10 Jun 2024 15:03:01 +0100 Subject: [PATCH 3/3] Remove the unnecessary Boolean literal --- PgpCore/PGP.KeySync.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PgpCore/PGP.KeySync.cs b/PgpCore/PGP.KeySync.cs index ef85064..30cffe9 100644 --- a/PgpCore/PGP.KeySync.cs +++ b/PgpCore/PGP.KeySync.cs @@ -117,7 +117,7 @@ public void GenerateKey( SymmetricKeyAlgorithm, preferredHashAlgorithmTags[0], password.ToCharArray(), - preferredHashAlgorithmTags[0] == HashAlgorithmTag.Sha1 ? true : false, + preferredHashAlgorithmTags[0] == HashAlgorithmTag.Sha1, signHashGen.Generate(), null, new SecureRandom());