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/src/openpgp/PgpUtilities.cs | |
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/src/openpgp/PgpUtilities.cs')
-rw-r--r-- | crypto/src/openpgp/PgpUtilities.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/openpgp/PgpUtilities.cs b/crypto/src/openpgp/PgpUtilities.cs index 82f65bd08..fa04f5f46 100644 --- a/crypto/src/openpgp/PgpUtilities.cs +++ b/crypto/src/openpgp/PgpUtilities.cs @@ -150,7 +150,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp case PublicKeyAlgorithmTag.ECDsa: encAlg = "ECDSA"; break; - case PublicKeyAlgorithmTag.EdDsa: + case PublicKeyAlgorithmTag.EdDsa_Legacy: encAlg = "EdDSA"; break; case PublicKeyAlgorithmTag.ElGamalEncrypt: // in some malformed cases. @@ -546,7 +546,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp { switch (publicKeyAlgorithm) { - case PublicKeyAlgorithmTag.EdDsa: + case PublicKeyAlgorithmTag.EdDsa_Legacy: { ISigner signer; if (key is Ed25519PrivateKeyParameters || key is Ed25519PublicKeyParameters) |