summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-07-30 14:20:49 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-07-30 14:20:49 +0700
commit91020dcf80cbd64bb1c5df38d24773202c264a4e (patch)
treeb43f58336aad122031a854eb9627dc46e82567ba /crypto/src
parentDTLS: Support handshake timeout (diff)
downloadBouncyCastle.NET-ed25519-91020dcf80cbd64bb1c5df38d24773202c264a4e.tar.xz
EdDSA updates
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/bcpg/PublicKeyAlgorithmTags.cs1
-rw-r--r--crypto/src/openpgp/PgpSecretKey.cs1
2 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/bcpg/PublicKeyAlgorithmTags.cs b/crypto/src/bcpg/PublicKeyAlgorithmTags.cs
index 9e30b54f7..7c93964f2 100644
--- a/crypto/src/bcpg/PublicKeyAlgorithmTags.cs
+++ b/crypto/src/bcpg/PublicKeyAlgorithmTags.cs
@@ -16,6 +16,7 @@ namespace Org.BouncyCastle.Bcpg
         ECDsa = 19,				// Reserved for ECDSA
         ElGamalGeneral = 20,	// Elgamal (Encrypt or Sign)
         DiffieHellman = 21,		// Reserved for Diffie-Hellman (X9.42, as defined for IETF-S/MIME)
+        EdDsa = 22,             // EdDSA - (internet draft, but appearing in use)
 
         Experimental_1 = 100,
         Experimental_2 = 101,
diff --git a/crypto/src/openpgp/PgpSecretKey.cs b/crypto/src/openpgp/PgpSecretKey.cs
index 01cceadbb..a3ffd4a4a 100644
--- a/crypto/src/openpgp/PgpSecretKey.cs
+++ b/crypto/src/openpgp/PgpSecretKey.cs
@@ -423,6 +423,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
                     case PublicKeyAlgorithmTag.RsaSign:
                     case PublicKeyAlgorithmTag.Dsa:
                     case PublicKeyAlgorithmTag.ECDsa:
+                    case PublicKeyAlgorithmTag.EdDsa:
                     case PublicKeyAlgorithmTag.ElGamalGeneral:
                         return true;
                     default: