diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-07-30 14:20:49 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-07-30 14:20:49 +0700 |
commit | 91020dcf80cbd64bb1c5df38d24773202c264a4e (patch) | |
tree | b43f58336aad122031a854eb9627dc46e82567ba /crypto/src | |
parent | DTLS: Support handshake timeout (diff) | |
download | BouncyCastle.NET-ed25519-91020dcf80cbd64bb1c5df38d24773202c264a4e.tar.xz |
EdDSA updates
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/bcpg/PublicKeyAlgorithmTags.cs | 1 | ||||
-rw-r--r-- | crypto/src/openpgp/PgpSecretKey.cs | 1 |
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: |