You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
758 B
30 lines
758 B
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);
|
|
}
|
|
}
|
|
}
|
|
|