From 91020dcf80cbd64bb1c5df38d24773202c264a4e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 30 Jul 2020 14:20:49 +0700 Subject: EdDSA updates --- crypto/src/bcpg/PublicKeyAlgorithmTags.cs | 1 + crypto/src/openpgp/PgpSecretKey.cs | 1 + 2 files changed, 2 insertions(+) (limited to 'crypto/src') 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: -- cgit 1.5.1