diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-20 15:23:47 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-20 15:23:47 +0700 |
commit | 58cb9bd8b944b5c4269204eeab127de9203b9ac1 (patch) | |
tree | e23638c104f1ecf474994acf79dddef7fb7c198f /crypto/test | |
parent | Add tag bounds check to prevent old packet confusion. (diff) | |
download | BouncyCastle.NET-ed25519-58cb9bd8b944b5c4269204eeab127de9203b9ac1.tar.xz |
Add EdDsa_Legacy
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/openpgp/test/PgpEdDsaTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |