PublicSubkeyPacket.cs
758 Bytes
using System;
using System.IO;
namespace Org.BouncyCastle.Bcpg
{
/// <remarks>Basic packet for a PGP public subkey</remarks>
public class PublicSubkeyPacket
: PublicKeyPacket
{
internal PublicSubkeyPacket(
BcpgInputStream bcpgIn)
: base(bcpgIn)
{
}
/// <summary>Construct a version 4 public subkey packet.</summary>
public PublicSubkeyPacket(
PublicKeyAlgorithmTag algorithm,
DateTime time,
IBcpgKey key)
: base(algorithm, time, key)
{
}
public override void Encode(
BcpgOutputStream bcpgOut)
{
bcpgOut.WritePacket(PacketTag.PublicSubkey, GetEncodedContents(), true);
}
}
}