summary refs log tree commit diff
path: root/crypto/src/bcpg/ECDsaPublicBCPGKey.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-04-18 21:22:01 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-04-18 21:22:01 +0700
commit216ccd1126d4f924bc65ac6c7dfa8faa4a8a793f (patch)
tree3bf0a0e4d7de5c8b521aff8870cb0f67c26ecf2a /crypto/src/bcpg/ECDsaPublicBCPGKey.cs
parentRemove overly strict check on ECC extensions (diff)
downloadBouncyCastle.NET-ed25519-216ccd1126d4f924bc65ac6c7dfa8faa4a8a793f.tar.xz
Port recent Java updates
Diffstat (limited to 'crypto/src/bcpg/ECDsaPublicBCPGKey.cs')
-rw-r--r--crypto/src/bcpg/ECDsaPublicBCPGKey.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/crypto/src/bcpg/ECDsaPublicBCPGKey.cs b/crypto/src/bcpg/ECDsaPublicBCPGKey.cs
new file mode 100644
index 000000000..5f0c8ac55
--- /dev/null
+++ b/crypto/src/bcpg/ECDsaPublicBCPGKey.cs
@@ -0,0 +1,34 @@
+using System;
+
+using Org.BouncyCastle.Asn1;
+using Org.BouncyCastle.Math;
+using Org.BouncyCastle.Math.EC;
+
+namespace Org.BouncyCastle.Bcpg
+{
+    /// <remarks>Base class for an ECDSA Public Key.</remarks>
+    public class ECDsaPublicBcpgKey
+        : ECPublicBcpgKey
+    {
+        /// <param name="bcpgIn">The stream to read the packet from.</param>
+        protected internal ECDsaPublicBcpgKey(
+            BcpgInputStream bcpgIn)
+            : base(bcpgIn)
+        {
+        }
+
+        public ECDsaPublicBcpgKey(
+            DerObjectIdentifier oid,
+            ECPoint point)
+            : base(oid, point)
+        {
+        }
+
+        public ECDsaPublicBcpgKey(
+            DerObjectIdentifier oid,
+            BigInteger encodedPoint)
+            : base(oid, encodedPoint)
+        {
+        }
+    }
+}