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