summary refs log tree commit diff
path: root/crypto/src/bcpg
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2021-05-23 19:27:59 +1000
committerDavid Hook <dgh@bouncycastle.org>2021-05-23 19:27:59 +1000
commit8ebe171819966753072c65743fd9b1c9e7f090a5 (patch)
treea5a9a3e907a7b5c096b0d59e17a1481140ba718e /crypto/src/bcpg
parentgithub #250 lookup table error (diff)
downloadBouncyCastle.NET-ed25519-8ebe171819966753072c65743fd9b1c9e7f090a5.tar.xz
github #23 added method for handling signing subkey
Diffstat (limited to 'crypto/src/bcpg')
-rw-r--r--crypto/src/bcpg/SignaturePacket.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/src/bcpg/SignaturePacket.cs b/crypto/src/bcpg/SignaturePacket.cs
index 5b91c15a3..70138d584 100644
--- a/crypto/src/bcpg/SignaturePacket.cs
+++ b/crypto/src/bcpg/SignaturePacket.cs
@@ -473,5 +473,11 @@ namespace Org.BouncyCastle.Bcpg
 				}
 			}
 		}
-	}
+        public static SignaturePacket FromByteArray(byte[] data)
+        {
+            BcpgInputStream input = BcpgInputStream.Wrap(new MemoryStream(data));
+
+            return new SignaturePacket(input);
+        }
+    }
 }