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.
35 lines
907 B
35 lines
907 B
1 year ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
using System.IO;
|
||
|
namespace BestHTTP.SecureProtocol.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);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|