Initial Commit

This commit is contained in:
2023-06-21 12:46:23 -04:00
commit c70248a520
1352 changed files with 336780 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System.IO;
namespace Org.BouncyCastle.Bcpg
{
/// <remarks>Basic type for a marker packet.</remarks>
public class MarkerPacket
: ContainedPacket
{
// "PGP"
byte[] marker = { (byte)0x50, (byte)0x47, (byte)0x50 };
public MarkerPacket(
BcpgInputStream bcpgIn)
{
bcpgIn.ReadFully(marker);
}
public override void Encode(
BcpgOutputStream bcpgOut)
{
bcpgOut.WritePacket(PacketTag.Marker, marker, true);
}
}
}