From 58cb9bd8b944b5c4269204eeab127de9203b9ac1 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 20 Mar 2023 15:23:47 +0700 Subject: Add EdDsa_Legacy --- crypto/test/src/openpgp/test/PgpEdDsaTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/test') diff --git a/crypto/test/src/openpgp/test/PgpEdDsaTest.cs b/crypto/test/src/openpgp/test/PgpEdDsaTest.cs index c5b25320c..f67d19a7f 100644 --- a/crypto/test/src/openpgp/test/PgpEdDsaTest.cs +++ b/crypto/test/src/openpgp/test/PgpEdDsaTest.cs @@ -131,7 +131,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests Ed25519KeyPairGenerator edKp = new Ed25519KeyPairGenerator(); edKp.Init(new Ed25519KeyGenerationParameters(random)); - PgpKeyPair dsaKeyPair = new PgpKeyPair(PublicKeyAlgorithmTag.EdDsa, edKp.GenerateKeyPair(), DateTime.UtcNow); + PgpKeyPair dsaKeyPair = new PgpKeyPair(PublicKeyAlgorithmTag.EdDsa_Legacy, edKp.GenerateKeyPair(), DateTime.UtcNow); X25519KeyPairGenerator dhKp = new X25519KeyPairGenerator(); dhKp.Init(new X25519KeyGenerationParameters(random)); @@ -211,7 +211,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests IsTrue(secRing.GetSecretKey().IsSigningKey); - PgpSignatureGenerator pgpGen = new PgpSignatureGenerator(PublicKeyAlgorithmTag.EdDsa, HashAlgorithmTag.Sha256); + PgpSignatureGenerator pgpGen = new PgpSignatureGenerator(PublicKeyAlgorithmTag.EdDsa_Legacy, HashAlgorithmTag.Sha256); pgpGen.InitSign(PgpSignature.SubkeyBinding, secRing.GetSecretKey().ExtractPrivateKey(null)); -- cgit 1.4.1