diff options
author | David Hook <dgh@bouncycastle.org> | 2021-05-23 19:27:59 +1000 |
---|---|---|
committer | David Hook <dgh@bouncycastle.org> | 2021-05-23 19:27:59 +1000 |
commit | 8ebe171819966753072c65743fd9b1c9e7f090a5 (patch) | |
tree | a5a9a3e907a7b5c096b0d59e17a1481140ba718e /crypto/src/bcpg/SignaturePacket.cs | |
parent | github #250 lookup table error (diff) | |
download | BouncyCastle.NET-ed25519-8ebe171819966753072c65743fd9b1c9e7f090a5.tar.xz |
github #23 added method for handling signing subkey
Diffstat (limited to 'crypto/src/bcpg/SignaturePacket.cs')
-rw-r--r-- | crypto/src/bcpg/SignaturePacket.cs | 8 |
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); + } + } } |